Lazarus
Programming => Packages and Libraries => SynEdit => Topic started by: Pascal on May 04, 2017, 12:14:23 am
-
I would like to use ESC to end multicaret mode like i can end syncro edit mode. I know ESC is by default assigned to end syncro edit mode and can not be assigned to an other function. As multi caret doesn't make much sense in syncro edit mode ESC could end both.
-
+1 from me. CudaText does it, ie Esc press does action "cancel carets, leave first", also action exists ".. leave last".
-
I believe a patch would be accepted.
-
As of current trunk (1.9), escape is assigned to both.
Actually the following 3:
- syncro
- code template (with $param macro)
- multi caret
Usually only one is active.
It is possible to have multi caret in syncro edit (e.g. having 2 carets in the same cell: "DoFoo|Bar|Xyz" (editing 2 positions in one word)). In this extreme case you need to press escape twice. The order in which it will act is not defined, may change, be random, ....