Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Last active March 17, 2024 17:53
Show Gist options
  • Save MichaelDimmitt/082c7f9ddfa255c653eaed2e49df9835 to your computer and use it in GitHub Desktop.
Save MichaelDimmitt/082c7f9ddfa255c653eaed2e49df9835 to your computer and use it in GitHub Desktop.
macbook keyboard navigation with no mouse - personal cheat sheet

Mac Computer

system commands

  • navigation
    hold fn hold control f2 - navigate to toolbar menu
    fn - mission control

  • text cursor - emacs stamdard
    ctrl a - go to beginning
    ctrl e - go to end
    ctrl k - delete text after cursor
    ctrl u - delete text before cursor
    ctrl - - undo last text update
    ctrl r - backward history search. repeat ctrl r to progress. ctrl g or right arrow to get out of it.

vscode commands

  • multicursor
    command option DOWN new cursor below.
    command shift p enter cursor undo. undo last new cursor.
    command d - new cursor on next match of current text selection. option click new cursor at clicked location.

  • navigation
    command click
    ctrl -
    ctrl shift -

  • search
    command shift p command pallete in vscode.
    command p find file.
    command f search in file.
    command shift f search across all folders.

  • code collapse / expand
    command k command 0 collapse all code
    command k command j expand all code

chrome commands

  • useful
    / - navigate to search bar on google.
    command l - how to activate address bar via keyboard.
    command f "find the text using enter" esc shift left arrow - copy text on a page

  • tabs
    tab - go next a browser item.
    shift tab- go back a browser item

    command tab - create a new browser tab
    command shift tab - restore previous tab
    command left arrow - go back in browser for current tab.

  • cleanup
    command w - how to close a browser tab
    command q - quit browser / program

  • tabs windows shifting
    command ~ - switch browser windows
    command option left arrow - switch to left tab
    command option right arrow - switch to right tab

  • scroll
    ctrl alt left arrow - scroll to top
    ctrl alt right arrow - scroll to bottom

github specific commands

  • In a wyziwyg
    command shift p - escape out of a readme wysiwyg on github and resume typing.

  • General, not in a wyziwyg
    ?- show keyboard help menu t - search file/folder for the current repository

slack specific commands

  • helpful
    command / - help with commands
    option down arrow - next dm or channel.
    hold command "select then number listed while holding" - change organizations

tmux commands

tmux
tmux attach
ctrl b - leader
<ctrl b> z - zoom to a specific pane.
<ctrl b> % - vertical split panes
<ctrl b> shift R - tmux reserect
<ctrl b> r - toggle mouse reporting. https://stackoverflow.com/a/57260591/5283424 shift S- tmux reserect save<br/> s- sessions<br/> s :new -s - create a new session from within tmux.<br/> d` - exit tmux

questions remaining for me to add to

  1. to be added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment