• Login
Community
  • Login

Disable "are you sure you want to replace all occurences in" message

Scheduled Pinned Locked Moved General Discussion
find in filesmacrosafety
6 Posts 2 Posters 4.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.
  • G
    Guide Rencontre
    last edited by Mar 23, 2017, 10:19 PM

    Hi there,
    I work with a lot of .xml files and need to change data on them.
    For that, I’m using find in files Notepad function, but each time I need to check “are you sure you want to replace all occurences in …” which is very annoying when you have 100 files to do…
    Is it possible to disable this safety message ?
    Maybe saving my data change in a macro, and changing some parameters ?
    Best Regards,
    GR

    C 1 Reply Last reply Mar 23, 2017, 10:39 PM Reply Quote 0
    • C
      Claudia Frank @Guide Rencontre
      last edited by Claudia Frank Mar 23, 2017, 10:39 PM Mar 23, 2017, 10:39 PM

      @Guide-Rencontre

      Is it possible to disable this safety message ?

      Afaik, no.

      which is very annoying when you have 100 files to do…

      But you only have to acknowledge it once for all files, haven’t you?

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • G
        Guide Rencontre
        last edited by Mar 23, 2017, 10:46 PM

        Ouch ! That’s a bad news…

        I have something like 20 modifications to do for each files…
        So even if I save it in a macro, I have 20 times…

        Stranges facts :

        • if I save in a macro one action of find in files, the message doesn’t show up
        • if I save find in files using regex, it works only for the current file open and not for other…
        C 2 Replies Last reply Mar 23, 2017, 10:50 PM Reply Quote 0
        • C
          Claudia Frank @Guide Rencontre
          last edited by Mar 23, 2017, 10:50 PM

          @Guide-Rencontre

          wait, so you are saying you record a macro and you were able to record the click to confirm?
          I tried that some time ago (maybe some long time ago) and it wasn’t working.

          I will give it a try.

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 1
          • C
            Claudia Frank @Guide Rencontre
            last edited by Claudia Frank Mar 23, 2017, 11:04 PM Mar 23, 2017, 11:04 PM

            @Guide-Rencontre

            Strange - I don’t have that behavior using npp 7.3.2.
            I’m still getting the dialog to confirm the replace action, regardless
            if using normal or regex searches and when using regex searches all files get replaced.

            Can you provide your debug-info (under ? menu) together with a sample
            text and sample find/replace?

            Cheers
            Claudia

            G 1 Reply Last reply Mar 24, 2017, 2:06 PM Reply Quote 0
            • G
              Guide Rencontre @Claudia Frank
              last edited by Mar 24, 2017, 2:06 PM

              @Claudia-Frank You’re right, my mistake…
              If anyone has a solution to disable this safety message…
              Cheers ;)

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