Lazarus

Programming => Packages and Libraries => SynEdit => Topic started by: Pascal on May 04, 2017, 12:14:23 am

Title: Feature request: Make ESC end multi caret mode
Post 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.
Title: Re: Feature request: Make ESC end multi caret mode
Post by: AlexTP on May 08, 2017, 11:56:51 am
+1 from me. CudaText does it, ie Esc press does action "cancel carets, leave first", also action exists ".. leave last".
Title: Re: Feature request: Make ESC end multi caret mode
Post by: JuhaManninen on May 08, 2017, 12:21:13 pm
I believe a patch would be accepted.
Title: Re: Feature request: Make ESC end multi caret mode
Post by: Martin_fr on June 09, 2018, 03:11:22 pm
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, ....
TinyPortal © 2005-2018