Skip to content

Commit

Permalink
Document mode-switching between : and !/$/%/& command-line modes
Browse files Browse the repository at this point in the history
Documents gokcehan#960, also known as
gokcehan@52a151a
  • Loading branch information
ilyagr committed Oct 16, 2022
1 parent 654b873 commit d305015
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 10 deletions.
15 changes: 12 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,13 @@ Tag a file with '*' or a single width character given in the argument if the fil
# Command Line Commands
This section shows information about command line commands.
These should be mostly compatible with readline keybindings.
The prompt character specifies which of the several command-line modes you are in.
For example, the 'read' command takes you to the ':' mode.
When the cursor is at the first character in ':' mode, pressing one of the keys '!', '$', '%', or '&' takes you to the corresponding mode.
You can go back with 'cmd-delete-back' ('<backspace>' by default).
The command line commands 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 '<esc>')
Expand Down Expand Up @@ -526,9 +531,13 @@ Move the cursor to the left/right.
Move the cursor to the beginning/end of line.
cmd-delete (default '<c-d>' and '<delete>')
Delete the next character.
cmd-delete-back (default '<backspace>' and '<backspace2>')
Delete the next character in forward/backward direction.
Delete the previous character.
When at the beginning of a prompt, returns either to normal mode or to ':' mode.
cmd-delete-home (default '<c-u>')
cmd-delete-end (default '<c-k>')
Expand Down
20 changes: 15 additions & 5 deletions docstring.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions lf.1
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,11 @@ Tag a file with '*' or a single width character given in the argument. You can d
.PP
Tag a file with '*' or a single width character given in the argument if the file is untagged, otherwise remove the tag.
.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.
The prompt character specifies which of the several command-line modes you are in. For example, the 'read' command takes you to the ':' mode.
.PP
When the cursor is at the first character in ':' mode, pressing one of the keys '!', '$', '%', or '&' takes you to the corresponding mode. You can go back with 'cmd-delete-back' ('<backspace>' by default).
.PP
The command line commands 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 '<esc>')
Expand Down Expand Up @@ -647,10 +651,15 @@ Move the cursor to the beginning/end of line.
.PP
.EX
cmd-delete (default '<c-d>' and '<delete>')
.EE
.PP
Delete the next character.
.PP
.EX
cmd-delete-back (default '<backspace>' and '<backspace2>')
.EE
.PP
Delete the next character in forward/backward direction.
Delete the previous character. When at the beginning of a prompt, returns either to normal mode or to ':' mode.
.PP
.EX
cmd-delete-home (default '<c-u>')
Expand Down

0 comments on commit d305015

Please sign in to comment.