Changed
- Tagging symbolic links now affects the target instead of the symbolic link itself. This mimics the behavior in
ranger
(#1997). - The experimental command
invert-below
has been removed in favor of the newly added support for Visual mode (#2021).
Added
- A new placeholder
%P
representing the scroll percentage is added to therulerfmt
option (#1985). - A new
on-load
hook command is added, which is triggered when files in a directory are loaded inlf
(#2010). - The
info
option now supportscustom
, allowing users to display custom information for each file (#2012). The custom information should be added by the user via theaddcustominfo
command. Sorting by the custom information is also supported (#2019). - Support for
visual-mode
has now been added (#2021) (#2035). This includes the following changes:- A new command
visual
(defaultV
) can be used to enter Visual mode. - A new command
visual-change
(defaulto
in Visual mode) can be used to swap the positions of the cursor and anchor (start of the visual selection). - A new command
visual-accept
(defaultV
in Visual mode) can be used to exit Visual mode, adding the visual selection to the selection list. - A new command
visual-discard
(default<esc>
in Visual mode) can be used to exit Visual mode, without adding the visual selection to the selection list. - A new command
visual-unselect
can be used to exit Visual mode, removing the visual selection from the selection list. - The existing
map
command now adds keybindings for both Normal and Visual modes. Two new commandsnmap
andvmap
are added which can be used to add keybindings for only Normal or Visual mode respectively. - Two new commands
nmaps
andvmaps
are added to display the list of keybindings in Normal and Visual mode respectively. These, along with the existingmaps
andcmaps
commands, now display an extra column indicating the mode for which the keybindings apply to. - A new option
visualfmt
is added to customize the appearance of the visual selection. - Two new placeholders
%m
and%M
are added tostatfmt
to display the mode in the status line. Both will displayVISUAL
when in Visual mode, however in Normal mode%m
will display as a blank string while%M
will displayNORMAL
. - A new placeholder
%v
is added torulerfmt
which displays the number of files in the Visual selection. This is included in the default setting forrulerfmt
. - The
lf_mode
environment variable will now be set tovisual
while in Visual mode. - The environment variable
$fv
is now exported to shell commands, which lists the files in the visual selection.
- A new command
- A
CHANGELOG.md
file has been added to the repo (#2027). This will be updated to describeChanged
,Added
andFixed
functionality for each new release.
Fixed
- Displaying sixel images now uses the screen locking API in Tcell, which reduces flickering in the UI (#1943).
- The
cmd-history
command is now ignored outside of Normal or Command-line mode, to prevent accidentally escaping out of other modes (#1971). - A potential crash when using the
cmd-delete-word-back
command is fixed (#1976). - The
preserve
option now applies to directories in addition to files when copying. This includes preservingtimestamps
(#1979) andmode
(#1981). - The
lfrc.ps1.example
example config file is updated to include PowerShell equivalents for the default commands and keybindings (#1989). - Quoting for the
lf
environment variable is fixed for PowerShell users (#1990). tempmarks
are no longer cleared after thesync
command is called (#1996).- The file stat information is no longer displayed during the execution of a
shell-pipe
command even if the file is updated (#2002). - Directories are now reloaded properly if any component in the current path is renamed (#2005).
- Write updates for the log file are now ignored when
watch
is enabled. This helps to reduce notification spam and potential of infinite loops (#2015). - Attempting to
cut
/copy
files into a directory without execute permissions no longer causeslf
to crash, and an error message will be displayed instead (#2024).