Skip to content

Commit a8a82ed

Browse files
committed
Added '.' and 'list' to sub-command-less completion
1 parent 3437e03 commit a8a82ed

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

shell_plugins/fish/desk.fish

+5-8
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ end
1717
complete -c desk -f -n '__fish_desk_no_subcommand' -a init -d 'Initialize desk configuration'
1818

1919
# desk list|ls
20-
complete -c desk -f -n '__fish_desk_no_subcommand' -a "ls" -d 'List all desks along with a description'
21-
complete -c desk -A -f -n '__fish_seen_subcommand_from list' -l only-names -d 'List only the names of the desks'
22-
complete -c desk -A -f -n '__fish_seen_subcommand_from list' -l no-format -d "Use ' - ' to separate names from descriptions"
23-
complete -c desk -A -f -n '__fish_seen_subcommand_from ls' -l only-names -d 'List only the names of the desks'
24-
complete -c desk -A -f -n '__fish_seen_subcommand_from ls' -l no-format -d "Use ' - ' to separate names from descriptions"
20+
complete -c desk -f -n '__fish_desk_no_subcommand' -a "ls list" -d 'List all desks along with a description'
21+
complete -c desk -A -f -n '__fish_seen_subcommand_from ls list' -l only-names -d 'List only the names of the desks'
22+
complete -c desk -A -f -n '__fish_seen_subcommand_from ls list' -l no-format -d "Use ' - ' to separate names from descriptions"
2523

2624
# desk go|.
27-
complete -c desk -f -n '__fish_desk_no_subcommand' -a "go" -d 'Activate a desk. Extra arguments are passed onto shell'
28-
complete -c desk -A -f -n '__fish_seen_subcommand_from .' -a "(desk ls --only-names)" -d "Desk"
29-
complete -c desk -A -f -n '__fish_seen_subcommand_from go' -a "(desk ls --only-names)" -d "Desk"
25+
complete -c desk -f -n '__fish_desk_no_subcommand' -a "go ." -d 'Activate a desk. Extra arguments are passed onto shell'
26+
complete -c desk -A -f -n '__fish_seen_subcommand_from . go' -a "(desk ls --only-names)" -d "Desk"
3027

3128
# desk run
3229
complete -c desk -f -n '__fish_desk_no_subcommand' -a run -d 'Run a command within a desk\'s environment then exit'

0 commit comments

Comments
 (0)