-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething that's not working as intendedSomething that's not working as intended
Milestone
Description
fish version: 3.2.2
I'm trying to write completions for magic-wormhole and I'm struggling to complete paths outside of the current directory using __fish_complete_path with this completion file:
complete -e -c wormhole
complete --no-files -c wormhole
complete -c wormhole -l help
complete -c wormhole -l version -n "__fish_no_arguments"
complete -c wormhole -n __fish_use_subcommand -a receive -d "Receive a text message, file, or directory (from 'wormhole send')"
complete -c wormhole -n __fish_use_subcommand -a send -d "Send a text message, file, or directory"
complete -c wormhole -n "__fish_seen_subcommand_from send" -r -a "(__fish_complete_path)"
# This isn't a real option to wormhole but demonstrates the inconsistency
complete -c wormhole -l send -r -a "(__fish_complete_path)"- If I type,
wormhole send <tab>it starts completing files in the current directory, as expected. - If I type
wormhole send ~/<tab>, it doesn't complete anything, but I would expect it to complete the contents of my home directory - If I type
wormhole --send ~/<tab>, it starts completing the contents of my home directory
Is there a way to get wormhole send ~/<tab> to complete the contents of my home directory? I'm also very confused why -a "(__fish_complete_path)" is behaving differently with a long option vs a subcommand.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething that's not working as intendedSomething that's not working as intended