Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Multiplexing

Insh has terminal multplexing inspired heavily by tmux. The session, window, and pane concepts are all borrowed. As is the usage of a prefix.

Normal Mode

CommandStatus bar commandDescription
<Ctrl>-b %split-vertically [component] [args]…Split the current pane vertically.
<Ctrl>-b "split-horizontally [component] [args]…Split the current pane horizontally.
<Ctrl>-b +split-quad [component] [args]…Split the current pane horizontally and then vertically.
<Ctrl>-b cnew-window [name]Create a new window.
new-session [name]Create a new session.
<Ctrl>-b xkill-pane [name]Kill a pane (default current).
kill-window [name]Kill a window (default current).
kill-session [name]Kill a session (default current).
<Ctrl>-b j | <Ctrl>-b <Down>focus-downSelect the pane below the current pane.
<Ctrl>-b k | <Ctrl>-b <Up>focus-upSelect the pane above the current pane.
<Ctrl>-b h | <Ctrl>-b <Left>focus-leftSelect the pane to the left of the current pane.
<Ctrl>-b l | <Ctrl>-b <Right>focus-rightSelect the pane to the right of the current pane.
<Ctrl>-b <Ctrl>-<Down>resize-pane-downResize the pane downwards.
<Ctrl>-b <Ctrl>-<Up>resize-pane-upResize the pane upwards.
<Ctrl>-b <Ctrl>-<Left>resize-pane-leftResize the pane left.
<Ctrl>-b <Ctrl>-<Right>resize-pane-rightResize the pane right.
<Ctrl>-b ysynchronize-panesSynchronize panes.
<Ctrl>-b ztoggle-zoomToggle zooming the current pane.
<Ctrl>-b {switch-pane-previousSwitch the current pane with the previous pane.
<Ctrl>-b }switch-pane-nextSwitch the current pane with the next pane.
<Ctrl>-b }swap-pane Swap two panes.
rename-pane Rename the current pane.
<Ctrl>-b ,rename-window Rename the current window.
<Ctrl>-b $rename-session Rename the current session.
set-dir [–window | -w | –session | -s] <dir>Set the default starting directory for a window/session (default window).
change-dir [–window | -w | –session | -s] <dir>Change the directory for a window/session (default window).
dir [–window | -w | –session | -s] <dir>A combination of set-dir and change-dir.
<Ctrl>-b [change-mode copyEnter copy mode
<Ctrl>-b slist-sessions | lsView the session, window, and pane switcher.
<Ctrl>-b :change-mode promptPrompt for a command.
send-keys Send keys to a pane.
detachDetach from the current session.

Copy Mode

CommandDescription
h | <Left>Move the cursor left.
j | <Down>Move the cursor down.
k | <Up>Move the cursor up.
l | <Right>Move the cursor right.
wMove the cursor to the next word.
WMove the cursor to the next WORD.
bMove the cursor to the beginning of the word.
BMove the cursor to the beginning of the WORD.
eMove the cursor to the end of the word.
EMove the cursor to the end of the WORD.
0 | <Home>Move the cursor to the start of the line.
$ | <End>Move the cursor to the end of the line.
ggMove the cursor to the start of the buffer.
GMove the cursor to the end of the buffer.
v | <Space>Start selecting at the current cursor position.
y | <Enter>Copy the selection to the clipboard.
<Escape>Unselect.
/Search.
?Search backwards.
qExit out of copy mode.

Search Mode

CommandDescription
nGo to the next hit.
pGo to the previous hit.