add command completion to --new (after --)
1 file changed, 11 insertions(+), 0 deletions(-)
changed files
A functions/__scriptura_complete_new.fish
@@ -0,0 +1,11 @@ +function __scriptura_complete_new + test (count $argv) -ne 0 + or set --function argv (commandline -xpc)[2..] (commandline -ct) + + set --function index (contains --index -- "--" $argv) + or return + + set --function remaining $argv[(math $index + 1)..] + + __fish_complete_subcommand --commandline $remaining +end