Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document mode-switching between : and !/$/%/& command-line modes #966

Merged
merged 1 commit into from
Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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