Releases: gokcehan/lf
Releases · gokcehan/lf
r30
Changelog
- (New) A new builtin command
jumpsis addded to display the jump list (#1233) (by @joelim-work). - (New) A new possible field
filteris added toruleroption to display the filter indicator (#1223) (by @joelim-work). - (Fix) Broken mappings for
bottomcommand due to recent changes are fixed (#1240) (by @joelim-work). - (Fix) Selecting a file does not scroll to bottom anymore (#1222) (by @joelim-work).
- (Fix) Broken builds on some platforms due to recent changes are fixed (#1168).
r29
Changelog
- (Breaking) Three new options
cursoractivefmt,cursorparentfmtandcursorpreviewfmthave been added (#1086 and #1106) (by @ilyagr). The default style for the preview cursor is changed to underline. You can revert back to the old style withset cursorpreviewfmt "\033[7m". - (Breaking) An alternative boolean option syntax
set option true/falseis added in addition to the previous syntaxset option/nooption(#758). If you haveset option truein your configuration, then there is no need for any changes as it was already working as expected accidentally. If you haveset option falsein your configuration, then previously it was enabling the option instead accidentally but now it is disabling the option as intended. Any other syntax includingset option on/offare now considered errors and result in error messages. Boolean option togglingset option!remains unchanged with no new alternative syntax added. - (Breaking) Cursor is now placed at the file extension by default in rename prompts (#1162) (by @rrveex).
- (Breaking) The environment variable
VISUALis checked beforeEDITORfor the default editor choice (#1197) (by @rumaks-xyz). - (New) Mouse wheel events with the Control modifier have been bound to scrolling by default (#1051) (by @ilyagr).
- (New) Option values for
tagfmtanderrorfmthave been simplified to be able to avoid the reset sequence (#1086) (by @ilyagr). - (New) Two default command line bindings for
<down>and<up>have been added forcmd-history-nextandcmd-history-prevrespectively (#1112) (by @Limero). - (New) A new command
invert-belowis added to invert all selections below the cursor (#1101) (by @ilyagr). - (New) Two new commands
mapsandcmapshave been added to display the current list of bindings (#1146) (#1201) (by @jackielii and @ilyagr). - (New) A new option
numberfmtis added to customize line numbers (#1177) (by @joelim-work). - (New) A new environment variable
lf_countis now exported to use the count in shell commands (#1187) (by @joelim-work). - (New) A new environment variable
lfis now exported to be used as the executable path (#1176) (by @ilyagr). - (New) An example
mkdirbinding is added to the example configuration (#1188) (by @ilyagr). - (New) An example binding to show execution results is added to the example configuration (#1188) (by @ilyagr).
- (New) Commands
topandbottomnow accepts counts to move to a specific line (#1196) (by @joelim-work). - (New) A new option
ruleris added to customize the ruler information with a new addition for free disk space (#1168 and #1205) (by @rrveex and @joelim-work). - (Fix) Example
lfcdfiles have been made safer to be able to alias the commands aslf(#1049) (by @ilyagr). - (Fix) Backspace should not exit from
rename:mode anymore (#1060) (by @ilyagr). - (Fix) Preview is now refreshed even if the selection does not change (#1074) (by @joelim-work).
- (Fix) Stale directory cache entry is now deleted during rename (#1138) (by @joelim-work).
- (Fix) File information is now updated properly after reloading (#1149) (by @joelim-work).
- (Fix) Window widths are now calculated properly when
drawboxis enabled (#1150) (by @joelim-work). - (Fix) Line number widths are now calculated properly when there are exactly 10 entries (#1151) (by @joelim-work).
- (Fix) Preview is not redrawn in async shell commands (#1164) (by @joelim-work).
- (Fix) A small delay is added before showing loading text in preview pane to avoid flickering (#1154) (by @joelim-work).
- (Fix) Hard-coded box drawing characters are replaced with Tcell constants to enable the fallback mechanism (#1170) (by @joelim-work).
- (Fix) Option
relativenumbernow shows zero in the current line (#1171) (by @joelim-work). - (Fix) Completion is not stuck in an infinite loop anymore when a match is longer than the window width (#1183) (by @p-ouellette).
- (Fix) Completion now inserts the longest match even if there is no word before the cursor (#1184) (by @p-ouellette).
- (Fix) Command
docshould now work even iflfis not in the PATH variable (#1176) (by @ilyagr). - (Fix) Directory option changes should not crash the program anymore (#1204) (by @joelim-work).
- (Fix) Option
selmodeis now validated for the accepted values (#1206) (by @joelim-work).
r28
Changelog
- (Breaking) Extension matching for colors and icons are now case insensitive (#908) (by @maicher and @desbma).
- (New) Three new commands
high,middle, andloware added to move the current selection relative to the screen (#824) (by @laktak). - (New) Backspace on empty prompt now switches to normal mode (#836) (by @SeekingBlues).
- (New) A new
historyoption is now added to be able to disable history (#866) (by @segf00lt). - (New) A new special expansion
%Sspacer is added forpromptfmtto be able to right align parts (#867) (by @laktak). - (New) A new command-line command
cmd-menu-acceptis now added to accept the currently selected match (#934) (by @p-ouellette). - (New) Command-line commands should now be shown in completion for
mapandcmap(#934) (by @p-ouellette). - (New) Italic escape codes should now be working in previews (#936) (by @p-ouellette).
- (New) Position and size information are now also passed to the cleaner script as arguments (#945) (by @phillbush).
- (New) A new option
dirpreviewsis now added to also pass directories to the previewer script (#842) (by @ilmari-h). - (New) A new option
selmodeis now added to be able to limit the selection to the current directory (#849) (by @laktak). - (New) User defined options with
user_prefix are now supported (#865) (by @laktak). - (New) Adding or removing
$/%/!/&characters in:mode should now change the mode accordingly (#960) (by @ilyagr). - (New) A new special command
on-selectis now added to be able to run a command after the selection changes (#864) (by @laktak). - (New) Mouse support is extended to be able to click filenames for selection and opening (#963) (by @p-ouellette).
- (New) Two new environment variables
lf_widthandlf_heightare now exported for shell commands. - (Fix) Option
tagfmtcan now be changed properly. - (Fix) User name, group name, and link count should now be displayed as before where available (#829) (by @SeekingBlues).
- (Fix) Tagging files with colons in their names should now work as expected (#857) (by @amano-kenji).
- (Fix) Some multibyte characters should now be handled properly for completion (#934) (by @p-ouellette).
- (Fix) Menu completion for a file in a subdirectory should now be working properly (#934) (by @p-ouellette).
- (Fix) File completion should now be escaped properly in menu completion (#934) (by @p-ouellette).
- (Fix) First use of
cmd-menu-complete-backshould now select the last completion as expected (#934) (by @p-ouellette). - (Fix) Broken symlinks should now be working properly in completion (#934) (by @p-ouellette).
- (Fix) Files with stat errors should now be skipped properly in completion (#934) (by @p-ouellette).
- (Fix) Empty search with
incsearchoption should now be handled properly (#944) (by @p-ouellette). - (Fix) History position is now also reset when leaving command line (#953) (by @p-ouellette).
- (Fix) Mouse drag events are now ignored properly to avoid command repetition (#962) (by @p-ouellette).
- (Fix) Environment variables
HOMEandUSERshould now be used as fallback for locations on some systems (#972) (by @GaetanLepage). - (Fix) File information is now displayed in the status line at first launch when there are no errors in the configuration file (#994) (by @valoq).
r27
Changelog
- (Breaking) Creation of log files are now disabled by default (with @desbma). Instead, a new command line option
-logis provided. - (Breaking) Copy selections are now kept after paste (by @laktak). You can use
map p :paste; clearto get the old behavior. - (Breaking) Socket file is now created in
XDG_RUNTIME_DIRwhen set with a fall back to the temporary directory otherwise (with @desbma). - (Breaking) Directory counting with
dircountsoption is moved from ui drawing to directory reading to be run asynchronously without locking the ui. With this change, manualreloadcommands might be necessary whendircountsis changed at runtime. Indicators for errors are changed to!instead of?to distinguish them from missing values. - (Breaking) The default icons are now replaced with ascii characters to avoid font issues.
- (New) Files and options are now exported for previewer and cleaner scripts (with @lucas-mior). For cleaner scripts, this can be used to detect if the file selection is changed or not (e.g.
$1 == $f) and act accordingly (e.g. skip cleaning). - (New) A new
tempmarksoption is added to set some marks as temporary (by @laktak). - (New) Pattern
*filenameis added for colors and icons (by @lmburns). - (New) A new
calcdirsizecommand is added to calculate directory sizes (by @laktak). - (New) Two new options
infotimefmtnewandinfotimefmtoldare added to configure the time format used ininfo(by @maicher and @laktak). - (New) Two new commands
jump-next(default]) andjump-prev(default[) are added to navigate the jumplist (by @laktak). - (New) Colors and icons file support is now added to be able to configure without environment variables. Example colors and icons files are added to the repository under
etcdirectory. See the documentation for more information. - (New) For Windows, an example
opencommand in now provided in the powershell example configuration (by @seantwie03). - (New) Two new commands
scroll-up(default<c-y>) andscroll-down(default<c-e>) are added to be able to scroll the file list without moving (by @sbinnee). - (New) A new special command
on-quitis added to be able to run a command before quitting. - (New) Two new commands
tagandtag-toggle(defaultt) are now added to be able to tag files (by @sant0s12). - (Fix) Chmod calls in the codebase are now removed to avoid TOC/TOU exploits (with @desbma). Instead, file permissions are now set at file creations.
- (Fix) Socket and log files are now created with only user permissions (with @desbma).
- (Fix) On Windows,
PWDvariable is not quoted properly. - (Fix) Shell commands
%and&are now run in a separate process group (by @laktak). - (Fix) Navigation initialization is now delayed after the evaluation of configuration files to avoid startup races and redundant loadings (with @laktak).
- (Fix) The error message shown when the current working directory does not exist at startup is made more clear.
- (Fix) Trailing slashes in
PWDvariable are now handled properly. - (Fix) Files with stat errors are now skipped while reading directories.
r26
Changelog
- (Fix) On windows, input handling is properly resumed after shell commands.
r25
Changelog
- (New) A new
dironlyoption is added to only show directories and hide regular files (by @mtoohey31). - (New) A new
dircacheoption is added to disable caching of directories (by @sigasigasiga). - (New) Two new commands
filterandsetfilteris added along with a new optionincfilterand apromptfmtexpansion%Fto implement directory filtering feature (by @SPFabGerman). - (New) A new special command
pre-cdis added to run a command before a directory is changed (by @SPFabGerman). - (New)
cmapcommand now accepts all expressions similar tomap(by @SPFabGerman). - (Fix) Marking a symlink directory should now save the symlink path instead of the target path (by @SeerLite).
- (Fix) A number of crashes have been fixed when
hiddenoption is changed (by @kmarius).
r24
Changelog
- (Fix) Data directory is automatically created before the selection file is written.
- (Fix) An error is returned for remote commands when the given id is not connected to the server.
- (Fix) Prompts longer than the width should not crash the program anymore.
r23
Changelog
- (Breaking) There has been some changes in the server protocol. Make sure to kill the old server process when you update to avoid errors.
- (Breaking) Server
loadandsavecommands are now removed. Instead a local file is used to record file selections (e.g.~/.local/share/lf/files). See the documentation for more information. - (Breaking) Clients are now disconnected from server on quit. The old server
quitcommand is renamed toquit!to act as a force quit by closing connected client connections first. A newquitcommand is added to only quit when there are no connected clients left. - (New) A new
autoquitoption is added to automatically quit server when there are no connected clients left. This option is disabled by default to keep the old behavior. This is added as an option to avoid respawning server repeatedly when there is often a single client involved but more clients are spawned from time to time. - (New) A new
-singlecommand line flag is added to avoid spawning and/or connecting to server on startup. Remote commands would not work in this case as the client does not connect to a server. Local versions of internalloadandsynccommands are implemented properly. - (New) Errors for remote commands are now also shown in the output in addition to the server log file.
- (New) Bright ansi color escape codes (i.e. 90-97 and 100-107) are now supported.
- (Fix) Lookahead size for escape codes are increased to recognize longer escape codes used in some image previewers.
- (Fix) File preview cache is invalidated when the terminal height changes to fill the screen properly.
- (Fix) File preview cache is invalidated when
drawboxoption changes and true image previews should be triggered to be drawn at updated positions. - (Fix) A crash scenario is fixed when
hiddenoption is changed. - (Fix) Pane widths should now be calculated properly when big numbers are used in
ratios(by @kmarius). - (Fix) Special bookmark
'is preserved properly aftersynccommands (by @kmarius). - (Fix) On some platforms, a bug has been fixed on tcell side to avoid an extra key press after terminal suspend/resume and the tcell version used in lf is bumped accordingly to include the fix.
- (Fix) Prompt line should now scroll accordingly when the text is wider than the screen.
- (Fix) Text width in the prompt line should now be calculated properly when non-ascii characters are involved.
- (Fix) Erase line escape codes (i.e.
\033[K) used in some command outputs should now be ignored properly.
r22
Changelog
- (New) A new
-configcommand line flag is added to use a custom config file path (by @SPFabGerman). - (New) Current working directory is now exported as
PWDenvironment variable (by @SeerLite). Subshells in symlink directories should now start in their own paths properly. - (New) Initial working directory is now exported as
OLDPWDenvironment variable. - (New) A new
shellflagoption is added to customize the shell flag used for passing commands (i.e. default-cfor unix and/cfor windows). - (New) Command
cmd-enterduringfindandfind-backnow jumps to the first match (by @gotroyb127). - (New) A new
waitmsgoption is added to customize the prompt message aftershell-waitcommands (i.e. defaultPress any key to continue) (by @gotroyb127). - (Fix) A regression bug is fixed to print a newline in the prompt message properly after
shell-waitcommands (by @gotroyb127). - (Fix) A regression bug is fixed to avoid CPU stuck at 100% when the terminal is closed unexpectedly.
- (Fix) A regression bug is fixed to make shell commands use the alternate screen properly and keep the terminal history after quit.
- (Fix) Enter keypad terminfo sequence is now sent on startup so
deletekey should be recognized properly instterminal.
r21
Changelog
- (Breaking) Copy and move do not follow symlinks anymore and copy them as symlinks. Broken symlinks can now be used in copy and move (by @sh1r4s3).
- (New) User name, group name, and hard link counts are now shown in the statusline at the bottom when available (by @kmarius).
- (New) Number of selected, copied, and cut files are now shown in the ruler at the bottom when they are non-zero.
- (New) Hard-coded shell commands with
stty(unix) andpause(windows) to implement "Press any key to continue" behavior are now implemented properly with Go terminal handling library. With this change, requirement for a POSIX compatible shell forshelloption is now dropped and other shells might be used. - (Fix) A longstanding issue regarding ui suspend/resume for shell commands in MacOS is now fixed in tcell (by @gdamore).
- (Fix) Renaming a symlink to its target or a symlink to another with the same target should now be handled properly (by @sh1r4s3).
- (Fix) Autocompletion in a directory containing a broken symlink should now work as intended (by @sh1r4s3).
- (Fix) Setting
shelloptsto empty in the configuration file should not pass an extra empty argument to the shell commands anymore. - (Fix) Previously given tip to trap SIGPIPE in the preview script to enable caching is now updated in the documentation. Trapping the signal in the preview script avoids sending the signal to the program when enough lines are read. This may result in reading redundant lines escpecially for big files. Recommended method is now to add a trailing
|| trueto each command exiting with a non-zero return code after a SIGPIPE.

