Community
    • Login

    copying text in search result

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 3.9k 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.
    • Nuno AnjosN
      Nuno Anjos
      last edited by

      Hello to all,

      I have several regular text files opened in Notepad++ and I want to search all of them for some word. I click on Find in the Search menu and the Find window opens. I write the word in the “Find what :” box, I click in the “Find All in All Opened Documents” button, and the search results for all files are displayed in a new “Find result” window that opens in the lower part of Notepad++. All OK for now.

      Now I want to copy some text in the “Find result” window. I select the text with the mouse, I right click to copy, and then I right click to paste in some other location. But what is pasted is the entire line and not the text that I highlighted with the mouse. Is there a way to copy only the selected text?

      This worked fine in a much older version of Notepad++, but since I updated to v7.3.3 I can only copy the entire line and not the highlighted text.
      Copying text directly from the file (and not from the “Find result” window) works well.

      Thanks in advance for any help,
      Nuno

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @Nuno Anjos
        last edited by

        @Nuno-Anjos

        Instead of using the right-click -> Copy method after selecting your desired text, simply press the Ctrl+C shortcut.

        If you don’t want the line-number information in your copy, start your selection with the mouse after the : character following the line number while holding down the Alt key.

        This isn’t quite ideal when copying from more than one line in the Find-result panel, but usually it is workable.

        More info about the differences between the right-click mouse copy versus the keyboard shortcut copy is found here: https://notepad-plus-plus.org/community/topic/10436/containing-line-numbers-from-find-window-not-copied-anymore/2

        1 Reply Last reply Reply Quote 0
        • Nuno AnjosN
          Nuno Anjos
          last edited by

          Yes, the Ctrl+C shortcut does what I want
          Many thanks for your reply!
          Nuno

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