Community
    • Login

    list showing only the results

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 3.6k 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.
    • Steen MikkelsenS
      Steen Mikkelsen
      last edited by

      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

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • guy038G
        guy038
        last edited by guy038

        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 and Wrap 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 and Shift + 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

        1 Reply Last reply Reply Quote 2
        • PeterJonesP PeterJones referenced this topic on
        • PeterJonesP
          PeterJones @Steen Mikkelsen
          last edited by

          @steen-mikkelsen ,

          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.

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