Recent

Author Topic: Left/Right keys on selection  (Read 3546 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Left/Right keys on selection
« on: May 18, 2015, 05:30:27 pm »
...not like editors. Even with option "skip selectn". Sublime text: select block, press left/right, caret moves to other sel edge (left pressed at right edge) and SEL NOT KEEPED, caret just moves and no selection here. Synedit KEEPS sel on caret move. It's bad, for some ppl

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: Left/Right keys on selection
« Reply #1 on: May 18, 2015, 08:49:19 pm »
Tools > Editor, General: "Cursor skips selection"

Quote
Synedit KEEPS sel on caret move.
Only if "Persistent Selection" is on.

You can have "Cursor skips selection" WITHOUT "Persistent Selection"

Then press left at the end of selection, it goes to start of selection.

But right at the end of selection, will move caret, and selection will be gone
« Last Edit: May 18, 2015, 08:52:53 pm by Martin_fr »

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: Left/Right keys on selection
« Reply #2 on: May 18, 2015, 09:08:10 pm »
You dont see th point.
See: any text editor will jump to opposite sel edge (left/rt). And it REMOVES sel. Now I don't use "Persist sel" - i don't need it. And i still see that SE keeps sel.

It's other thing, "persist sel'.
Sublime text has NO persist sel. And it removes sel on left/rt.
SynWrite, my app, now removes sel, on left/rt

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: Left/Right keys on selection
« Reply #3 on: May 18, 2015, 10:38:23 pm »
Ah, now I see what you mean.

I never actually used that in any editor until now (and NOT every editor does). This was probably implemented upon somebodies request.

Feel free to add a request on mantis. Or in the IDE record a macro, and assign it.
IF SynEdit in your app, it is easy to intercept the keyhandling in the OnCommand event.


---
The problem with this is, that there are way to many variations how this can behave. And they cant be all hardcoded.

It is the same with word wise navigation and deletion .... There are many many many variations....
« Last Edit: May 18, 2015, 10:39:58 pm by Martin_fr »

 

TinyPortal © 2005-2018