How can I set up keyboard shortcuts to put a tab into a position?
⌘1 for example selects the first tab, can I make a keyboard shortcut like ⌘⌥1 to make my current tab the first tab in the tab bar?
If you are using Chrome, the Rearrange Tabs extension works perfectly.
For Safari, you can setup an Automator service to run this Applescript and bind it to a key combination:
tell application "Safari" activate tell front window move current tab to before first tab -- for some reason it just creates a new tab with the same URL, -- so we need to do this: close current tab set current tab to tab 1 end tell end tell
To set up an Automator service and assign a keyboard shortcut to it:
Edit: On macOS Mojave in Automator, services might be named "Quick Action" or "Contextual Workflow".
(* Your script goes here *)text with the code from earlier
Unfortunately, there is no way to prevent the reloading of the tab when moving it. It is impossible to get the same effect as actually dragging the tab to move it.