From 3ed49304f2971eee794e1f4aa7952b09e6a4ab8d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 4 Aug 2021 21:08:00 +0200 Subject: [PATCH] Completions --- share/completions/string.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/completions/string.fish b/share/completions/string.fish index fa764982a..356648ef1 100644 --- a/share/completions/string.fish +++ b/share/completions/string.fish @@ -6,6 +6,7 @@ complete -f -c string -n "test (count (commandline -opc)) -ge 2; and not contain complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a lower complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a upper complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a length +complete -f -c string -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] length" -s v -l visible -d "Use the visible width, excluding escape sequences" complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a sub complete -x -c string -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sub" -s s -l start -xa "(seq 1 10)" complete -x -c string -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sub" -s e -l end -xa "(seq 1 10)"