This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kate -> select to document end/ select to document beginning

Tags: None
(comma "," separated)
schneider
Registered Member
Posts
3
Karma
0
Hi folks,

I've been working with kate quite a while and really liked bit. Although there is something that bothers me a lot.
Every time I select everey thing from the cursor to the document beginning (ctrl+shift+a) or to the document (ctrl+shift+end) end the cursor suddenly jumps to the beginning or end of the document.
If I want to carry on typing I would have to scroll down with the mouse to the position I was.
Is there any way to stop this jumping? It would be very helpful.
Thanks for any advice
Konrad
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

sorry, just being curious -- what's the use case of this? I.e., what do you want to achieve?

I don't think there's a proper solution, but you can always press Ctrl+Z Ctrl+Shift+Z. That's what I sometimes do, as a hack. :)
Or, place a bookmark with Ctrl+B and jump to that with Alt+PageDown.

Greetings,
Sven


I'm working on the KDevelop IDE.
schneider
Registered Member
Posts
3
Karma
0
Hi Sven,
thanks for your advise. But I am not really sure what is done by ctrl + z because I customized my shortcuts.
Could you give me the specific action kate does?
I am using Python to build up some mechanical models in ABAQUS (Finite Element Software).
This is done step by step. First I click the model and then afterwards recover those clicking commands viathe python output file an create a script. Because the models are quite difficult and it is almost impossible to create this script in one step I cut it donw into pieces. For instants first the geometry is created and afterwards the meshing and so on.
To preceed from the actuall progress I copy half of the script file from kate and past it into the ABAQUS command line.
Therefore it would be quite handy to have this functionality I was wondering about.
Until now it did not bother me that much. But today I reached a script length of 1500 lines plus.
So it is very anoying alwas scrolling back were I was, when appending/inserting a new command.
Maybe you know another editor that does it in the way I need it. I also tried SciTE but all the other functionalities like split screen and so on are gone....
so long
Konrad
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

Ctrl+Z is (by default) the undo function, which will set the cursor to the point where the last edit was done. Ctrl+Shift+Z is the default for redo, so if you do both, you'll effectively just move the cursor to where you last edited the document.

A better solution would, as said, be using bookmarks: Set a bookmark (default Ctrl+B) and use the shortcut (default Alt+PgDn) to jump there.
I think for most other cases it makes sense to have the cursor jump to the end of the selection (what else would you do), so it's unlikely it's going to be changed. And for an option, it's too much of a corner case. I think bookmarks could save your purpose pretty well.

Greetings,
Sven


I'm working on the KDevelop IDE.
schneider
Registered Member
Posts
3
Karma
0
Hi Sven,
your suggestion with the Bookmarks is working the one with the undo unfortunatelly not.
But the bookmark function suits my needs for the moment.
On the otherhand I totally agree with your statement that the cursor should jump to the end of the selection.
But if I press ctrl+shift+a to select every think from the actual position to the beginning of the document I would expect the cursor to stay at the actual position which is indeed the end of the selection ;)
anyway thanks for your tip.

best regards
konrad
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

Well, if I, for example, select everything from the cursor position to the beginning of the line, I don't want the cursor at the end of the selection, but at the beginning. It just makes more sense: you move the cursor to a point while in selection mode, and every char which was passed by the cursor will be selected. It works like this everywhere...
I think it would really be confusing to implement a special behaviour just for this one case.

Others might think differently tough, if you still feel this behaviour is wrong, you can ask in IRC or report a bug.

Greetings,
Sven


I'm working on the KDevelop IDE.
airdrik
Registered Member
Posts
1854
Karma
5
OS
scummos wrote:Hi,

Well, if I, for example, select everything from the cursor position to the beginning of the line, I don't want the cursor at the end of the selection, but at the beginning. It just makes more sense: you move the cursor to a point while in selection mode, and every char which was passed by the cursor will be selected. It works like this everywhere...
I think it would really be confusing to implement a special behaviour just for this one case.

Others might think differently tough, if you still feel this behaviour is wrong, you can ask in IRC or report a bug.

Greetings,
Sven

In the vast majority of (gui) text editors this is the default behavior, and this is consistent with other default key bindings: up, down, left, right, pageup, pagedown, home, end, ctrl+home, ctrl+end move the cursor around the document, add shift to begin selecting from the cursor start position to wherever you move the cursor.


airdrik, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell