Community
    • Login

    fundamental question about the positioning of the cursor after marking a text to copy via context menu

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 910 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.
    • MaxsteinfeldM
      Maxsteinfeld
      last edited by

      Hi @ alll
      I switched from MS notepad to notepad ++
      Following problem:
      when I marked a line in MS notepad, I could right-click in any position to open the contextmenu
      the marked text line remains highlighted
      in notepad ++ I have to position the cursor on the marked text, otherwise the marking disappears and the line “copy” in the contextmenu is gray
      Is it possible to establish compatibility with the MS Edito possibly via a pluginr?
      regards
      B.

      Meta ChuhM Mikhail VM 2 Replies Last reply Reply Quote 1
      • Meta ChuhM
        Meta Chuh moderator @Maxsteinfeld
        last edited by Meta Chuh

        @Bernd-Roeckerath

        yes, it is necessary to keep the mouse pointer on top of a marked line if you want to use e.g. “copy” from the right-click context menu in notepad++.

        currently i can only provide you with a workaround like copying with [ctrl] + [c] which does not depend on the mouse pointer position.

        i don’t know a plugin that could detach the context menu of a tab from the mouse pointer position.

        1 Reply Last reply Reply Quote 1
        • MaxsteinfeldM
          Maxsteinfeld
          last edited by

          ok i understand -
          thx for the reply

          1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn
            last edited by

            It does seem rather silly that the selection gets canceled for such a case, and the caret gets moved to the point of right click. Maybe it would make more sense if right-click + drag actually did something. Anybody know if other editors do some interesting things if the user does this?

            1 Reply Last reply Reply Quote 1
            • Mikhail VM
              Mikhail V @Maxsteinfeld
              last edited by

              @Maxsteinfeld
              I think it is hardcoded behaviour of NPP so I suspect there is no easy solution. Maybe you can raise an issue on Github page.
              I know at least one possible workaround - if it is really important to have this you could use Autohotkey solution to invoke AppsKey on right click. It does not reset the selection, but it will block other possible features - like e.g. context menu on tabs hover will become inaccessible.

              #If winActive("ahk_exe notepad++.exe")
              
              rbutton::
              	send {appskey}
              return
              1 Reply Last reply Reply Quote 3
              • MaxsteinfeldM
                Maxsteinfeld
                last edited by

                @Mikhail
                THX for your great & simple workaround - it solves my prob
                i use ahk in my workflow so it was easy to add your hotkey
                greets
                Max

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