Add file completions for cleaner and previewer (#2211)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-10-19 04:18:01 +02:00
1 parent 06376f9089
commit 8a8f8180af
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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"})