Request: Change in how bookmarks are set/jumped to

  • This is a request for an addition, not a replacement, for the existing bookmarks function. Currently we had ctrl-F2 to set a bookmark, and something related to F2 to go to a bookmark.

    I’d like to have the ability to set bookmarks with ctrl-shift-NUMBER (top of keyboard), and jump to that bookmark with ctrl-NUMBER.

    This is handy to jump directly to a bookmark, especially if I have 8 bookmarks set, which is common in my job. With the old system I have to jump through up to 8 bookmarks to get to where I need to go.


  • @Blafulous-Crassley

    This is a good suggestion but to get it some visibility I think you should follow these instructions.

    I would think a little prompt window rather than tying up “n” keycombinations…I dunno, that slows down the workflow…

    The editor I used longest before Notepad++ had this kind of feature. It would put the number of the bookmark inside the little symbol in the margin. I actually can’t remember how the keyboard shortcuts worked for it…hmmm…

  • I’m surprised no one else has mentioned this in the intervening time…but there’s a Bookmark Manager plugin available; maybe it meets the need here.

  • Okay so I tried out the Bookmark Manager plugin myself…and it totally meets the need of the OP (in my judgment of what the OP is looking for). It even exceeds the need as it allows for up to NINE custom-numbered bookmarks (OP needed 8).

    For me, this plugin is a “keeper”! :-D

  • @Blafulous-Crassley
    Good news That’s already implemented, and I use it everyday.

    It’s in menu :

    • search/ mark all / using 1st style (from 1 to 5 style)
    • search/ Unmark all / clear 1st style (from 1 to 5 style)
    • search/ Jump up / 1st style (from 1 to 5 style)
    • search/ Jump down / 1st style (from 1 to 5 style)

    Of course you can map it to a shortcut
    Here is my config xml

    <!–Using 1st Style - Ctrl+1 -->
    <Shortcut id=“43022” Ctrl=“yes” Alt=“no” Shift=“no” Key=“49” />
    <!–Using 2nd Style - Ctrl+2 -->
    <Shortcut id=“43024” Ctrl=“yes” Alt=“no” Shift=“no” Key=“50” />
    <!–Using 3rd Style - Ctrl+3 -->
    <Shortcut id=“43026” Ctrl=“yes” Alt=“no” Shift=“no” Key=“51” />
    <!–Using 4th Style - Ctrl+4 -->
    <Shortcut id=“43028” Ctrl=“yes” Alt=“no” Shift=“no” Key=“52” />
    <!–Using 5th Style - Ctrl+5 -->
    <Shortcut id=“43030” Ctrl=“yes” Alt=“no” Shift=“no” Key=“53” />
    <!–Clear 1st Style - Ctrl+Shift+1 -->
    <Shortcut id=“43023” Ctrl=“yes” Alt=“no” Shift=“yes” Key=“49” />
    <!–Clear 2nd Style - Ctrl+Shift+2 -->
    <Shortcut id=“43025” Ctrl=“yes” Alt=“no” Shift=“yes” Key=“50” />
    <!–Clear 3rd Style - Ctrl+Shift+3 -->
    <Shortcut id=“43027” Ctrl=“yes” Alt=“no” Shift=“yes” Key=“51” />
    <!–Clear 4th Style - Ctrl+Shift+4 -->
    <Shortcut id=“43029” Ctrl=“yes” Alt=“no” Shift=“yes” Key=“52” />
    <!–Clear 5th Style - Ctrl+Shift+5 -->
    <Shortcut id=“43031” Ctrl=“yes” Alt=“no” Shift=“yes” Key=“53” />
    <!–1st Style - F5 -->
    <Shortcut id=“43033” Ctrl=“no” Alt=“no” Shift=“no” Key=“116” />
    <!–2nd Style - F6 -->
    <Shortcut id=“43034” Ctrl=“no” Alt=“no” Shift=“no” Key=“117” />
    <!–3rd Style - F7 -->
    <Shortcut id=“43035” Ctrl=“no” Alt=“no” Shift=“no” Key=“118” />
    <!–4th Style - F8 -->
    <Shortcut id=“43036” Ctrl=“no” Alt=“no” Shift=“no” Key=“119” />
    <!–5th Style - -->
    <Shortcut id=“43037” Ctrl=“no” Alt=“no” Shift=“no” Key=“0” />
    <!–1st Style - Shift+F5 -->
    <Shortcut id=“43039” Ctrl=“no” Alt=“no” Shift=“yes” Key=“116” />
    <!–2nd Style - Shift+F6 -->
    <Shortcut id=“43040” Ctrl=“no” Alt=“no” Shift=“yes” Key=“117” />
    <!–3rd Style - Shift+F7 -->
    <Shortcut id=“43041” Ctrl=“no” Alt=“no” Shift=“yes” Key=“118” />
    <!–4th Style - Shift+F8 -->
    <Shortcut id=“43042” Ctrl=“no” Alt=“no” Shift=“yes” Key=“119” />
    <!–5th Style - Shift+F9 -->
    <Shortcut id=“43043” Ctrl=“no” Alt=“no” Shift=“yes” Key=“120” />

    Have Fun

  • @cmeriaux

    Well, that’s some out-of-the-box thinking! :-)

    However, the user needs 8+ “thingies” (maybe can’t call them bookmarks anymore) and this type of thingy only provides 5. Also, this doesn’t remain if Notepad++ is restarted. So…some limitations, so I still like the plugin method better.

  • @Scott Sumner

    I found an issue in Bookmark Manager, and reported it in
    Using bookmark manager 1.1.97 in npp 7.5.9

    After creating and removing a bookmark (with toggle or with clear bookmarks), when I move down with the cursor to the bottom of the window, and go down further, sometimes npp works funny - instead of scrolling down one line at the bottom , the next line will appear at the top of the window. This doesn’t happen in every case, maybe it depends on the position of the removed bookmark.

    It disappears only when I close the file and edit an other file.

    The issue doen’t exists in Ver 1.0.86.

    Maybe the the following modification causes this issue:
    caret is now centered vertically when jumping to a bookmark

Log in to reply