• Login
Community
  • Login

Is there a Hot key combo for "Clear all Bookmarks"

Scheduled Pinned Locked Moved General Discussion
4 Posts 4 Posters 296 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.
  • N
    N8 Holt
    last edited by Jan 29, 2025, 7:20 PM

    It would be convenient for me as I step through a sizeable source code file, setting bookmarks along the way, to be able to optionally set a bookmark when I find a key point in the program but quickly (hot key) be able to first clear all of the trailing bookmarks accumulated up to that point in time.

    T M 2 Replies Last reply Jan 29, 2025, 7:23 PM Reply Quote 0
    • T
      Terry R @N8 Holt
      last edited by Jan 29, 2025, 7:23 PM

      @N8-Holt

      Yes, you use shortcut mapper to add in a shortcut for this function.

      Terry

      A 1 Reply Last reply Jan 29, 2025, 7:54 PM Reply Quote 1
      • A
        Alan Kilborn @Terry R
        last edited by Alan Kilborn Jan 29, 2025, 8:03 PM Jan 29, 2025, 7:54 PM

        @Terry-R said:

        Yes,

        Your “Yes” seems like a direct answer to the question posed in the topic title.
        Should have been “No, but you can…”


        @N8-Holt

        Having this on a keycombo that is easy to hit is dangerous (because it could accidentally happen), as it isn’t an undoable action!

        1 Reply Last reply Reply Quote 0
        • M
          mkupper @N8 Holt
          last edited by mkupper Jan 30, 2025, 8:36 PM Jan 30, 2025, 8:36 PM

          @N8-Holt said in Is there a Hot key combo for "Clear all Bookmarks":

          It would be convenient for me as I step through a sizeable source code file, setting bookmarks along the way, to be able to optionally set a bookmark when I find a key point in the program but quickly (hot key) be able to first clear all of the trailing bookmarks accumulated up to that point in time.

          One of the things about this that’s giving me pause is that bookmarks are semi-persistent. They are stored in the session.xml file. As long as you keep a file or tab open in Notepad++ then the editor will remember the bookmarks when you close or exit Notepad++ and restart it. However, if you close a tab and then immediately re-open it using the recently closed file list then all of the bookmarks for that file are gone.

          That said, I’m wondering what you mean by “trailing bookmarks accumulated up to that point in time.” Let’s say you start Notepad++ and see that there are already five bookmarks in a file. You add three more. Would you expect this “clear” function to remove the three you added in this session or would you expect it to clear all eight bookmarks, or do you want to clear some other subset of the bookmarks?

          The thing @Terry-R suggested is to add a keyboard shortcut to the Search / Bookmark / Clear all bookmarks function. You may want to start out by first getting used to holding the Alt key down and then tapping the letters S B C followed by Enter. That will navigate to and use Notepad++'s Clear all bookmarks function if that is the thing you are seeking.

          If you are not seeking to clear all bookmarks then the answer is “no” to the original question but please provide more information as it may well be possible to work out a way to define and clear a subset of the bookmarks.

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