• Login
Community
  • Login

Shortcut for Views?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 4 Posters 4.6k 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.
  • S
    Stefan Travis
    last edited by Jun 25, 2015, 11:45 PM

    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
    • J
      jonandr
      last edited by Jun 27, 2015, 9:39 AM

      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
      • S
        Stefan Travis
        last edited by Jun 27, 2015, 7:16 PM

        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
        • D
          David Bailey
          last edited by Jun 30, 2015, 8:37 PM

          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
          • S
            Scott Sumner
            last edited by Jul 20, 2015, 11:00 AM

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors