Recent

Author Topic: Gutter selection like in word or TextPad  (Read 4194 times)

dracenmarx

  • Newbie
  • Posts: 3
Gutter selection like in word or TextPad
« on: December 10, 2017, 09:20:56 pm »
Hello,

I would like to select line(s) by clicking in the gutter, like it is possible with many editors like Word or TextPad.
Is this possible with SynEdit?

Like so: https://imgur.com/a/9bVAk

Thanks

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Gutter selection like in word or TextPad
« Reply #1 on: December 10, 2017, 09:30:14 pm »
My Lazarus (1.9) supports it. Click on the line number selects line, click+shift selects more lines.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

dracenmarx

  • Newbie
  • Posts: 3
Re: Gutter selection like in word or TextPad
« Reply #2 on: December 10, 2017, 09:36:53 pm »
If you click on the gutter, will the line be completely selected (so that it is blue and can be deleted), or just normally selected?
I would be interested in the completely select.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Gutter selection like in word or TextPad
« Reply #3 on: December 10, 2017, 09:50:49 pm »
It will be completely selected, including the linefeed/cr.

But you must click the line-number part of the gutter. Otherwise it will set a breakpoint.

You can click anywhere in the gutter, if move the mouse while you press the button. I.e select multiple lines. (Opitons: "Extended")

You can change this. There is plenty of config.
Menu: Tools > Options.
Dialog/Tree: Editor > Mouse

You can change even more in the advanced settings.

All this is in 1.6 and 1.8.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Gutter selection like in word or TextPad
« Reply #4 on: December 10, 2017, 09:51:30 pm »
Line's completely selected and pressing Del deletes it. You can also delete line with CTRL+Y without selecting it.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

dracenmarx

  • Newbie
  • Posts: 3
Re: Gutter selection like in word or TextPad
« Reply #5 on: December 10, 2017, 10:04:09 pm »
Hm... that is weird

I'm using Delphi 10.2 with the SynEdit installed using GetIt.

SynEdit has version SynEdit.pas,v 1.32.1 2012/19/09 which seems to be the latest version:
https://github.com/SynEdit/SynEdit/blob/master/Source/SynEdit.pas
or is there a more up-to-date version of SynEdit out there?

If I click the gutter, the line will only normally selected, without the text.

If I drag the cursor along the gutter, multiple lines get selected, but alas not the last line where the cursor is at.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Gutter selection like in word or TextPad
« Reply #6 on: December 10, 2017, 10:14:14 pm »
SynEdit is not equal to SynEdit

Lazarus has a forked version of SynEdit. The fork supports this. It was added to the fork.

I do not know if the original SynEdit has something like this.

 

TinyPortal © 2005-2018