Community
    • Login

    Shortcut for Views?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 5.6k Views 1 Watching
    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.
    • Stefan TravisS Offline
      Stefan Travis
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • jonandrJ Offline
        jonandr
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • Stefan TravisS Offline
          Stefan Travis
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • David BaileyD Offline
            David Bailey
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • Scott SumnerS Offline
              Scott Sumner
              last edited by

              @David-Bailey , which plugin is yours? You didn’t say what it was or what it does.

              1 Reply Last reply Reply Quote 0

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