Add file completions for cleaner and previewer (#2211)
This commit is contained in:
1 parent
06376f9089
commit
8a8f8180af
2 files changed
+3
-1
No files matched your search
@@ -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"})
|
||||
|
||||
Reference in new issue
Block a user