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

+16 -8
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2
.\"
.TH "LF" "1" "2025\-07\-06" "" "DOCUMENTATION"
.TH "LF" "1" "2025\-07\-07" "" "DOCUMENTATION"
.SH NAME
lf \- terminal file manager
.SH SYNOPSIS
@@ -109,6 +109,7 @@ The following Visual mode commands are provided by lf:
.IP
.EX
visual\-accept (default \(aqV\(aq)
visual\-unselect
visual\-discard (default \(aq<esc>\(aq)
visual\-change (default \(aqo\(aq)
.EE
@@ -227,6 +228,7 @@ The following environment variables are exported for shell commands:
.EX
f
fs
fv
fx
id
PWD
@@ -434,17 +436,20 @@ 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 (default \(aqV\(aq)
.SS visual (default \f[CR]V\f[R])
Switch to Visual mode.
If already in Visual mode, discard the visual selection and stay in
Visual mode.
.SS visual\-accept (default \(aqV\(aq)
.SS visual\-accept (default \f[CR]V\f[R])
Add the visual selection to the selection list, quit Visual mode and
return to Normal mode.
.SS visual\-unselect
Remove the visual selection from the selection list, quit Visual mode
and return to Normal mode.
.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)
.SS visual\-change (default \f[CR]o\f[R])
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.
@@ -727,8 +732,8 @@ Such a string should end with the terminal reset sequence.
For example, \f[CR]\(rs033[4m%s\(rs033[0m\f[R] has the same effect as
\f[CR]\(rs033[4m\f[R].
.SS filesep (string) (default \f[CR]\(rsn\f[R])
File separator used in environment variables \f[CR]fs\f[R] and
\f[CR]fx\f[R].
File separator used in environment variables \f[CR]fs\f[R],
\f[CR]fv\f[R] and \f[CR]fx\f[R].
.SS findlen (int) (default 1)
Number of characters prompted for the find command.
When this value is set to 0, find command prompts until there is only a
@@ -1025,10 +1030,13 @@ Current file selection as a full path.
.SS fs
Selected file(s) separated with the value of \f[CR]filesep\f[R] option
as full path(s).
.SS fv
Visually selected file(s) separated with the value of \f[CR]filesep\f[R]
option as full path(s).
.SS fx
Selected file(s) (i.e.
\f[CR]fs\f[R]) if there are any selected files, otherwise current file
selection (i.e.
\f[CR]fs\f[R], never \f[CR]fv\f[R]) if there are any selected files,
otherwise current file selection (i.e.
\f[CR]f\f[R]).
.SS id
Id of the running client.