Registered Member
|
Hi,
I'm using kate as an editor to keep track of my software development and maintenance activities. My primary tool is a self-written small list management tool which, upon double-clicking an item in the list, will open the corresponding document in a/the kate window using a qdbus message: qdbus org.kde.kate-XXXXX /MainApplication org.kde.Kate.Application.openUrl file:<pathname> utf-8 Now, when I first open a document the cursor is at the top, but I usually want to add text at the bottom. The qdbus interface has a method
OTOH if I hit Ctrl-End, the cursor goes to the end of the text. Is there a way to send keystrokes to kate to emulate me hitting Ctrl-End? |
Registered Member
|
Hi! This is a very interesting problem. I will also follow the discussion. So far, I can only offer an option with counting the number of lines. But wc and grep ignore the last blank line. Full path is required, there is no validation now. Here is a draft of the bash function:
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]