Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Centre the cursor vertically after search etc.

    General Discussion
    1
    1
    1795
    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.
    • David Bailey
      David Bailey last edited by David Bailey

      I have a personal plugin, and one feature I use quite frequently, scrolls the file vertically so as to centre the cursor if possible. I find this invaluable, because it lets you see something in context.

      What would be much better, would be if other operations - such as search and bracket match - that move the cursor vertically did the same thing, at least if the cursor would end up very close to the top/bottom of the page.

      Ideally this would be a nice enhancement to NP++, but if anyone knows how to combine an existing NP++/Scintilla command with some extra plugin code (e.g. how to invoke the search dialog from within the plugin, retaining control after the search has been performed) that would be interesting.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright © 2014 NodeBB Forums | Contributors