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.
    • Elijah GagneE
      Elijah Gagne
      last edited by

      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.

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @Elijah Gagne
        last edited by

        @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
        • Scott SumnerS
          Scott Sumner
          last edited by

          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
          • young-developerY
            young-developer
            last edited by

            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
            • Elijah GagneE
              Elijah Gagne
              last edited by

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