Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Should lines be duplicated when using "Find All in Current Document"?

    General Discussion
    find
    2
    2
    1017
    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.
    • marler8997
      marler8997 last edited by

      I use “Find All in Current Document” quite a bit. I’ve noticed that when the text I’m searching for appears in the same line multiple times that the line gets added to the Find result window once for each occurrence. It’s been a minor annoyance for me and was curious if others had experienced the same.

      I think a better design would have been to print the line once and just highlight the matches. It puts more information in less space and seems less confusing. The current design which prints the same line multiple times almost always “throws me” for a second. I try to figure out why the line appears in the file multiple times before I realize it’s just the same line with multiple matches. Is this just me or does this happen to anyone else?

      1 Reply Last reply Reply Quote 0
      • chcg
        chcg last edited by

        “Expected” behaviour since a long time.

        One part of the code for the visual representation is here in a n++ specific scintilla lexer:
        https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/lexers/LexSearchResult.cxx

        and the search itsself is done in somewhere in the n++ code itself and then transfered to the search result window. In this protocol as far as I remember there is just one marker start/end per line.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors