Skip to content

Instantly share code, notes, and snippets.

@gastonambrogi
Created April 10, 2017 11:51
Show Gist options
  • Save gastonambrogi/c91de00c4b518c15fe16715138779131 to your computer and use it in GitHub Desktop.
Save gastonambrogi/c91de00c4b518c15fe16715138779131 to your computer and use it in GitHub Desktop.
My cheatsheets
i3 Window Manager
Open terminal: $mod+Enter
Split window vertically: $mod+v command
Split window horizontally: $mod+h command
Change window focus: $mod+arrow-keys
Move focused windows: $mod+Shift+arrow-keys
Toggle splith/splitv: $mod+e
Switch to stacking mode: $mod+s
Switch to tabbed mode: $mod+w
Toggle window in/out of fullscreen: $mod+f
Open dmenu: $mod+d
Kill focused window: $mod+Shift+q
Move to different workspace: $mod+number
Move focused window to different workspace: $mod+Shift+number
Focus the parent container: $mod+a
Restart i3: $mod+Shirt+r
Exit i3: $mod+Shift+e
SpacemacsElm
Quit minibuffer: fdCompile buffer: SPC m c b
Create a buffer: SPC b b <buffer-name>Compile main: SPC m c m
Switch to the next buffer: SPC b nOpen REPL: SPC m s i
Switch to the previous buffer: SPC b pSend current function to REPL: SPC m s f
Kill current buffer: SPC b dSend current region to REPL: SPC m s r
Kill all buffers except the current buffer: SPC b mPreview buffer with elm-reactor: SPC m R n
Window transient-state: SPC w .Lookup Elm documentation: SPC m p d
Open a vertical split on the right: SPC w vUse elm-package-install: x
Open a horizontal split below: SPC w sElm documentation at point: SPC m h h
Navigate among windows: SPC w h/j/k/lElm type at point: SPC m h t
Go to a file: SPC f fUse elm-format: SPC m = b
Search through recently opened files: SPC f rSort your imports: SPC m r i
Save the current file: SPC f s
Restart Spacemacs with changes: SPC f e R
Save the current file and quit: :x
Shows documentation of a given function: SPC h d f
Prompts for a keybinding and shows what it is bound to: SPC h d k
Prompts for a variable and shows its documentation and current value: SPC h d v
Undo / Redo: SPC a u
Begin delete / yank: v
Delete: d
Yank: y
Paste: p
OrgJavaScript
Align the table at point by aligning all vertical bars: SPC m t aFormat with web-beautify: SPC m =
Blank the current table field: SPC m t bShow type under the point: SPC m h t
Delete a column from the table: SPC m t d cGet the path of the value at point: SPC m h p
Delete the current row from the table: SPC m t d r
Move column to the left: SPC m t H
Move column to the right: SPC m t L
Insert a new column into the table: SPC m t i c
Move table row down: SPC m t J
Move table row up: SPC m t K
Ask for a size and insert a table skeleton: SPC m t n
Git / GitHubClojure
Open magit status window: SPC g sEval buffer: SPC m e b
Show file commits history: SPC g f hEval last sexp: SPC m e e
Open helm-gitignore: SPC g ISend and eval buffer in REPL: SPC m s b
Stage current file: SPC g SConnect to REPL: SPC m s c
Unstage current file: SPC g USend and eval last sexp in REPL: SPC m s e
Search for a repository to clone it: SPC g h c /Start REPL: SPC m s i
Clone and optionally fork repository: SPC g h c cKill REPL: SPC m s q
Add upstream as remote: SPC g h c uReformat current buffer: SPC m f b
Browse to file on GitHub: SPC g h o
Open commit message buffer: c c
Checkout a branch: b b
Create a branch: b c
Fetch changes: f f
Push to tracked branch: P u
Push to matching branch: P m
Stage all: S
Create a pull request: # c
Quit: q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment