From c828c2f3665d1caed443816a066e3ac81b08ea83 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 18 Aug 2009 07:08:26 +0000 Subject: Add (naive) searching and goto line in copy mode. Searching is C-r and C-s with emacs keys, / and ? with vi; n repeats the search again with either key set. All searching wraps the top/bottom. Goto line is g for both emacs and vi. The search prompts don't have full line editing, just simple append and delete characters. Also sort the mode keys list in tmux.1. --- tmux.1 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 138366e2..1347ee8a 100644 --- a/tmux.1 +++ b/tmux.1 @@ -475,23 +475,27 @@ option). The following keys are supported as appropriate for the mode: .Bl -column "FunctionXXXXXXXXXXXX" "viXXXXXX" "emacs" -offset indent .It Sy "Function" Ta Sy "vi" Ta Sy "emacs" -.It Li "Start of line" Ta "0" Ta "C-a" .It Li "Back to indentation" Ta "^" Ta "M-m" .It Li "Clear selection" Ta "Escape" Ta "C-g" .It Li "Copy selection" Ta "Enter" Ta "M-w" .It Li "Cursor down" Ta "j" Ta "Down" -.It Li "End of line" Ta "$" Ta "C-e" .It Li "Cursor left" Ta "h" Ta "Left" +.It Li "Cursor right" Ta "l" Ta "Right" +.It Li "Cursor up" Ta "k" Ta "Up" +.It Li "Delete to end of line" Ta "D" Ta "C-k" +.It Li "End of line" Ta "$" Ta "C-e" +.It Li "Goto line" Ta "g" Ta "g" .It Li "Next page" Ta "C-f" Ta "Page down" .It Li "Next word" Ta "w" Ta "M-f" +.It Li "Paste buffer" Ta "p" Ta "C-y" .It Li "Previous page" Ta "C-u" Ta "Page up" .It Li "Previous word" Ta "b" Ta "M-b" .It Li "Quit mode" Ta "q" Ta "Escape" -.It Li "Cursor right" Ta "l" Ta "Right" +.It Li "Search again" Ta "n" Ta "n" +.It Li "Search backward" Ta "?" Ta "C-r" +.It Li "Search forward" Ta "/" Ta "C-s" +.It Li "Start of line" Ta "0" Ta "C-a" .It Li "Start selection" Ta "Space" Ta "C-Space" -.It Li "Cursor up" Ta "k" Ta "Up" -.It Li "Delete to end of line" Ta "D" Ta "C-k" -.It Li "Paste buffer" Ta "p" Ta "C-y" .El .Pp These key bindings are defined in a set of named tables: -- cgit