Skip to content

Instantly share code, notes, and snippets.

@basnijholt
Last active March 10, 2020 23:25
Show Gist options
  • Select an option

  • Save basnijholt/2283aaffc047085c053b3ce658e1d9e8 to your computer and use it in GitHub Desktop.

Select an option

Save basnijholt/2283aaffc047085c053b3ce658e1d9e8 to your computer and use it in GitHub Desktop.
macOS keyboard shortcuts I frequently use

Frequently used shortcuts

Spectacle

  • Command + Option + > = next third
  • Command + Option + < = previous third
  • Command + Option + ← = window to left
  • Command + Option + → = window to right
  • Command + Option + N = next screen

Sublime / VS Code

  • Command + Shift + L = cursor at all selected lines
  • Command + D = select next word
  • Command + U = undo “select next word”
  • Control + M = go to matching bracket
  • Command + Shift + Space = select between brackets

Nano

  • Control + X = save
  • Control + K = cut line
  • Control + U = paste line(s)

1Password

  • Command + Option + \ = Mini 1Password window
  • Command + Shift + C = copy password of selected entry
  • Command + Control + C = copy username of selected entry

MacOS

  • Command + Shift = Spotlight
  • Command + , = preferences
  • Command + ` = next window of app
  • Command + R = refresh session
  • Command + Shift + Delete = empty thrash
  • Command + Control + Q = Sleep

iTerm

  • Command + D = new sub terminal
  • Command + T = new tab
  • Control + Tab = next tab
  • Control + Shift + Tab = previous tab
  • Can’t use https://apple.stackexchange.com/a/114207 because of conflict with Spectacle
  • gst = git status
  • gd = git diff
  • gds = git diff —staged
  • gp = git push
  • gl = git pull
  • grb = git rebase
  • ga = git add
  • gc = git commit
  • gc! = git commit --amend
  • gco = git checkout
  • gcb = git checkout -b
  • z PARTIAL_PATH_HERE = cd to path
  • l = ls -lah

Brave

  • Command + T = new tab
  • Control + Tab = next tab
  • Control + Shift + Tab = previous tab
  • Command + L = select address bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment