Community
    • Login

    Find-in-files result list doesn't allow copying file names to clipboard

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 7.1k Views 2 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.
    • Les FergusonL Offline
      Les Ferguson
      last edited by

      When I use find-in-files it would be very useful to be able to select a list of the file names from the results, but they do not get copied. You can Select All on the results panel and copy to clipboard, but this copies only the line matches and skips the file names.

      Has anybody got plans to change this?

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

        This topic (and the solution you desire!) is discussed here:
        https://notepad-plus-plus.org/community/topic/10436/containing-line-numbers-from-find-window-not-copied-anymore

        1 Reply Last reply Reply Quote 0
        • Jim DaileyJ Offline
          Jim Dailey
          last edited by

          @Les-Ferguson

          It looks like you cannot get just the file names. If you use <Ctrl>+C to copy whatever is highlighted, then you will get the filenames and all the lines in those files including the line numbers (even if you have collapsed all the file hits so that only the file names are visible).

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

            Jim is correct.

            However, one can apply a regular expression find and replace to derive that information:

            Find what: (?-is)(?:^(?:Search "|\t).+\R| (\d+ hits?)$)
            Replace with: (leave this box empty)

            This regex is attributable to an earlier post by guy038; apologies, at the moment I can’t find the link to that original posting.

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

              Found the link! :
              https://notepad-plus-plus.org/community/topic/11637/collapse-function-how-to-copy-just-the-collapsed-results-from-results-window/2

              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