Recent

Author Topic: Feature request: Make ESC end multi caret mode  (Read 6244 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Feature request: Make ESC end multi caret mode
« 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.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: Feature request: Make ESC end multi caret mode
« Reply #1 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".

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Feature request: Make ESC end multi caret mode
« Reply #2 on: May 08, 2017, 12:21:13 pm »
I believe a patch would be accepted.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Feature request: Make ESC end multi caret mode
« Reply #3 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