Hi
Is there a way to capture the results of a search in a single file to the search results window? I search large files for certain strings and would like the line(s) where the string was found to be stored/copied to the search results window like when you do a search in multiple files.
Thanks
Search Results for single file
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Not in the normal Find dialog, but as a slightly-cumbersome workaround you can use the Find In Files command to search a single file. You need to put the file name and folder path in the In files and In folder fields respectively. If your file name contains spaces you need to enclose it in quotes. Clicking Defaults sets the In folder field to the current working folder.
Use bookmarks
In the find dialog you can click "Mark All". This will bookmark the line(s) that match. Next you go to Edit -> Copy Other -> Bookedmarked Lines.
Now press CTRL+N for a new tab then CTRL+V to paste.
I created a keyboard shortcut to copy the bookmarked lines. In preferences -> keyboard select category Edit and command EditCopyTaggedLines and assign a key to it.
Now press CTRL+N for a new tab then CTRL+V to paste.
I created a keyboard shortcut to copy the bookmarked lines. In preferences -> keyboard select category Edit and command EditCopyTaggedLines and assign a key to it.
I'll vote for you!
Jim this is excellent and oh so obvious. How did I miss that?
Thank you.
However it is still not perfect because I think it is a feature that would be very easy to do for Textpad developers.
Thank you.
However it is still not perfect because I think it is a feature that would be very easy to do for Textpad developers.