Additions to visual-mode (#2035)

* Add `visual-unselect` command

* Add `fv` environment variable
This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-07-08 08:46:26 +10:00
1 parent c2049e05c2
commit f40c626c4d
6 files changed
+70 -19

No files matched your search

+18 -6
View File
@@ -98,6 +98,7 @@ The following commands are provided by lf:
The following Visual mode commands are provided by lf:
visual-accept (default 'V')
visual-unselect
visual-discard (default '<esc>')
visual-change (default 'o')
@@ -210,6 +211,7 @@ The following environment variables are exported for shell commands:
f
fs
fv
fx
id
PWD
@@ -411,22 +413,27 @@ toggle
Toggle the selection of the current file or files given as arguments.
visual (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 (default 'V')
visual-accept (default V)
Add the visual selection to the selection list, quit Visual mode and
return to Normal mode.
visual-unselect
Remove the visual selection from the selection list, quit Visual mode
and return to Normal mode.
visual-discard (default <esc>)
Discard the visual selection, quit Visual mode and return to Normal
mode.
visual-change (default 'o')
visual-change (default o)
Go to the other end of the current Visual mode selection.
@@ -828,7 +835,7 @@ effect as \033[4m.
filesep (string) (default \n)
File separator used in environment variables fs and fx.
File separator used in environment variables fs, fv and fx.
findlen (int) (default 1)
@@ -1183,10 +1190,15 @@ fs
Selected file(s) separated with the value of filesep option as full
path(s).
fv
Visually selected file(s) separated with the value of filesep option as
full path(s).
fx
Selected file(s) (i.e. fs) if there are any selected files, otherwise
current file selection (i.e. f).
Selected file(s) (i.e. fs, never fv) if there are any selected files,
otherwise current file selection (i.e. f).
id