Scintilla (358)

SCI_COPYALLOWLINE is great! I just submitted a patch for it to be the default of Notepad++: https://sourceforge.net/tracker/?func=detail&aid=3573568&group_id=95717&atid=612384

There should be an equivalent for cutting a line. When I'm using Visual Studio I often do this to cut lines because it's easier to remember Ctrl+X then whatever the cut line command is.

Please add an equivalent SCI_CUTALLOWLINE command to cut entire lines without selecting them first.

Also, please consider making the line selection behavior default and maybe make a special commands for the non line selecting behavior.

Also, one user suggested that the SCI_COPYALLOWLINE behavior should change the selection to the line to telegraph to the user exactly what happened. I haven't used an editor that does that but it sounds good.

Thank you for your consideration and the great software you've created.



  • Neil Hodgson

    Neil Hodgson - 2012-10-05

    Stability is a core goal of Scintilla so the default will not be changed. Copy with line was not popular when initially discussed. If someone submits a good implementation of SCI_CUTALLOWLINE then I'll commit it.

    Changing the apparent selection when the selection is empty would break the consistency of selection behaviour. There will be many consequences if an option was added to allow this.

  • Neil Hodgson

    Neil Hodgson - 2012-10-05
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 2
    • milestone: --> Won't_Implement
    • labels: --> Scintilla
  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-21

    Thanks for the feedback. My C++ is so rusty that I'm afraid I won't be able to submit a patch.

    On the apparent selection behavior for copy, it would only happen if there wasn't an existing selection. My hope was that that might make it more palatable, but if it's not I totally understand.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks