Community
    • Login

    search-replace

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 247 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.
    • khk khkK
      khk khk
      last edited by

      Is it possible to save my search-replace for later use?

      Alan KilbornA khk khkK 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        The search/replace dialogs save the last 10 or so expressions, which you can access with the up/down arrows while you’re in the blanks.

        Do you need more than that?

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

          @khk-khk

          possible to save my search-replace

          How about recording and saving a macro of it? A potential downside is that it becomes a “fixed” operation at that point, you can’t easily edit it to tweak it. You’d have to find it in shortcuts.xml to do that.

          Far from ideal, but if you have a search-not-replace operation and you record it in the context of a Find all in current document macro, when you run it, it (the search expression) will appear in the Search "blah" (10 hits in 1 file) area and you can easily then copy the blah part out and tweak it for a subsequent search. I find this useful sometimes in the context of a complicated regular expression search.

          @PeterJones

          save the last 10 or so expressions,

          Yes but as they are not saved as pairs it is easy to lose track of which search term goes with which replace. And you can’t give it a mnemonic name like you can with a macro.

          1 Reply Last reply Reply Quote 2
          • khk khkK
            khk khk @khk khk
            last edited by

            @khk-khk Thanx to all - I’ll try

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