Skip to content

jmmerz/move-tab-hotkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move Tab Hotkeys

This extension provides hotkeys for the following actions:

Key Action Description
Alt+Shift+Left Move tab left Moves the current tab one spot to the left.
If it is at the start of the tab bar, it wraps to the end.
Alt+Shift+Right Move tab right Moves the current tab one spot to the right.
If it is at the end of the tab bar, it wraps to the start.
Alt+Shift+0 Move tab to start Moves the current tab to the start of the tab bar.
Alt+Shift+9 Move tab to end Moves the current tab to the end of the tab bar.

Pinned and un-pinned tabs:

For all of the above, pinned and un-pinned tabs are treated separately.

Pinned tabs are kept in one block at the start of the tab bar, and un-pinned tabs are in a second block to the right. Whenever a tab is moved left/right or to start/end, that move happens within the part of the tab bar corresponding to it's pinned status.

Multi-selected tabs

If multiple tabs are selected, they can be moved together.

  • If the tabs are not adjacent, they are made adjacent upon first move per the behavior of dragging multiple non-adjacent tabs in Firefox. This is a simpler behavior with fewer unexpected results than what happens in Chrome for that situation.
  • This can be turned off by checking the "Don't move multi-selected tabs together" checkbox in the options.
  • If a group of selected tabs includes both pinned and un-pinned tabs, the tabs will not be moved at all.
  • On Firefox 63 and later, multiple-selection of tabs is not enabled by default. You must enable the browser.tabs.multiselect property in about:config.

Installation:

Version History:

  • Add ability to move multiple tabs at once if multiple are selected. (#13)
  • Firefox: Update validation of shortcut keys to support newly allowed combinations starting with Firefox 63.0. (#12)
  • Improvements to keyboard shortcut options alignment and positioning.
  • Firefox: Add ability to customize shortcuts.
  • Chrome: Fix logic to correctly disable tab wrapping for the first tab in the bar.
  • Add logic for skipping over hidden tabs in Firefox. Avoids situation where the tab must be moved left/right multiple times to pass hidden tabs.
  • Fix use of Alt+Shift+0/9 using the numeric keypad.
  • Add variant of the Chrome version to allow use of number pad and work around Chrome's limitation of 4 keyboard commands per extension.
  • Add option to disable tab wrapping at start/end of tab bar.
  • Initial release.

About

The Move Tab Hotkeys web extension for moving the current tab around.

Resources

License

Stars

Watchers

Forks

Packages

No packages published