From 08f442bd0a46444e9005b830ab8b2397fef6cf85 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 17 Dec 2017 11:10:40 +0100 Subject: [PATCH] updated README.md with pane splitting commands. Fixes #124 --- README.md | 101 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 56 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 25bf3c1..e893fb5 100644 --- a/README.md +++ b/README.md @@ -112,51 +112,6 @@ Features [Facebook PathPicker]: https://facebook.github.io/PathPicker/ [Urlview]: https://packages.debian.org/stable/misc/urlview -tmux may be controlled from an attached client by using a key combination of a -prefix key, followed by a command key. This configuration uses `C-a` as a -secondary prefix while keeping `C-b` as the default prefix. In the following -list of key bindings: - - `` means you have to either hit Ctrl + a or Ctrl + b - - ` c` means you have to hit Ctrl + a or Ctrl + b followed by c - - ` C-c` means you have to hit Ctrl + a or Ctrl + b followed by Ctrl + c - -This configuration uses the following bindings: - - - ` C-c` creates a new session - - ` e` opens `~/.tmux.conf.local` with the editor defined by the - `$EDITOR` environment variable (defaults to `vim` when empty) - - ` r` reloads the configuration - - ` C-f` lets you switch to another session by name - - ` C-h` and ` C-l` let you navigate windows (default - ` n` and ` p` are unbound) - - ` Tab` brings you to the last active window - - ` h`, ` j`, ` k` and ` l` let you navigate - panes ala Vim - - ` H`, ` J`, ` K`, ` L` let you resize panes - - ` <` and ` >` let you swap panes - - ` +` maximizes the current pane to a new window - - ` m` toggles mouse mode on or off - - ` U` launches Urlview (if available) - - ` F` launches Facebook PathPicker (if available) - - ` Enter` enters copy-mode - - ` b` lists the paste-buffers - - ` p` pastes from the top paste-buffer - - ` P` lets you choose the paste-buffer to paste from - - `C-l` clears both the screen and the history - -Additionally, `copy-mode-vi` matches [my own Vim configuration][] - -[my own Vim configuration]: https://github.com/gpakosz/.vim.git - -Bindings for `copy-mode-vi`: - -- `v` begins selection / visual mode -- `C-v` toggles between blockwise visual mode and visual mode -- `H` jumps to the start of line -- `L` jumps to the end of line -- `y` copies the selection to the top paste-buffer -- `Escape` cancels the current operation - The "maximize any pane to a new window with ` +`" feature is different from builtin `resize-pane -Z` as it allows you to further split a maximized pane. It's also more flexible by allowing you to maximize a pane to a new @@ -171,6 +126,62 @@ panes and automatically switches to copy-mode to select text. ![Mouse mode](https://cloud.githubusercontent.com/assets/553208/9890797/8dffe542-5c02-11e5-9c06-a25b452e6fcc.gif) +Bindings +-------- + +tmux may be controlled from an attached client by using a key combination of a +prefix key, followed by a command key. This configuration uses `C-a` as a +secondary prefix while keeping `C-b` as the default prefix. In the following +list of key bindings: + - `` means you have to either hit Ctrl + a or Ctrl + b + - ` c` means you have to hit Ctrl + a or Ctrl + b followed by c + - ` C-c` means you have to hit Ctrl + a or Ctrl + b followed by Ctrl + c + +This configuration uses the following bindings: + + - ` e` opens `~/.tmux.conf.local` with the editor defined by the + `$EDITOR` environment variable (defaults to `vim` when empty) + - ` r` reloads the configuration + - `C-l` clears both the screen and the tmux history + + - ` C-c` creates a new session + - ` C-f` lets you switch to another session by name + + - ` C-h` and ` C-l` let you navigate windows (default + ` n` and ` p` are unbound) + - ` Tab` brings you to the last active window + + - ` -` splits the current pane vertically + - ` _` splits the current pane horizontally + - ` h`, ` j`, ` k` and ` l` let you navigate + panes ala Vim + - ` H`, ` J`, ` K`, ` L` let you resize panes + - ` <` and ` >` let you swap panes + - ` +` maximizes the current pane to a new window + + - ` m` toggles mouse mode on or off + + - ` U` launches Urlview (if available) + - ` F` launches Facebook PathPicker (if available) + + - ` Enter` enters copy-mode + - ` b` lists the paste-buffers + - ` p` pastes from the top paste-buffer + - ` P` lets you choose the paste-buffer to paste from + +Additionally, `copy-mode-vi` matches [my own Vim configuration][] + +[my own Vim configuration]: https://github.com/gpakosz/.vim.git + +Bindings for `copy-mode-vi`: + +- `v` begins selection / visual mode +- `C-v` toggles between blockwise visual mode and visual mode +- `H` jumps to the start of line +- `L` jumps to the end of line +- `y` copies the selection to the top paste-buffer +- `Escape` cancels the current operation + Configuration -------------