• Login
Community
  • Login

Centre the cursor vertically after search etc.

Scheduled Pinned Locked Moved General Discussion
1 Posts 1 Posters 2.1k 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.
  • D
    David Bailey
    last edited by David Bailey Jul 13, 2015, 3:26 PM Jul 13, 2015, 3:24 PM

    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
    1 out of 1
    • First post
      1/1
      Last post
    The Community of users of the Notepad++ text editor.
    Powered by NodeBB | Contributors