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.
-
-
-
@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 theAlt
key down and then tapping the lettersS B C
followed byEnter
. That will navigate to and use Notepad++'sClear 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.