diff --git a/doc.go b/doc.go index da3f36b..46de431 100644 --- a/doc.go +++ b/doc.go @@ -72,27 +72,27 @@ The following command line commands are provided by lf: cmd-escape (default '') cmd-complete (default '') cmd-enter (default '' and '') + cmd-interrupt (default '') cmd-history-next (default '') cmd-history-prev (default '') - cmd-delete (default '' and '') - cmd-delete-back (default '' and '') cmd-left (default '' and '') cmd-right (default '' and '') cmd-home (default '' and '') cmd-end (default '' and '') + cmd-delete (default '' and '') + cmd-delete-back (default '' and '') cmd-delete-home (default '') cmd-delete-end (default '') cmd-delete-unix-word (default '') cmd-yank (default '') cmd-transpose (default '') - cmd-interrupt (default '') + cmd-transpose-word (default '') cmd-word (default '') cmd-word-back (default '') - cmd-capitalize-word (default '') cmd-delete-word (default '') + cmd-capitalize-word (default '') cmd-uppercase-word (default '') cmd-lowercase-word (default '') - cmd-transpose-word (default '') The following options can be used to customize the behavior of lf: @@ -145,8 +145,6 @@ The following variables are set to the corresponding values: $LF_LEVEL current nesting level - - The following default values are set to the environmental variables on unix when they are not set or empty: @@ -379,7 +377,7 @@ Read a shell command to execute synchronously without standard I/O. find-next (default ';') find-prev (default ',') -Read key(s) to find the appropriate file name match in the forward/backward direction and jump to the next/prev match. +Read key(s) to find the appropriate file name match in the forward/backward direction and jump to the next/previous match. (See also 'anchorfind', 'findlen', 'wrapscan', 'ignorecase', 'smartcase', 'ignoredia', and 'smartdia' options and 'Searching Files' section) @@ -388,7 +386,7 @@ Read key(s) to find the appropriate file name match in the forward/backward dire search-next (default 'n') search-prev (default 'N') -Read a pattern to search for a file name match in the forward/backward direction and jump to the next/prev match. +Read a pattern to search for a file name match in the forward/backward direction and jump to the next/previous match. (See also 'globsearch', 'incsearch', 'wrapscan', 'ignorecase', 'smartcase', 'ignoredia', and 'smartdia' options and 'Searching Files' section) @@ -404,6 +402,81 @@ Change the current directory to the bookmark assigned to the given key. Remove a bookmark assigned to the given key. +Command Line Commands + +This section shows information about command line commands. +These should be mostly compatible with readline keybindings. +A character refers to a unicode code point, a word consists of letters and digits, and a unix word consists of any non-blank characters. + + cmd-escape (default '') + +Quit command line mode and return to normal mode. + + cmd-complete (default '') + +Autocomplete the current word. + + cmd-enter (default '' and '') + +Execute the current line. + + cmd-interrupt (default '') + +Interrupt the current shell-pipe command and return to the normal mode. + + cmd-history-next (default '') + cmd-history-prev (default '') + +Go to next/previous item in the history. + + cmd-left (default '' and '') + cmd-right (default '' and '') + +Move the cursor to the left/right. + + cmd-home (default '' and '') + cmd-end (default '' and '') + +Move the cursor to the beginning/end of line. + + cmd-delete (default '' and '') + cmd-delete-back (default '' and '') + +Delete the next character in forward/backward direction. + + cmd-delete-home (default '') + cmd-delete-end (default '') + +Delete everything up to the beginning/end of line. + + cmd-delete-unix-word (default '') + +Delete the previous unix word. + + cmd-yank (default '') + +Paste the buffer content containing the last deleted item. + + cmd-transpose (default '') + cmd-transpose-word (default '') + +Transpose the positions of last two characters/words. + + cmd-word (default '') + cmd-word-back (default '') + +Move the cursor by one word in forward/backward direction. + + cmd-delete-word (default '') + +Delete the next word in forward direction. + + cmd-capitalize-word (default '') + cmd-uppercase-word (default '') + cmd-lowercase-word (default '') + +Capitalize/uppercase/lowercase the current word and jump to the next word. + Prefixes The following command prefixes are used by lf: diff --git a/docstring.go b/docstring.go index 00b2ea6..1a3a635 100644 --- a/docstring.go +++ b/docstring.go @@ -75,27 +75,27 @@ The following command line commands are provided by lf: cmd-escape (default '') cmd-complete (default '') cmd-enter (default '' and '') + cmd-interrupt (default '') cmd-history-next (default '') cmd-history-prev (default '') - cmd-delete (default '' and '') - cmd-delete-back (default '' and '') cmd-left (default '' and '') cmd-right (default '' and '') cmd-home (default '' and '') cmd-end (default '' and '') + cmd-delete (default '' and '') + cmd-delete-back (default '' and '') cmd-delete-home (default '') cmd-delete-end (default '') cmd-delete-unix-word (default '') cmd-yank (default '') cmd-transpose (default '') - cmd-interrupt (default '') + cmd-transpose-word (default '') cmd-word (default '') cmd-word-back (default '') - cmd-capitalize-word (default '') cmd-delete-word (default '') + cmd-capitalize-word (default '') cmd-uppercase-word (default '') cmd-lowercase-word (default '') - cmd-transpose-word (default '') The following options can be used to customize the behavior of lf: @@ -393,7 +393,7 @@ Read a shell command to execute synchronously without standard I/O. find-prev (default ',') Read key(s) to find the appropriate file name match in the forward/backward -direction and jump to the next/prev match. +direction and jump to the next/previous match. (See also 'anchorfind', 'findlen', 'wrapscan', 'ignorecase', 'smartcase', 'ignoredia', and 'smartdia' options and 'Searching Files' section) @@ -404,7 +404,7 @@ direction and jump to the next/prev match. search-prev (default 'N') Read a pattern to search for a file name match in the forward/backward -direction and jump to the next/prev match. +direction and jump to the next/previous match. (See also 'globsearch', 'incsearch', 'wrapscan', 'ignorecase', 'smartcase', 'ignoredia', and 'smartdia' options and 'Searching Files' section) @@ -422,6 +422,83 @@ Change the current directory to the bookmark assigned to the given key. Remove a bookmark assigned to the given key. +Command Line Commands + +This section shows information about command line commands. These should be +mostly compatible with readline keybindings. A character refers to a unicode +code point, a word consists of letters and digits, and a unix word consists +of any non-blank characters. + + cmd-escape (default '') + +Quit command line mode and return to normal mode. + + cmd-complete (default '') + +Autocomplete the current word. + + cmd-enter (default '' and '') + +Execute the current line. + + cmd-interrupt (default '') + +Interrupt the current shell-pipe command and return to the normal mode. + + cmd-history-next (default '') + cmd-history-prev (default '') + +Go to next/previous item in the history. + + cmd-left (default '' and '') + cmd-right (default '' and '') + +Move the cursor to the left/right. + + cmd-home (default '' and '') + cmd-end (default '' and '') + +Move the cursor to the beginning/end of line. + + cmd-delete (default '' and '') + cmd-delete-back (default '' and '') + +Delete the next character in forward/backward direction. + + cmd-delete-home (default '') + cmd-delete-end (default '') + +Delete everything up to the beginning/end of line. + + cmd-delete-unix-word (default '') + +Delete the previous unix word. + + cmd-yank (default '') + +Paste the buffer content containing the last deleted item. + + cmd-transpose (default '') + cmd-transpose-word (default '') + +Transpose the positions of last two characters/words. + + cmd-word (default '') + cmd-word-back (default '') + +Move the cursor by one word in forward/backward direction. + + cmd-delete-word (default '') + +Delete the next word in forward direction. + + cmd-capitalize-word (default '') + cmd-uppercase-word (default '') + cmd-lowercase-word (default '') + +Capitalize/uppercase/lowercase the current word and jump to the next word. + + Prefixes The following command prefixes are used by lf: diff --git a/lf.1 b/lf.1 index cb64722..e483a3d 100644 --- a/lf.1 +++ b/lf.1 @@ -84,27 +84,27 @@ The following command line commands are provided by lf: cmd-escape (default '') cmd-complete (default '') cmd-enter (default '' and '') + cmd-interrupt (default '') cmd-history-next (default '') cmd-history-prev (default '') - cmd-delete (default '' and '') - cmd-delete-back (default '' and '') cmd-left (default '' and '') cmd-right (default '' and '') cmd-home (default '' and '') cmd-end (default '' and '') + cmd-delete (default '' and '') + cmd-delete-back (default '' and '') cmd-delete-home (default '') cmd-delete-end (default '') cmd-delete-unix-word (default '') cmd-yank (default '') cmd-transpose (default '') - cmd-interrupt (default '') + cmd-transpose-word (default '') cmd-word (default '') cmd-word-back (default '') - cmd-capitalize-word (default '') cmd-delete-word (default '') + cmd-capitalize-word (default '') cmd-uppercase-word (default '') cmd-lowercase-word (default '') - cmd-transpose-word (default '') .EE .PP The following options can be used to customize the behavior of lf: @@ -464,7 +464,7 @@ Read a shell command to execute synchronously without standard I/O. find-prev (default ',') .EE .PP -Read key(s) to find the appropriate file name match in the forward/backward direction and jump to the next/prev match. +Read key(s) to find the appropriate file name match in the forward/backward direction and jump to the next/previous match. .PP (See also 'anchorfind', 'findlen', 'wrapscan', 'ignorecase', 'smartcase', 'ignoredia', and 'smartdia' options and 'Searching Files' section) .PP @@ -475,7 +475,7 @@ Read key(s) to find the appropriate file name match in the forward/backward dire search-prev (default 'N') .EE .PP -Read a pattern to search for a file name match in the forward/backward direction and jump to the next/prev match. +Read a pattern to search for a file name match in the forward/backward direction and jump to the next/previous match. .PP (See also 'globsearch', 'incsearch', 'wrapscan', 'ignorecase', 'smartcase', 'ignoredia', and 'smartdia' options and 'Searching Files' section) .PP @@ -496,6 +496,107 @@ Change the current directory to the bookmark assigned to the given key. .EE .PP Remove a bookmark assigned to the given key. +.SH COMMAND LINE COMMANDS +This section shows information about command line commands. These should be mostly compatible with readline keybindings. A character refers to a unicode code point, a word consists of letters and digits, and a unix word consists of any non-blank characters. +.PP +.EX + cmd-escape (default '') +.EE +.PP +Quit command line mode and return to normal mode. +.PP +.EX + cmd-complete (default '') +.EE +.PP +Autocomplete the current word. +.PP +.EX + cmd-enter (default '' and '') +.EE +.PP +Execute the current line. +.PP +.EX + cmd-interrupt (default '') +.EE +.PP +Interrupt the current shell-pipe command and return to the normal mode. +.PP +.EX + cmd-history-next (default '') + cmd-history-prev (default '') +.EE +.PP +Go to next/previous item in the history. +.PP +.EX + cmd-left (default '' and '') + cmd-right (default '' and '') +.EE +.PP +Move the cursor to the left/right. +.PP +.EX + cmd-home (default '' and '') + cmd-end (default '' and '') +.EE +.PP +Move the cursor to the beginning/end of line. +.PP +.EX + cmd-delete (default '' and '') + cmd-delete-back (default '' and '') +.EE +.PP +Delete the next character in forward/backward direction. +.PP +.EX + cmd-delete-home (default '') + cmd-delete-end (default '') +.EE +.PP +Delete everything up to the beginning/end of line. +.PP +.EX + cmd-delete-unix-word (default '') +.EE +.PP +Delete the previous unix word. +.PP +.EX + cmd-yank (default '') +.EE +.PP +Paste the buffer content containing the last deleted item. +.PP +.EX + cmd-transpose (default '') + cmd-transpose-word (default '') +.EE +.PP +Transpose the positions of last two characters/words. +.PP +.EX + cmd-word (default '') + cmd-word-back (default '') +.EE +.PP +Move the cursor by one word in forward/backward direction. +.PP +.EX + cmd-delete-word (default '') +.EE +.PP +Delete the next word in forward direction. +.PP +.EX + cmd-capitalize-word (default '') + cmd-uppercase-word (default '') + cmd-lowercase-word (default '') +.EE +.PP +Capitalize/uppercase/lowercase the current word and jump to the next word. .SH PREFIXES The following command prefixes are used by lf: .PP