From e6136f08fb8bd2c232dec664e3059db528915bcb Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 29 May 2022 20:36:11 +0200 Subject: [PATCH] completions/path: Add --reverse --- share/completions/path.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/completions/path.fish b/share/completions/path.fish index a3810208c..79ea5ebbc 100644 --- a/share/completions/path.fish +++ b/share/completions/path.fish @@ -25,6 +25,7 @@ complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- ( complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sort" \ -l key -x -a 'basename\t"Sort only by basename" dirname\t"Sort only by dirname" path\t"Sort by full path"' complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sort" -s u -l unique -d 'Only leave the first of each run with the same key' +complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sort" -s r -l reverse -d 'Reverse the order' # Turn on file completions again. # match takes a glob as first arg, expand takes only globs.