• Login
Community
  • Login

Search - Retained ? ? ?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 4 Posters 764 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.
  • K
    Kendall DeMott
    last edited by Dec 29, 2021, 9:55 PM

    Under Search / Find, in the drop-down window, what file in Note ++ saves you searches. A lot of the time I will search for something that I rarely look for, that search will overwrite a search that I use a lot. Then when Note ++ is closed and reopened, some of my regularly searched phrases will be gone.
    I was hoping I could open Note’s directory, open a file, and type in the saved search’s I want displayed in that window. I did some searches in its Dir folder, but I was unable to find a file.

    A 1 Reply Last reply Dec 29, 2021, 10:40 PM Reply Quote 0
    • A
      Alan Kilborn @Kendall DeMott
      last edited by Dec 29, 2021, 10:40 PM

      @kendall-demott

      You can increase the number in the program’s memory. This is documented in the user manual.

      K 1 Reply Last reply Dec 31, 2021, 4:25 PM Reply Quote 0
      • K
        Kendall DeMott @Alan Kilborn
        last edited by Dec 31, 2021, 4:25 PM

        I’ve already increased it to 10, and that is not my question, I want to know where they are stored so I can reset them myself, I can’t see see why that would be a problem. They have to be store in a file somewhere as simple text. With what I do on a daily basis I have certain phrases that I search for routinely, and I like Note ++to load with these, and retain them when it closes.

        P A 2 Replies Last reply Dec 31, 2021, 4:31 PM Reply Quote 0
        • P
          PeterJones @Kendall DeMott
          last edited by Dec 31, 2021, 4:31 PM

          @kendall-demott ,

          They are stored in config.xml

          1 Reply Last reply Reply Quote 0
          • A
            Alan Kilborn @Kendall DeMott
            last edited by Dec 31, 2021, 5:11 PM

            @kendall-demott said in Search - Retained ? ? ?:

            I’ve already increased it to 10

            No you haven’t. The default is 10, you can increase it up to 30, I believe.

            and that is not my question

            True enough, and @PeterJones answered your real question.

            What I think you’re getting at is kind of a slick idea.
            Before you run Notepad++, say, as part of a batch file, you have something that goes in and hardcodes some searches.
            While I don’t have a use for that, I can see where some people might.

            K 1 Reply Last reply Jan 1, 2022, 3:31 AM Reply Quote 1
            • K
              Kendall DeMott @Alan Kilborn
              last edited by Jan 1, 2022, 3:31 AM

              I have about (20) key phrases I search for, but only about (10) that I use a lot. It wouldn’t even have to to be something that was hard coded, if I could just find the correct file they are stored or saved in, delete the ones I don’t want, and copy/paste mine in, it would have a lot of time, and I would not have to keep typing in phrases that I need, that where not retain when Note ++ was closed.

              A A 2 Replies Last reply Jan 1, 2022, 11:43 AM Reply Quote 0
              • A
                Alan Kilborn @Kendall DeMott
                last edited by Jan 1, 2022, 11:43 AM

                @kendall-demott said in Search - Retained ? ? ?:

                if I could just find the correct file they are stored or saved in

                Well you were already directed to find config.xml. If you haven’t located it, try directing an Explorer window to %APPDATA%\Notepad++.

                If you edit config.xml make sure you do it without Notepad++ running (because Notepad++ will save that file, overwriting any manual edits, when you exit it).

                @kendall-demott said in Search - Retained ? ? ?:

                delete the ones I don’t want, and copy/paste mine in,

                Well, the problem there is that Notepad++ retains only your last so many searches. As you do new searches, the old ones will get pushed off and forgotten. So, I don’t think your idea is very practical.

                1 Reply Last reply Reply Quote 1
                • A
                  artie-finkelstein @Kendall DeMott
                  last edited by Jan 1, 2022, 8:22 PM

                  @kendall-demott

                  Based on my current workflow, I will create a “phrase file” to store boiler plate or frequently needed text for a project. I drag the tab to the far left and leave that file loaded as I merrily edit other files. The far left tab is easy to jump to using the Window menu selection. Then it’s just a case of jump to tab, copy text, jump back to context (current) tab and execute the search and paste the copied test into the search menu. Admittedly, returning to the context (current) tab is not always easy if I have many files open. By using session files (or just relying on the built in session manager), the phrase file becomes part of the project. This approach may be a bit crude, but I can easily modify it as the tasks change.

                  There are plugins that also handle things like this (quips, boiler plate, etc.), I just haven’t found one I liked enough to really learn how to use it and change my eclectic workflows appropriately.

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