Skip to content

Latest commit

 

History

History
87 lines (70 loc) · 5.15 KB

README.org

File metadata and controls

87 lines (70 loc) · 5.15 KB

Hotkeys for different programs

Terminal and Emacs

There are a lot of keyboard shortcuts for Terminal which are the same as Emacs.

HotkeysDescription
Ctrl+fMove cursor one character to the right
Ctrl+bMove cursor one character to the left
Alt+fMove cursor one word to the right
Alt+bMove cursor one word to the left
Ctrl+aMove cursor to start of the line
Ctrl+eMove cursor to end of the line
Ctrl+uCut everything from line start to cursor
Ctrl+kCut everything from the cursor to end of the line
Alt+dCut the current word after the cursor
Ctrl+wCut the current word before the cursor
Ctrl+yPaste the previous cut text
Alt+yPaste the second latest cut text
Ctrl+pMove to the previous line
Ctrl+nMove to the next line
Ctrl+sSearch
Ctrl+rReverse search
Ctrl+jEnd search
Ctrl+gAbort search (restores original line)
Alt+rRestores all changes made to line
TabAuto-complete a name
Alt+?List all possible completions
Alt+*Insert all possible completions

Org Mode

HotkeysDescription
C-u NUMBER + shift tabfold all blocks below certain level

Tmux

Shortcuts

Key(s)Description
General Commands
ctrl+b ?shows a list of all commands (`q`closes the list)
ctrl+b :enter a tmux command
Working with Windows
ctrl+b ccreates a new window
ctrl+b ,rename current window
ctrl+b pswitch to previous window
ctrl+b nswitch to next window
ctrl+b wlist windows (and then select with arrow keys)
Working with Panes
ctrl+b %split window vertically
ctrl+b ”split window horizontally <br> requires `bind - split-window -v` in our `.tmux.conf`
ctrl+b →go to right pane
ctrl+b ←go to left pane
ctrl+b ↑go to upper pane
ctrl+b ↓go to lower pane
Working with Sessions
ctrl+b ddetach from session

Commands

CommandDescription
tmux new-session -s <SESSION NAME>creates a new session with name `<SESSION NAME>`
tmux lslists all currently running tmux sessions
tmux attach-session -t <SESSION NAME>attach to the session called `<SESSION NAME>`

References