I've been using Spark for years. It lets you overwrite shortcuts of any application, such as Terminal and Safari. I use it to make both programs switch tabs with command+n where n is the tab number, from 1 to 9.
After you download and copy Spark.app to /Applications
, start it, click All Applications' Hotkeys to expand the menu on the left, and click on the plus sign to add new application.
Add Terminal (from /Applications/Utilities/Terminal.app
). Next thing is to create the shortcuts: click File->New HotKey->AppleScript (or just hit command+1). Click on the shortcut area and hit command+1, name it tab1 and use this code:
tell front window of application "Terminal" to set selected tab to tab 1
Repeat it for command+2 to command+9.
If you want the ability to vertically maximize the terminal, create a new shortcut like command+shift+m, name it whatever you want and use this code:
tell application "Finder"
set _b to bounds of window of desktop
end tell
tell application "Terminal"
tell front window
set {_x, _y, _w, _h} to (get bounds)
set _vz to item 4 of _b
set bounds to {_x, 10, _w, _vz}
end tell
end tell
Same thing for Safari on tab shortcuts, but the code is a bit different:
tell front window of application "Safari" to set current tab to tab 1
Honestly, I can't use either Terminal or Safari without this.
ctrl + tab
will nav you thru the terminal tabs in MacOS Sierra (and probably earlier)