/blog notes

portfolio & contact info

Keyboard Shortcuts

These are potentially useful and time-saving shortcuts that I've found and am in the process of learning. Shortcuts with a πŸ‘ are my most used.

keyboard

mac keyboard symbols

β‡₯ tab ⌘ command
⇧ shift ⎡ space
βŒƒ control ⌫ delete
βŒ₯ option / alt ↩ return
↑ ↓ ← β†’ arrow keys

osx

βŒƒ ↑↓←→ window switching
⇧ ⌘ 3 print screen
⇧ ⌘ 4 print selection
⌘ ⎡ spotlight search
⌘ βŒƒ ⎡ emoji πŸ˜„
⌘ G find next
⌘ , preferences
fn ⌫ delete forward πŸ‘
fn ↑↓ page up / down
⇧ ⌘ Z redo
⌘ ↑↓ cursor to doc start / end
⌘ ←→ cursor to line start / end
⇧βŒ₯ ↑↓ selection to para start / end
⇧βŒ₯ ←→ selection to word start / end
βŒƒ ⌘ F toggle fullscreen

terminal

pwd print working dir
cd dir/subdir to subdir
cd .. to parent dir
cd ../.. to parent of parent dir
cd / to top of boot volume
cd ~ to home dir /Users/jon
cd - to previous dir
ls list files
tree -L 3 dir tree to 3 levels
mv old new rename old to new
mv file ~/dir move file into dir
mv old ~/dir/new move & rename
rm file delete file
rm -R dir delete dir & contents
man ls open ls manual
cat file concatenate & print file
touch file create file or timestamp
echo β€˜str’ > file (over)write str to the file
echo β€˜str’ >> file append str to the file
!! rerun last command
β‡₯ autocomplete πŸ‘
β‡₯ β‡₯ autocomplete options
↑ enter prev command
⌘ K clear terminal
βŒƒ A to line start
βŒƒ E to line end
βŒƒ W remove word
βŒƒ U clear line

sublime

⌘ ⇧ P command palette
⌘ X cut line (if no selection)
⌘ ↩ insert line after
⌘ ⇧ ↩ insert line before
⌘ L select line, next line
⌘ D select word, next word πŸ”΄
βŒƒ ⌘ G get/edit all selection instances πŸ”΄
βŒƒ M jump to closing/opening ( ) πŸ”΄
βŒƒ ⇧ M select ( ) contents πŸ”΄
βŒƒ A go to line start
βŒƒ E go to line end
⌘ K K delete to end of line
⌘ K ⌫ delete to start of line
⌘ ][ indent / unindent
⌘ ⇧ D duplicate line πŸ‘
⌘ J join line below
⌘ / comment / uncomment line
⌘ βŒ₯ / block comment / uncomment
⌘ Y redo / repeat last
⌘ ⇧ V paste with indent πŸ”΄
βŒƒ ⇧ K delete line πŸ”΄
⌘ 1 jump to tab 1
⌘ ⇧ ][ switch tabs
βŒƒ β‡₯ cycle recent tabs
⌘ βŒ₯ (1-5) split view cols
⌘ βŒ₯ ⇧ (2,3) split view rows πŸ‘
⌘ ⇧ L split selection by line
⌘ βŒƒ ↑↓ move line up / down
βŒƒ T transpose chars

chrome

⌘ βŒ₯ J open console
⌘ click open link in background tab πŸ‘
⌘ ↩ open typed URL in background
⌘ L select URL
βŒ₯ ←→ next / previous address term
⌘ βŒ₯ B bookmark manager
⌘ βŒ₯ ←→ switch tabs
⇧ ⌫ go forward
⌘ E use selection for find
⌘ D add bookmark
fn ⇧ ⌫ delete site from autocomplete
⌘ ⇧ R hard page refresh

macdown

⇧ ⌘ H toggle preview pane πŸ”΅