Menu

#1576 Triple click without selecting newline char

Initial
open
nobody
5
2026-01-20
2026-01-19
No

I am really enjoying using Geany, a project that is downstream from Scintilla. However, Geany has inherited one Scintilla behavior that I'd like to be able to modify: when I triple-click a line, I want to select it without selecting the newline char at the end, so that (e.g.) if I triple click a URL to paste into an anchor tag in an html file, I can type

and not have to remember to delete the linebreak between the pasted URL and the closing quote.

It would be great if this was an option that could be toggled in a settings file, or disabled altogether.

I am using Ubuntu 25.10 and GTK 3.24.38.

Thank you!

Cory

Discussion

  • Cory Doctorow

    Cory Doctorow - 2026-01-19

    Sorry, don't know what happened to the formatting there! The example that was omitted was

    a href=" [ctrl-v]"

     
  • Neil Hodgson

    Neil Hodgson - 2026-01-20
    • labels: UI --> UI, scintilla, selection
     
  • Neil Hodgson

    Neil Hodgson - 2026-01-20

    Single line selection is a part of line selection mode. Moving the mouse to other lines before releasing the button after the third mouse down selects multiple lines. A preference to omit the end line character(s) should address the behaviour of selecting multiple lines. I'd expect just omitting the final line end but alternatives include omitting the line end only from single line selections and omitting all line ends in the selected lines.

    I'll accept a well-written patch that implements this as an option. As this is not an option I personally want, it is unlikely I will work on it.

    The relevant code can be found by tracing from Editor::LineSelection.

     

Log in to post a comment.