diff --git a/CHANGELOG.md b/CHANGELOG.md index 36b05ad4..a377789d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - Natural sorting now compares string lengths when dealing with equivalent numbers (e.g. `0` is ordered before `00`) (#2177). - A bug where the copy progress indicator only displayed the first time a file was copied is now fixed (#2181). - A bug where the `source` command does not show an error message upon failure is now fixed (#2189). -- The `addcustominfo` command now supports file completions (#2198). +- The `addcustominfo` command as well as the `cleaner` and `previewer` options now support file completions (#2198) (#2211). - A bug where an empty `custom` info property would still take up space is now fixed (#2208). ## [r38](https://github.com/gokcehan/lf/releases/tag/r38) diff --git a/complete.go b/complete.go index e5b31efc..0f9cd3f3 100644 --- a/complete.go +++ b/complete.go @@ -403,6 +403,8 @@ func completeCmd(acc []rune) (matches []compMatch, result string) { matches, result = matchWord(f[2], []string{"binary", "decimal"}) case "sortby": matches, result = matchWord(f[2], []string{"atime", "btime", "ctime", "custom", "ext", "name", "natural", "size", "time"}) + case "cleaner", "previewer": + matches, result = matchCmdFile(f[2], false) default: if slices.Contains(gOptWords, f[1]+"!") { matches, result = matchWord(f[2], []string{"false", "true"})