The Wayback Machine - https://web.archive.org/web/20230529125109/https://github.com/gokcehan/lf/releases
Skip to content

Releases: gokcehan/lf

r30

20 May 13:55
88b3c99
Compare
Choose a tag to compare

Changelog

  • (New) A new builtin command jumps is addded to display the jump list (#1233) (by @joelim-work).
  • (New) A new possible field filter is added to ruler option to display the filter indicator (#1223) (by @joelim-work).
  • (Fix) Broken mappings for bottom command 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

30 Apr 14:36
Compare
Choose a tag to compare
r29

Changelog

  • (Breaking) Three new options cursoractivefmt, cursorparentfmt and cursorpreviewfmt have 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 with set cursorpreviewfmt "\033[7m".
  • (Breaking) An alternative boolean option syntax set option true/false is added in addition to the previous syntax set option/nooption (#758). If you have set option true in your configuration, then there is no need for any changes as it was already working as expected accidentally. If you have set option false in your configuration, then previously it was enabling the option instead accidentally but now it is disabling the option as intended. Any other syntax including set option on/off are now considered errors and result in error messages. Boolean option toggling set 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 VISUAL is checked before EDITOR for 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 tagfmt and errorfmt have 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 for cmd-history-next and cmd-history-prev respectively (#1112) (by @Limero).
  • (New) A new command invert-below is added to invert all selections below the cursor (#1101) (by @ilyagr).
  • (New) Two new commands maps and cmaps have been added to display the current list of bindings (#1146) (#1201) (by @jackielii and @ilyagr).
  • (New) A new option numberfmt is added to customize line numbers (#1177) (by @joelim-work).
  • (New) A new environment variable lf_count is now exported to use the count in shell commands (#1187) (by @joelim-work).
  • (New) A new environment variable lf is now exported to be used as the executable path (#1176) (by @ilyagr).
  • (New) An example mkdir binding 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 top and bottom now accepts counts to move to a specific line (#1196) (by @joelim-work).
  • (New) A new option ruler is added to customize the ruler information with a new addition for free disk space (#1168 and #1205) (by @rrveex and @joelim-work).
  • (Fix) Example lfcd files have been made safer to be able to alias the commands as lf (#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 drawbox is 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 relativenumber now 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 doc should now work even if lf is not in the PATH variable (#1176) (by @ilyagr).
  • (Fix) Directory option changes should not crash the program anymore (#1204) (by @joelim-work).
  • (Fix) Option selmode is now validated for the accepted values (#1206) (by @joelim-work).

r28

24 Dec 20:22
Compare
Choose a tag to compare
r28

Changelog

  • (Breaking) Extension matching for colors and icons are now case insensitive (#908) (by @maicher and @desbma).
  • (New) Three new commands high, middle, and low are 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 history option is now added to be able to disable history (#866) (by @segf00lt).
  • (New) A new special expansion %S spacer is added for promptfmt to be able to right align parts (#867) (by @laktak).
  • (New) A new command-line command cmd-menu-accept is now added to accept the currently selected match (#934) (by @p-ouellette).
  • (New) Command-line commands should now be shown in completion for map and cmap (#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 dirpreviews is now added to also pass directories to the previewer script (#842) (by @ilmari-h).
  • (New) A new option selmode is 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-select is 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_width and lf_height are now exported for shell commands.
  • (Fix) Option tagfmt can 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-back should 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 incsearch option 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 HOME and USER should 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

02 Apr 22:21
Compare
Choose a tag to compare
r27

Changelog

  • (Breaking) Creation of log files are now disabled by default (with @desbma). Instead, a new command line option -log is provided.
  • (Breaking) Copy selections are now kept after paste (by @laktak). You can use map p :paste; clear to get the old behavior.
  • (Breaking) Socket file is now created in XDG_RUNTIME_DIR when set with a fall back to the temporary directory otherwise (with @desbma).
  • (Breaking) Directory counting with dircounts option is moved from ui drawing to directory reading to be run asynchronously without locking the ui. With this change, manual reload commands might be necessary when dircounts is 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 tempmarks option is added to set some marks as temporary (by @laktak).
  • (New) Pattern *filename is added for colors and icons (by @lmburns).
  • (New) A new calcdirsize command is added to calculate directory sizes (by @laktak).
  • (New) Two new options infotimefmtnew and infotimefmtold are added to configure the time format used in info (by @maicher and @laktak).
  • (New) Two new commands jump-next (default ]) and jump-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 etc directory. See the documentation for more information.
  • (New) For Windows, an example open command in now provided in the powershell example configuration (by @seantwie03).
  • (New) Two new commands scroll-up (default <c-y>) and scroll-down (default <c-e>) are added to be able to scroll the file list without moving (by @sbinnee).
  • (New) A new special command on-quit is added to be able to run a command before quitting.
  • (New) Two new commands tag and tag-toggle (default t) 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, PWD variable 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 PWD variable are now handled properly.
  • (Fix) Files with stat errors are now skipped while reading directories.

r26

21 Oct 22:41
Compare
Choose a tag to compare
r26

Changelog

  • (Fix) On windows, input handling is properly resumed after shell commands.

r25

09 Oct 21:15
Compare
Choose a tag to compare
r25

Changelog

  • (New) A new dironly option is added to only show directories and hide regular files (by @mtoohey31).
  • (New) A new dircache option is added to disable caching of directories (by @sigasigasiga).
  • (New) Two new commands filter and setfilter is added along with a new option incfilter and a promptfmt expansion %F to implement directory filtering feature (by @SPFabGerman).
  • (New) A new special command pre-cd is added to run a command before a directory is changed (by @SPFabGerman).
  • (New) cmap command now accepts all expressions similar to map (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 hidden option is changed (by @kmarius).

r24

19 Jun 22:51
Compare
Choose a tag to compare
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

08 Jun 16:48
Compare
Choose a tag to compare
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 load and save commands 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 quit command is renamed to quit! to act as a force quit by closing connected client connections first. A new quit command is added to only quit when there are no connected clients left.
  • (New) A new autoquit option 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 -single command 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 internal load and sync commands 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 drawbox option changes and true image previews should be triggered to be drawn at updated positions.
  • (Fix) A crash scenario is fixed when hidden option 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 after sync commands (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

13 Apr 21:35
Compare
Choose a tag to compare
r22

Changelog

  • (New) A new -config command line flag is added to use a custom config file path (by @SPFabGerman).
  • (New) Current working directory is now exported as PWD environment variable (by @SeerLite). Subshells in symlink directories should now start in their own paths properly.
  • (New) Initial working directory is now exported as OLDPWD environment variable.
  • (New) A new shellflag option is added to customize the shell flag used for passing commands (i.e. default -c for unix and /c for windows).
  • (New) Command cmd-enter during find and find-back now jumps to the first match (by @gotroyb127).
  • (New) A new waitmsg option is added to customize the prompt message after shell-wait commands (i.e. default Press any key to continue) (by @gotroyb127).
  • (Fix) A regression bug is fixed to print a newline in the prompt message properly after shell-wait commands (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 delete key should be recognized properly in st terminal.

r21

27 Feb 20:45
Compare
Choose a tag to compare
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) and pause (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 for shell option 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 shellopts to 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 || true to each command exiting with a non-zero return code after a SIGPIPE.