Recent

Author Topic: Feature request/suggestion re: multicaret editing  (Read 513 times)

440bx

  • Hero Member
  • *****
  • Posts: 5437
Feature request/suggestion re: multicaret editing
« on: May 24, 2025, 10:48:32 am »
Hello,

Please refer to the attachment.

In the first screenshot, the caret goes across a number of lines to remove some text.  When pressing the "Del" key, the result is as shown on the next screenshot.

The deletion caused two of the lines to wrap around (only one of them is visible in the screenshot.) 

The request/suggestion is: it would be nice if no wrapping took place.  Supposedly, there is nothing in that location in that line anyway, therefore it should not be affected (2 of the writeln statements were but, for some reason, one was not.)

Thank you for reading.

ETA:

attached the sample text used for the screenshots.

« Last Edit: May 24, 2025, 10:52:50 am by 440bx »
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

paweld

  • Hero Member
  • *****
  • Posts: 1417
Re: Feature request/suggestion re: multicaret editing
« Reply #1 on: May 24, 2025, 11:01:59 am »
Menu > Tools > Options > Editor > General > check "Skip delete key at EOL (do not join lines)"
Unfortunately, it only works for the “Del” key - it does not work for the shortcut “Ctrl + Del”

Lazarus trunk.
Best regards / Pozdrawiam
paweld

440bx

  • Hero Member
  • *****
  • Posts: 5437
Re: Feature request/suggestion re: multicaret editing
« Reply #2 on: May 24, 2025, 11:14:33 am »
Wonderful !!

Thank you @paweld. 
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

paweld

  • Hero Member
  • *****
  • Posts: 1417
Re: Feature request/suggestion re: multicaret editing
« Reply #3 on: May 24, 2025, 12:13:16 pm »
Try a patch that adds support for Ctrl+Del for this option: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41673
Best regards / Pozdrawiam
paweld

440bx

  • Hero Member
  • *****
  • Posts: 5437
Re: Feature request/suggestion re: multicaret editing
« Reply #4 on: May 24, 2025, 12:35:16 pm »
Try a patch that adds support for Ctrl+Del for this option: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41673
Will do, thank you again @paweld.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018