Community
    • Login

    How Do I Delete Search Entries?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    36 Posts 9 Posters 25.4k 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.
    • PeterJonesP
      PeterJones @PeterJones
      last edited by PeterJones

      @Troglo37 ,

      Correction to what I said earlier: The config.xml file can be overwritten by Notepad++ on exit, even if you follow the procedure I linked, so that sequence won’t reliably work for config.xml. To edit config.xml, close all instances of Notepad++; edit config.xml in some other editor (like Windows’ builtin notepad.exe) and save; reload Notepad++ and the changes should take effect.

      Troglo37T 1 Reply Last reply Reply Quote 0
      • Troglo37T
        Troglo37 @PeterJones
        last edited by

        @PeterJones I have to leave now. I’ll be gone most of the day. When I get back, I’ll follow your instructions and let you know if I was successful with it or not.

        1 Reply Last reply Reply Quote 0
        • Troglo37T
          Troglo37
          last edited by

          @PeterJones said in How Do I Delete Search Entries?:

          nbMaxFindHistoryFind=“10”

          Should I change nbMaxFindHistoryPath=“10”, nbMaxFindHistoryFilter=“10” and nbMaxFindHistoryReplace=“10” all to 30 too?

          It seems as though they should be changed too, but I dare not do so unless you tell me to do so.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Troglo37
            last edited by

            @Troglo37 said in How Do I Delete Search Entries?:

            It seems as though they should be changed too

            Those are editable as well. (You could have found that out by looking at my issue#241 linked above, which has the description that will hopefully be in the next version of the online usermanual.)

            Whether or not you should depends on whether you desire the “replace” , “filters”, and “directory” boxes to have a longer history as well. All have the same restriction of a value up to 30.

            but I dare not do so unless you tell me to do so.

            I cannot tell whether that was serious – in which case, wow, calm down, the only thing that could go wrong is you’d lose some regex history – or sarcasm – in which case, wow, calm down, I’ve never claimed to be the arbiter of what you should or should not do with Notepad++. I’m just trying to be helpful.

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

              @PeterJones said in How Do I Delete Search Entries?:

              the only thing that could go wrong is you’d lose some regex history

              Is that even true?
              I know there was an old bug with that, but I thought it got fixed.

              Should I change nbMaxFindHistoryPath=“10”, nbMaxFindHistoryFilter=“10” and nbMaxFindHistoryReplace=“10” all to 30 too?

              I think even if you set them all to 99, each one individually should get set to its maximum when you next exit Notepad++ (and config.xml gets rewritten).

              (I really really think too much time and effort has gone into discussing this. I hope it is over. Whew!)

              Troglo37T PeterJonesP 2 Replies Last reply Reply Quote 0
              • Troglo37T
                Troglo37 @Alan Kilborn
                last edited by

                @PeterJones I wasn’t being sarcastic and it wasn’t meant as a slight toward you. I meant it as I wouldn’t take the chance of changing something that you didn’t say to change for fear it might have unintended consequences.

                It’s already evident I’m not well-versed in N++ and defer to someone with much greater knowledge than I.

                @Alan-Kilborn I’m aware that the max is 30. The issue was whether or not to change the other 3 entries I asked about to 30.

                1 Reply Last reply Reply Quote 0
                • PeterJonesP
                  PeterJones @Alan Kilborn
                  last edited by

                  @Alan-Kilborn said in How Do I Delete Search Entries?:

                  @PeterJones said in How Do I Delete Search Entries?:

                  the only thing that could go wrong is you’d lose some regex history
                  Is that even true?
                  I know there was an old bug with that, but I thought it got fixed.

                  It could be set to 0, which still clears the history (understandably, since you told it you want a 0-length history).
                  (yes,

                  I hope it is over.

                  Sorry, you asked, I had to answer. ;-)

                  1 Reply Last reply Reply Quote 0
                  • Troglo37T
                    Troglo37
                    last edited by

                    I went ahead and enabled all of the entries to 30. I added 30 entries, closed and reopened N++ and so far all seems to be working properly.

                    P.S. I have no idea what the 3 entries (nbMaxFindHistoryPath=“10”, nbMaxFindHistoryFilter=“10” and nbMaxFindHistoryReplace=“10” NOW “30”) do. I just assume by looking at what’s written in the code that they’re related and possibly should match nbMaxFindHistoryFind=“30”.

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

                      Hello, @troglo37, @peterjones, @alan-kilborn, @ekopalypse and All,

                      @troglo37 :

                      Well, you could have guessed, with a bit of deduction, even if not aware about technical matters !!

                      • Firstly, look at the four main fields of the Find in Files dialog ( Ctrl + Shift + F ):

                        • Find what:

                        • Replace with:

                        • Filters:

                        • Directory:

                      • Secondly, look at the first 4 attributes of the <FindHistory •••••••••••••••> tag :

                        • nbMaxFindHistoryPath

                        • nbMaxFindHistoryFilter

                        • nbMaxFindHistoryFind

                        • nbMaxFindHistoryReplace

                      Isn’t it obvious ?


                      Still confused ?

                      • Then, let’s re-organize these four attributes, like below :

                        • nbMaxFindHistoryFind

                        • nbMaxFindHistoryReplace

                        • nbMaxFindHistoryFilter

                        • nbMaxFindHistoryPath

                      I hope you get it :-))

                      Best Regards,

                      guy038

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

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