add command completion to --new (after --)
1 file changed, 6 insertions(+), 0 deletions(-)
changed files
M functions/__scriptura_seen_script.fish → functions/__scriptura_seen_script.fish
@@ -4,6 +4,8 @@ or set --function argv (commandline -xpc)[2..] set --function target $SCRIPTURA_ROOT + argparse --stop-nonopt --move-unknown n/new -- $argv + if not set --query argv[1] return 1 end@@ -16,6 +18,10 @@ set --function target $target/$arg else if path is --type file --perm exec $target/$arg return 0 else + if set --query _flag_new + # the first non-directory argument is probably a script name + return 0 + end break end end