Fix setExpr for visualfmt and documentation (#2033)

* Fix documentation for visual commands

* Fix missing `visualfmt`
This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-07-07 10:17:38 +10:00
1 parent 7fd12a2a70
commit c2049e05c2
4 files changed
+12 -10

No files matched your search

+3 -3
View File
@@ -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. Toggle the selection of the current file or files given as arguments.
## visual (modal) (default 'V') ## visual (default 'V')
Switch to Visual mode. Switch to Visual mode.
If already in Visual mode, discard the visual selection and stay in 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. 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. Discard the visual selection, quit Visual mode and return to Normal mode.
+3 -3
View File
@@ -411,17 +411,17 @@ toggle
Toggle the selection of the current file or files given as arguments. 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 Switch to Visual mode. If already in Visual mode, discard the visual
selection and stay in Visual mode. 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 Add the visual selection to the selection list, quit Visual mode and
return to Normal mode. return to Normal mode.
visual-discard (modal) (default '') visual-discard (default <esc>)
Discard the visual selection, quit Visual mode and return to Normal Discard the visual selection, quit Visual mode and return to Normal
mode. mode.
+2
View File
@@ -432,6 +432,8 @@ func (e *setExpr) eval(app *app, args []string) {
return return
} }
gOpts.truncatepct = n gOpts.truncatepct = n
case "visualfmt":
gOpts.visualfmt = e.val
case "waitmsg": case "waitmsg":
gOpts.waitmsg = e.val gOpts.waitmsg = e.val
default: default:
+4 -4
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2 .\" Automatically generated by Pandoc 3.7.0.2
.\" .\"
.TH "LF" "1" "2025\-07\-05" "" "DOCUMENTATION" .TH "LF" "1" "2025\-07\-06" "" "DOCUMENTATION"
.SH NAME .SH NAME
lf \- terminal file manager lf \- terminal file manager
.SH SYNOPSIS .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. Move the current file selection to the high/middle/low of the screen.
.SS toggle .SS toggle
Toggle the selection of the current file or files given as arguments. 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. Switch to Visual mode.
If already in Visual mode, discard the visual selection and stay in If already in Visual mode, discard the visual selection and stay in
Visual mode. 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 Add the visual selection to the selection list, quit Visual mode and
return to Normal mode. 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 Discard the visual selection, quit Visual mode and return to Normal
mode. mode.
.SS visual\-change (default \(aqo\(aq) .SS visual\-change (default \(aqo\(aq)