How to get a bookmarks list?

12

6

The bookmarks options in Notepad++(I'm using version 6.0) are okay, but their usefulness is limited by the fact that there is no way (that I can find) of getting a list of the existing bookmarks, so that I can jump to the one that I actually want.

This is an important feature to be missing, a fact that I personally find rather odd! I looked through the installed plug-ins, but don't see anything related to enhanced bookmarks. Is there any way to get this capability in Notepad++?

Daniel Miller

Posted 2012-03-30T18:51:15.280

Reputation: 121

Possibly connected/duplicate http://superuser.com/questions/392361/plugin-for-notepad-5-8-6-to-list-bookmarks-of-current-file

– Stat-R – 2012-04-06T20:26:25.733

1Interesting, yes, this is a duplicate of that topic, which also never got any responses...

So, is there any possibility of getting this issue fixed? – Daniel Miller – 2012-04-12T17:07:13.047

Yes people have been looking for it. See this http://sourceforge.net/projects/notepad-plus/forums/forum/331753/topic/3464977

– Stat-R – 2012-04-12T17:58:54.767

1Well, actually, 331753 is not the same topic; that thread is discussing saving/restoring bookmarks, my thread (and the duplicate un-responded-to thread) are discussing having a list of existing bookmarks, so user can select which bookmark they want to jump to, instead of being limited to previous/next.

Anyway, I hope you are correct that people are looking into it; I used bookmarks extensively in my day-to-day work, and Notepad++ simply is not useable without them, no matter how much I otherwise like the program... – Daniel Miller – 2012-04-16T20:29:18.000

That's right, Daniel. After not getting any answers, I tried writing my own plugin, but didn't get far. The Notepad++ source code header file Notepad_plus.h has a function bool bookmarkPresent(int lineno) which uses *ScintillaEditView _pEditView which I couldn't find a way to access from my plugin. – Gnubie – 2012-04-17T11:41:23.540

See this answer and vote for it! http://stackoverflow.com/a/14099960/1967573

– user1967573 – 2013-01-10T17:36:10.737

Answers

3

I know this is an old post but this limitation still exists in Notepad++. Besides Sri Varshan's suggestion, another option is to use a plugin named NPPTaskList, which can be downloaded here. It is designed to work like a to-do list but can work nicely as a bookmark list as well. Just install it like any other Notepad++ plugin and edit the npp_task_list.cfg file to use whatever "$" patterns you want; the default looks like this:

version= 1

keywords= $TODO:
$NOTE:
$HACK:
$REVIEW:

Any line that includes one of the above keywords (really the pattern sequence that begins with "$") will be included in the Task List, which is a sidebar. For example if you are coding in VB and enter this line:

REM $NOTE: This is a "bookmarked" line of code.

... it will show up in the Task List as:

$NOTE: This is a "bookmarked" line of code.

You can use these to navigate around your document by double-clicking them in the Task List.

I haven't tested this plugin extensively but so far it seems stable.

Mark

Posted 2012-03-30T18:51:15.280

Reputation: 31

Looks promising, but in Notepad++ v7.5.1 this plugin causes npp to crash whenever I use this... – Wouter – 2018-06-28T09:28:11.383

0

Depending on the objectives and the workflow it's possible to create an alternative menu for internal navigation across a file with the help of either of 2 plugins, in fact 3, but i found SourceCookifier to be heavy on the program, so may not be recommended.

These are TagsVew and LocationNavigate. The first creates a tree of code tags present in a file, so one can add tags with names at certain places to have them listed in the tree and be able to access them at will. The second one allows recording cursor placements at different locations within the file and then navigating between them using the list of recorded locations.

Баян Купи-ка

Posted 2012-03-30T18:51:15.280

Reputation: 101

0

There is a plugin called Named Bookmark plugin that can help you to list bookmarks in a drop down. If you don't like to use any plugins you can actually make use of Sessions, which obviously doesn't list the bookmarks but at least saves them when you open it the next time. I have written about both of these approaches in my blog and you can read it here.

Sri Varshan

Posted 2012-03-30T18:51:15.280

Reputation: 11