From 46b65a550fec2838a9425592360ccd17d493c2fe Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 30 Jul 2018 14:31:45 -0500 Subject: [PATCH] Reverse order of files and directories in __fish_complete_suffix output Ordering of directories above files was introduced in a recent change to the same script. By default it does not matter as completions are sorted by fish internally, but this allows the use of `-k` to sort files before directories (or piped to `sort -r` for vice-versa). --- share/functions/__fish_complete_suffix.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_suffix.fish b/share/functions/__fish_complete_suffix.fish index e19afcd10..6be18ea6e 100644 --- a/share/functions/__fish_complete_suffix.fish +++ b/share/functions/__fish_complete_suffix.fish @@ -63,7 +63,7 @@ function __fish_complete_suffix -d "Complete using files" end end - set files $dirs $all + set files $all $dirs if string match -qr '^\\./' -- $comp set files ./$files end