Find-in-files result list doesn't allow copying file names to clipboard
-
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?
-
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 -
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).
-
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.
-