* * *

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

Pascal

  • Hero Member
  • *****
  • Posts: 664
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

Alextp

  • Hero Member
  • *****
  • Posts: 631
    • 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: 3376
  • 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.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4603
    • 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, ....

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus