• Login
Community
  • Login

Feature Request: option for fast document switcher

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 2.5k 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.
  • E
    Elijah Gagne
    last edited by Dec 31, 2016, 4:03 PM

    The document switcher (Ctrl + Tab / Ctrl + Shift + Tab) is a great feature that I use all the time to switch between open tabs. When you press Ctrl + Tab, it pops up a document switcher menu. Then when you let go of Ctrl + Tab it switches to the next tab.

    This request is for a setting that lets you turn on “fast document switching.” With this setting enabled, you immediately switch to the next tab and the document switcher menu is never shown. This is the behavior of Chrome/Firefox and many other applications I use and I prefer it because it allows for faster switching.

    If anyone knows a workaround, I would also be very interested in that.

    S 1 Reply Last reply Dec 31, 2016, 8:15 PM Reply Quote 0
    • S
      Scott Sumner @Elijah Gagne
      last edited by Dec 31, 2016, 8:15 PM

      @Elijah-Gagne

      Here is a simple Pythonscript example for implementing the forward-moving behavior through the files in the primary view:

      view0_file_count = 0
      for (_, _, _, view) in notepad.getFiles():
          if view == 0: view0_file_count += 1
      notepad.activateIndex(0, (notepad.getCurrentDocIndex(0) + 1) % view0_file_count)
      
      1 Reply Last reply Reply Quote 0
      • S
        Scott Sumner
        last edited by Dec 31, 2016, 8:59 PM

        Actually, I think this functionality already exists. See the View menu, Tab submenu, Next Tab and Previous Tab entries.

        1 Reply Last reply Reply Quote 1
        • Y
          young-developer
          last edited by Jan 5, 2017, 5:44 PM

          Please look at my plugin NavigateTo it could be useful for you.
          https://notepad-plus-plus.org/community/topic/12892/navigateto-navigate-between-files-tabs-quickly-like-a-ninja-d

          1 Reply Last reply Reply Quote 0
          • E
            Elijah Gagne
            last edited by Jan 6, 2017, 12:45 AM

            Thank you both. Scott, yes, you’re right that View > Tab > Next Tab does exactly what I’m looking for. I re-mapped those commands to the keys I liked and disabled the document switcher.

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