Capitalize modes in CHANGELOG.md and documentation (#2031)

This commit is contained in:
Joe Lim authored and GitHub committed 2025-07-05 15:11:16 +10:00
1 parent 397f75e4a5
commit 7fd12a2a70
4 files changed
+60 -60

No files matched your search

+20 -20
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2
.\"
.TH "LF" "1" "2025\-07\-03" "" "DOCUMENTATION"
.TH "LF" "1" "2025\-07\-05" "" "DOCUMENTATION"
.SH NAME
lf \- terminal file manager
.SH SYNOPSIS
@@ -105,7 +105,7 @@ addcustominfo
tty\-write
.EE
.PP
The following visual mode commands are provided by lf:
The following Visual mode commands are provided by lf:
.IP
.EX
visual\-accept (default \(aqV\(aq)
@@ -113,7 +113,7 @@ visual\-discard (default \(aq<esc>\(aq)
visual\-change (default \(aqo\(aq)
.EE
.PP
The following command line commands are provided by lf:
The following Command\-line mode commands are provided by lf:
.IP
.EX
cmd\-escape (default \(aq<esc>\(aq)
@@ -435,17 +435,17 @@ Move the current file selection to the high/middle/low of the screen.
.SS toggle
Toggle the selection of the current file or files given as arguments.
.SS visual (modal) (default \(aqV\(aq)
Switch to visual mode.
If already in visual mode, discard visual selection and stay in visual
mode.
Switch to Visual mode.
If already in Visual mode, discard the visual selection and stay in
Visual mode.
.SS visual\-accept (modal) (default \(aqV\(aq)
Add the visual selection to the selection list, quit visual mode and
return to normal mode.
Add the visual selection to the selection list, quit Visual mode and
return to Normal mode.
.SS visual\-discard (modal) (default \(aq\(aq)
Discard the visual selection, quit visual mode and return to normal
Discard the visual selection, quit Visual mode and return to Normal
mode.
.SS visual\-change (default \(aqo\(aq)
Go to the other end of the current visual mode selection.
Go to the other end of the current Visual mode selection.
.SS invert (default \f[CR]v\f[R])
Reverse the selection of all files in the current directory (i.e.
\f[CR]toggle\f[R] all files).
@@ -577,7 +577,7 @@ Using \f[CR]tty\-write\f[R] is preferred over directly writing to
\f[CR]/dev/tty\f[R] because the latter is not synchronized and can
interfere with drawing the UI.
.SH COMMAND LINE COMMANDS
The prompt character specifies which of the several command\-line modes
The prompt character specifies which of the several Command\-line modes
you are in.
For example, the \f[CR]read\f[R] command takes you to the \f[CR]:\f[R]
mode.
@@ -593,7 +593,7 @@ 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.
.SS cmd\-escape (default \f[CR]<esc>\f[R])
Quit command line mode and return to normal mode.
Quit Command\-line mode and return to Normal mode.
.SS cmd\-complete (default \f[CR]<tab>\f[R])
Autocomplete the current word.
.SS cmd\-menu\-complete, cmd\-menu\-complete\-back
@@ -608,7 +608,7 @@ menu.
.SS cmd\-enter (default \f[CR]<c\-j>\f[R] and \f[CR]<enter>\f[R])
Execute the current line.
.SS cmd\-interrupt (default \f[CR]<c\-c>\f[R])
Interrupt the current shell\-pipe command and return to the normal mode.
Interrupt the current shell\-pipe command and return to the Normal mode.
.SS cmd\-history\-next (default \f[CR]<c\-n>\f[R] and \f[CR]<down>\f[R]), cmd\-history\-prev (default \f[CR]<c\-p>\f[R] and \f[CR]<up>\f[R])
Go to the next/previous item in the history.
.SS cmd\-left (default \f[CR]<c\-b>\f[R] and \f[CR]<left>\f[R]), cmd\-right (default \f[CR]<c\-f>\f[R] and \f[CR]<right>\f[R])
@@ -619,7 +619,7 @@ Move the cursor to the beginning/end of the line.
Delete the next character.
.SS cmd\-delete\-back (default \f[CR]<backspace>\f[R] and \f[CR]<backspace2>\f[R])
Delete the previous character.
When at the beginning of a prompt, returns either to normal mode or to
When at the beginning of a prompt, returns either to Normal mode or to
\f[CR]:\f[R] mode.
.SS cmd\-delete\-home (default \f[CR]<c\-u>\f[R]), cmd\-delete\-end (default \f[CR]<c\-k>\f[R])
Delete everything up to the beginning/end of the line.
@@ -947,8 +947,8 @@ Special expansions are provided, \f[CR]%p\f[R] as the file permissions,
\f[CR]%S\f[R] as the file size but with a fixed width of four characters
(left\-padded with spaces), \f[CR]%t\f[R] as the last modified time,
\f[CR]%l\f[R] as the link target, \f[CR]%m\f[R] as the current mode and
\f[CR]%M\f[R] as the current mode but also shown in normal mode
(displaying NORMAL instead of a blank string).
\f[CR]%M\f[R] as the current mode but also shown in Normal mode
(displaying \f[CR]NORMAL\f[R] instead of a blank string).
The \f[CR]|\f[R] character splits the format string into sections.
Any section containing a failed expansion (result is a blank string) is
discarded and not shown.
@@ -1139,7 +1139,7 @@ file for reading shell commands.
The difference is that prefixes are not necessary in the command line.
Instead, different modes are provided to read corresponding commands.
These modes are mapped to the prefix keys above by default.
Visual mode mappings are defined the same way normal mode mappings are
Visual mode mappings are defined the same way Normal mode mappings are
defined.
.SH SYNTAX
Characters from \f[CR]#\f[R] to newline are comments and ignored:
@@ -1190,7 +1190,7 @@ setlocal /foo/bar hidden # for only \(aq/foo/bar\(aq directory
setlocal /foo/bar/ hidden # for \(aq/foo/bar\(aq and its subdirectories (e.g. \(aq/foo/bar/baz\(aq)
.EE
.PP
Command \f[CR]map\f[R] is used to bind a key in normal and visual mode
Command \f[CR]map\f[R] is used to bind a key in Normal and Visual mode
to a command which can be a builtin command, custom command, or shell
command:
.IP
@@ -1201,9 +1201,9 @@ map i $less $f # shell command
map U !du \-csh * # waiting shell command
.EE
.PP
Command \f[CR]nmap\f[R] does the same but for normal mode only.
Command \f[CR]nmap\f[R] does the same but for Normal mode only.
.PP
Command \f[CR]vmap\f[R] does the same but for visual mode only.
Command \f[CR]vmap\f[R] does the same but for Visual mode only.
.PP
Overview of which map command works in which mode:
.IP