diff --git a/doc.md b/doc.md index 6f854fbc..87ac188e 100644 --- a/doc.md +++ b/doc.md @@ -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 '') +## visual-discard (default ``) Discard the visual selection, quit Visual mode and return to Normal mode. diff --git a/doc.txt b/doc.txt index 6dfbe637..8f4cd5b0 100644 --- a/doc.txt +++ b/doc.txt @@ -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 ) Discard the visual selection, quit Visual mode and return to Normal mode. diff --git a/eval.go b/eval.go index ab187344..7fcfe56a 100644 --- a/eval.go +++ b/eval.go @@ -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: diff --git a/lf.1 b/lf.1 index 7700f1fc..37b54bbb 100644 --- a/lf.1 +++ b/lf.1 @@ -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]\f[R]) Discard the visual selection, quit Visual mode and return to Normal mode. .SS visual\-change (default \(aqo\(aq)