• Login
Community
  • Login

Carriage return when copying a line

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 410 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Demon
    last edited by Oct 29, 2024, 6:37 AM

    Hello!
    Sorry, I don’t speak English.

    When copying a line (for example, triple-clicking the mouse), the carriage is automatically moved to a new line. Personally, I often need to copy a line without moving the carriage to a new line. Is there a way to solve this problem? If there is no such option now, then maybe add such a setting?

    L 1 Reply Last reply Oct 29, 2024, 9:00 AM Reply Quote 0
    • L
      litos81 @Demon
      last edited by Oct 29, 2024, 9:00 AM

      @Demon
      Hi,
      I think Notepad++'s default settings to copy the entire line has Ctrl+Shift+X as its shortcut. You can change and see this shortcut and others from the Settings -> Shortcut Mapper… menu. You will find the line copy command in the ‘Scintilla commands’ tab of the Shortcut Mapper.

      D 1 Reply Last reply Oct 29, 2024, 9:41 AM Reply Quote 0
      • D
        Demon @litos81
        last edited by Oct 29, 2024, 9:41 AM

        @litos81
        Ctrl+Shift+X - I know this key combination - carriage return to a new line is present. I made myself a macro without carriage return to a new line. But this is a “crutch”. And I would like a setting for triple mouse click. If I ask too much, then don’t blame me.

        P 1 Reply Last reply Oct 29, 2024, 1:18 PM Reply Quote 0
        • P
          PeterJones @Demon
          last edited by Oct 29, 2024, 1:18 PM

          @Demon ,

          I made myself a macro without carriage return to a new line. But this is a “crutch”.

          It’s not a “crutch”. There are an uncountable possible list of actions that users might want to take. Notepad++ knows it cannot implement them all. As a compromise, Notepad++ gives you the ability to record and use macros so that you can have the extra “keystroke-based commands” that Notepad++ doesn’t implement to your preference.

          (Under the hood, Notepad++ uses a library called “Scintilla” to implement most of the editor-style commands, like copy, paste, etc. Looking through the list of Scintilla commands, I’m not seeing a “copy whole line except newline” equivalent, so it would probably have to be requested from Scintilla first, and then after Scintilla was updated, Notepad++ would have to update to the most recent copy.)

          And I would like a setting for triple mouse click.

          Just FYI, trying things like MS Word or MS WordPad, or VisualStudio, all use triple-click to select the whole line including newline. That seems to be the industry standard, and I’ve never seen an option anywhere to change it to not include newlines.

          The developer has recently been indicating that he doesn’t like how many options are there, and he even made a recent poll to ask if users thought a specific option could be removed. My guess is that he’d be pretty reluctant to add yet another option, especially one that would make Notepad++ do something that most people wouldn’t expect in a given situation, when it’s already implemented the standard/expected behavior.

          But, we here in the Community Forum can just give our opinions. As is made very clear in the forum, we are just users; if you have an actual feature request, you need to put it in Notepad++'s GitHub Issues, not here, if you want the developer to consider it, as is described in our Feature Request FAQ

          If I ask too much,

          I cannot say that you ask too much. But I can say that you are asking in the wrong place if you want the feature considered for implementation.

          D 1 Reply Last reply Oct 29, 2024, 1:55 PM Reply Quote 2
          • D
            Demon @PeterJones
            last edited by Oct 29, 2024, 1:55 PM

            @PeterJones said in Carriage return when copying a line:

            Just FYI, trying things like MS Word or MS WordPad, or VisualStudio, all use triple-click to select the whole line including newline. That seems to be the industry standard, and I’ve never seen an option anywhere to change it to not include newlines.

            Well, then we’ll work with a macro.

            @PeterJones said in Carriage return when copying a line:

            you need to put it in Notepad++'s GitHub Issues

            Oh! Got it! I’m sorry that I wrote in the wrong place.

            1 Reply Last reply Reply Quote 1
            4 out of 5
            • First post
              4/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors