Fix setExpr for visualfmt and documentation (#2033)
* Fix documentation for visual commands * Fix missing `visualfmt`
This commit is contained in:
1 parent
7fd12a2a70
commit
c2049e05c2
4 files changed
+12
-10
No files matched your search
@@ -412,16 +412,16 @@ Move the current file selection to the high/middle/low of the screen.
|
||||
|
||||
Toggle the selection of the current file or files given as arguments.
|
||||
|
||||
## visual (modal) (default 'V')
|
||||
## visual (default 'V')
|
||||
|
||||
Switch to Visual mode.
|
||||
If already in Visual mode, discard the visual selection and stay in Visual mode.
|
||||
|
||||
## visual-accept (modal) (default 'V')
|
||||
## visual-accept (default 'V')
|
||||
|
||||
Add the visual selection to the selection list, quit Visual mode and return to Normal mode.
|
||||
|
||||
## visual-discard (modal) (default '<esc>')
|
||||
## visual-discard (default `<esc>`)
|
||||
|
||||
Discard the visual selection, quit Visual mode and return to Normal mode.
|
||||
|
||||
|
||||
@@ -411,17 +411,17 @@ toggle
|
||||
|
||||
Toggle the selection of the current file or files given as arguments.
|
||||
|
||||
visual (modal) (default 'V')
|
||||
visual (default 'V')
|
||||
|
||||
Switch to Visual mode. If already in Visual mode, discard the visual
|
||||
selection and stay in Visual mode.
|
||||
|
||||
visual-accept (modal) (default 'V')
|
||||
visual-accept (default 'V')
|
||||
|
||||
Add the visual selection to the selection list, quit Visual mode and
|
||||
return to Normal mode.
|
||||
|
||||
visual-discard (modal) (default '')
|
||||
visual-discard (default <esc>)
|
||||
|
||||
Discard the visual selection, quit Visual mode and return to Normal
|
||||
mode.
|
||||
|
||||
@@ -432,6 +432,8 @@ func (e *setExpr) eval(app *app, args []string) {
|
||||
return
|
||||
}
|
||||
gOpts.truncatepct = n
|
||||
case "visualfmt":
|
||||
gOpts.visualfmt = e.val
|
||||
case "waitmsg":
|
||||
gOpts.waitmsg = e.val
|
||||
default:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.\" Automatically generated by Pandoc 3.7.0.2
|
||||
.\"
|
||||
.TH "LF" "1" "2025\-07\-05" "" "DOCUMENTATION"
|
||||
.TH "LF" "1" "2025\-07\-06" "" "DOCUMENTATION"
|
||||
.SH NAME
|
||||
lf \- terminal file manager
|
||||
.SH SYNOPSIS
|
||||
@@ -434,14 +434,14 @@ A count can be specified to move to a specific line, for example, use
|
||||
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)
|
||||
.SS visual (default \(aqV\(aq)
|
||||
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)
|
||||
.SS visual\-accept (default \(aqV\(aq)
|
||||
Add the visual selection to the selection list, quit Visual mode and
|
||||
return to Normal mode.
|
||||
.SS visual\-discard (modal) (default \(aq\(aq)
|
||||
.SS visual\-discard (default \f[CR]<esc>\f[R])
|
||||
Discard the visual selection, quit Visual mode and return to Normal
|
||||
mode.
|
||||
.SS visual\-change (default \(aqo\(aq)
|
||||
|
||||
Reference in new issue
Block a user