list showing only the results
-
If I have a very large * .txt file and I do a search where there are 1237 results. Is it then possible to only show the results and not have to press “Next” every time.
View a list showing only the results
-
Hello, @steen-mikkelsen and All,
Yes, you can simply use the built-in N++
Mark
feature !So :
-
Open the Mark dialog (
Ctrl + M
) -
Type in your search in the
Find what :
field -
Untick all options
-
Tick the
Bookmark line
,Purge for each search
andWrap around
options -
Tick the
Match case
option, if necessary -
Select your search mode
-
Click on the
Mark All
button
From this point, you can, either :
-
Go to the next or previous occurrence of your search with the
F2
andShift + F2
default shortcuts -
Paste all your occurrences elsewhere by clicking on the
Copy Marked Text
button -
Use the menu option
Search > Bookmark > Copy Bookmarked lines
in order to paste all the lines, containing at least, one occurrence of your search -
You may use the
Bookmark
sub-menu to cut or delete all these bookmarked lines, as well
Best Regards,
guy038
-
-
-
As @Terry-R said in the other version (now locked),
without additional information it’s hard to "guess"what your needs are.
However, like Guy, I will try to make a guess.
Is it then possible to only show the results and not have to press “Next” every time.
In the Search > Find dialog, instead of hitting Find Next, you can click Find All in Current Document. This will find all the occurrences in the current document (or in the current selection, if that checkbox is marked), and will list them in the Search Results panel. You can then scroll through the list of all lines with matching text, and select whichever one you want to navigate to in the main editor. The Search Results is documented in the online user manual.