Community
    • Login

    How to "show/display the results of what I replaced" ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 624 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.
    • Vasile CarausV
      Vasile Caraus
      last edited by Vasile Caraus

      hello, does anyone know how to “show/display the replaced results” ?

      I just searched and replaced something. How do I see what I have replaced? Can’t see it in the console?

      1 Reply Last reply Reply Quote 0
      • Vasile CarausV
        Vasile Caraus
        last edited by

        I try F7, but nothing happen…

        1 Reply Last reply Reply Quote 0
        • Terry RT
          Terry R
          last edited by

          @Vasile-Caraus said in How to "show/display the results of what I replaced" ?:

          How do I see what I have replaced?

          A quick test to confirm my suspicions, the F7 will re-open a search result window when using the “Find in Files” option.

          So if you close the open file in Notepad, then use your regex in the “Find in Files” and select the folder/file(s) you want to eventually replace text within. Then don’t use the “replace in files” option, rather use the “Find All”. The results will appear in the bottom of Notepad++. If you then happen to close this window, pressing F7 will re-open it.

          If you are then happy with the results, you could use the “Find in Files” option again, this time adding the replacement text and selecting the “Replace in Files” option.

          Terry

          1 Reply Last reply Reply Quote 1
          • Alan KilbornA
            Alan Kilborn
            last edited by

            So, say you do a Replace All and it replaces a bunch of occurrences in the current document. If, before that operation, you’ve saved your file, and you use the Compare plugin, you could compare the current document against the version on disk. Voila! It shows you the replacements made.

            1 Reply Last reply Reply Quote 3
            • PeterJonesP
              PeterJones
              last edited by PeterJones

              In another thread, rather than here, @Vasile-Caraus said in Viewing Find/Search results...:

              you should include this feature (such as a console) in a plugin as NppExec. Because I want to see what exactly did I “Replace”, and if I have to perform an undo before saving.

              If you have a new feature you’d like to request, please see this FAQ for instructions on how to do that.

              PS: If you want more discussion on your issue, please do so in the thread you started, or other active threads. Re-awakening another thread that has been completed for 2.5 years, when the only commonality between that thread and your issue are the words “find/search”, is considered poor forum etiquette (here or in any other forum I’ve been involved in). It’s fine to re-open a thread that’s actually related to the issue you’re having, but in this case, wanting to see a list of all the lines changed by a replace function is a completely different topic than was being discussed in that “Viewing Find/Search results...” thread.

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