Community
    • Login

    Filling a hole...

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 5 Posters 4.3k Views 4 Watching
    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.
    • Kaley GoodeK Offline
      Kaley Goode
      last edited by

      Notepad++ on MS Windows:
      When no text is selected, pressing Ctrl+C or Ctrl+X does nothing…
      What a waste :-(

      After nearly a hundred years of using MS Visual Studio I’m used to copying and cutting whole lines with these shortcuts… and I rearrange lines a lot…
      Just this hole in Notepad++ functionality has prevented me ever buying into it :-/
      Just thought you should know…

      Would it hurt to fill that hole?

      1 Reply Last reply Reply Quote 0
      • NippurDeLagashN Offline
        NippurDeLagash
        last edited by NippurDeLagash

        To rearrange lines, you may try moving them instead of using Ctrl-X, Ctrl-V. Just position the cursor on the line you want to move, and then press either Ctrl-shift-up or Ctrl-shift-down.

        1 Reply Last reply Reply Quote 0
        • Udo FuerhoffU Offline
          Udo Fuerhoff
          last edited by

          ||
          … When no text is selected …
          … MS Visual Studio I’m used to copying and cutting whole lines with these shortcuts …
          ||
          This behavior is a “option”! Lowest commonly behavior are “Ctrl-c” & “Ctrl-x” do pure copying/cutting of selectet objects!

          Kaley GoodeK NippurDeLagashN 2 Replies Last reply Reply Quote 0
          • Kaley GoodeK Offline
            Kaley Goode @Udo Fuerhoff
            last edited by Kaley Goode

            @Udo-Fuerhoff said:

            This behavior is a “option”! Lowest commonly behavior are “Ctrl-c” & “Ctrl-x” do pure copying/cutting of selectet objects!

            @Udo-Fuerhoff: Sorry for upsetting you with my ridiculous suggestion.
            I don’t understand what’s unreasonable when Ctrl-C and Ctrl-X currently do nothing.
            I’d be perfectly happy for it to be an option in Notepad++ too.

            @NippurDeLagash: I wasn’t clear: I rearrange lines between editors: so I cut or copy a line from one editor and paste to another.

            Ctrl-X in one, Ctrl-V in the other. A lot. It’s great. Easy. Until I try notepad++. Then it isn’t.
            Ctrl-L is a long way when your right hand is on the mouse.
            Ctrl-X then becomes a quick way to delete lines too.

            Scott SumnerS 1 Reply Last reply Reply Quote 0
            • Scott SumnerS Offline
              Scott Sumner @Kaley Goode
              last edited by

              @Kaley-Goode

              This has been much discussed over a long period of time; here are some references:

              https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3623
              https://github.com/notepad-plus-plus/notepad-plus-plus/issues/18
              https://notepad-plus-plus.org/community/topic/13732/feature-smart-cut-copy-current-line-when-there-is-no-selection
              https://stackoverflow.com/questions/619754/how-to-mimic-visual-studios-ctrl-x-ctrl-v-functionality-in-notepad
              https://bitbucket.org/zastrowm/notepad-visualstudiolinecopy

              I’m not really one for thinking that Notepad++ should be a clone of Visual Studio (shudder!), but I do agree that this specific thing makes a great deal of sense–why not have a keystroke that would otherwise do nothing…do something useful and sensible? However, since we haven’t seen it yet (natively) in Notepad++, I’ve got to question whether it will ever be done. Thus, I’d encourage those interested in having the functionality pursue one of the alternative methods (see links above) for achieving it. I did…and then I stopped thinking about it. :-D

              1 Reply Last reply Reply Quote 1
              • NippurDeLagashN Offline
                NippurDeLagash @Udo Fuerhoff
                last edited by NippurDeLagash

                @Udo-Fuerhoff

                I did read @Kaley-Goode’s message, as was fully aware about the need of no text is selected. That’s why I answered: Just position the cursor, i.e. place the cursor over the line, exactly the same way you do under Visual Studio. There is no need to select anything.

                And yes, I assumed (wrongly) that the lines were all in the same file.

                Kaley GoodeK 1 Reply Last reply Reply Quote 0
                • Gogo NeatzaG Offline
                  Gogo Neatza
                  last edited by

                  @Kaley Goode
                  There is a plugin called “Visual Studio Line Copy” :
                  “Adds two commands to Notepad++ CopyAllowLine and CutAllowLine, which adds Visual Studio style copy/cutting to Notepad++.”

                  1 Reply Last reply Reply Quote 1
                  • Kaley GoodeK Offline
                    Kaley Goode @NippurDeLagash
                    last edited by

                    @Scott-Sumner Thank you for your extensive answer.
                    I clearly have to do lots of reading before being able to do something one would expect to be intuitive!

                    @NippurDeLagash: “just position the cursor” is the very thing I shouldn’t have to do. It’s already on the line!

                    @Gogo-Neatza The plug-in manager infinitely insisted it needed updating.
                    Once I ignored it, a couple of attempts at installing this plug-in finally worked.
                    It appears to add two menu entries… I assumed they’d be checked entries enabling the behaviour but they’re the commands…

                    So then I read @Scott-Sumner’s links which all mention the plug-in too and finally a dozen steps that I need to follow to finally get this basic text editor functionality:
                    https://bitbucket.org/zastrowm/notepad-visualstudiolinecopy
                    So now I can join the throng of people who can get on with their work sensibly.

                    I do, however, remain in disbelief that a user should have to go to the lengths I have to simply cut and copy lines efficiently! I’ve been ignoring Notepad++ since 2004 because of this shortfall (and our fixed-width fonts not being fixed width), which leads me to ask the community again:

                    Would it hurt to fill that hole?

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors