From 1f8fb52889fa92edcf170a4e788acf7b99c19da9 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Fri, 19 Sep 2025 20:03:50 +1000 Subject: [PATCH] Update `CHANGELOG.md` (#2166) * Update `CHANGELOG.md` * reword --- CHANGELOG.md | 14 ++++++++++++++ complete.go | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 472ea714..fb06e7e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - `Added` - `Fixed` +## r39 (Unreleased) + +### Changed + +- File extensions are now shown for long filenames even if they are truncated (#2159). +- The history file will no longer contain a space between the prefix and the actual command (e.g. `:quit` instead of `: quit`) for each line (#2161). The command `sed -i -E 's/^(.) /\1/' ~/.local/share/lf/history` can be run to make an existing history file compatible with the new format. +- The `cmd-history-next` and `cmd-history-prev` commands will now select only matching entries if part of the command is typed beforehand (#2161). Consecutive duplicate entries will also be skipped for convenience. +- The string representation of commands shown when displaying keybindings is simplified (e.g. `cd ~` instead of `cd -- [~]`) (#2165). + +### Added + +- A new command `cmd-menu-discard` is added to allow exiting the completion menu with completions discarded (#2146). +- The `lf_mode` environment variable will now be set to `compmenu` if the completion menu is active (#2146). + ## [r38](https://github.com/gokcehan/lf/releases/tag/r38) ### Changed diff --git a/complete.go b/complete.go index 980f2ede..2be53b08 100644 --- a/complete.go +++ b/complete.go @@ -109,9 +109,9 @@ var ( "cmd-left", "cmd-lowercase-word", "cmd-menu-accept", - "cmd-menu-discard", "cmd-menu-complete", "cmd-menu-complete-back", + "cmd-menu-discard", "cmd-right", "cmd-transpose", "cmd-transpose-word",