Shortcut for Views?
-
It’s simple to assign shortcut keys to tabs 1-9 within a view, but is it possible to assign them to the views themselves?
At the moment, I’m using a shortcut to trigger an external macro to click the pointer on where the first tab on the first view should be, and navigate from there. But it’s not exactly elegant.
If N++ can’t do this now, could it be added in later versions?
-
If I understand you correctly, you want separate shortcuts for “active tab n in view 1” and “active tab n in view 2”.
This can be done with the PythonScript plugin. Install it and write some scripts which does what you want (use the Notepad.activateIndex function). Then assign shortcuts.
http://npppythonscript.sourceforge.net/docs/latest/notepad.html
-
Well that certainly looks…comprehensive. And possibly an alternative to the N++ Macro system overhaul that’s been suggested.
Rather impressive how it lets you assign shortcuts to plugin operations - something rather lacking natively.
I may have to spend the next month re-learning Python 2.x, and translating my vTask scripts into it.
-
Stefan,
If your native tongue is C++, you can write a plugin in that. It is a pretty easy scheme to learn. I have one plugin that is publicly available, and another with all sorts of odds and ends that I find useful.
David
-
@David-Bailey , which plugin is yours? You didn’t say what it was or what it does.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login