Community
    • Login

    Keyboard Shortcut for moving tabbed files?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 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.
    • Larry LovellL
      Larry Lovell
      last edited by

      I quite often have more than 30 files open and when I need to open a new file NP++ opens it in a new tab at the far right (which is fine), but having files adjacent for some tasks is preferable. Dragging the new file to a different place in a long row of tabbed files can be bothersome, because the application gets hung up, and moves in a jerky way. Is there a keyboard shortcut for highlighting a particular tabbed file so that it can be moved with the keyboard then dropped, rather than with a mouse?

      1 Reply Last reply Reply Quote 1
      • cmeriauxC
        cmeriaux
        last edited by

        For sure, You can assign the shortcut you want in shortcut mapper ( Main menu panel) :

        • Move to Other View
        • Clone to Other View
        • Move to New Instance
        • Open in New Instance

        They will process the selected tab.

        Here is the XML config file of my configured shortcuts

            <!--Move to Other View - Ctrl+Alt+Shift+Right -->
            <Shortcut id="10001" Ctrl="yes" Alt="yes" Shift="yes" Key="39" />
            <!--Clone to Other View -  -->
            <Shortcut id="10002" Ctrl="no" Alt="no" Shift="no" Key="0" />
            <!--Move to New Instance -  -->
            <Shortcut id="10003" Ctrl="no" Alt="no" Shift="no" Key="0" />
            <!--Open in New Instance -  -->
            <Shortcut id="10004" Ctrl="no" Alt="no" Shift="no" Key="0" />
        
        Scott SumnerS 2 Replies Last reply Reply Quote 3
        • Scott SumnerS
          Scott Sumner @cmeriaux
          last edited by

          @cmeriaux

          Good idea to have keyboard shortcuts for those…but I think the OP is trying to achieve tab movement via keyboard within the same view and instance.

          1 Reply Last reply Reply Quote 2
          • Scott SumnerS
            Scott Sumner @cmeriaux
            last edited by

            @cmeriaux

            Thanks for the tip! Inspired by this I created two new macros, both tied to the Move to Other View command; one is tied to ctrl+shift+alt+left, the other is tied to ctrl+shift+alt+right. Although they both do the same thing, it is easier and feels more natural to have the arrow key be the one that points in the direction I want the tab to go. [Note that this implies I have my views arranged left-right instead of over-under.]

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