Commit ca701f8

Justin Su  ·  2026-05-03 23:02:47 -0400 EDT
parent e55ccde
Remove aliases from fish subcommand completions (#149)

Fixes #148
Partially reverts #90
1 files changed,  +13, -13
M src/completions.zig
+13, -13
 1@@ -124,19 +124,19 @@ const fish_completions =
 2     \\complete -c zmx -x -n '__fish_is_nth_token 1' -s h -d 'Show help message'
 3     \\
 4     \\# zmx subcommands
 5-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'a attach' -d 'Attach to session, creating if needed'
 6-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'r run' -d 'Send command without attaching'
 7-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 's send' -d 'Send raw input to session PTY'
 8-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'wr write' -d 'Write stdin to file_path through the session'
 9-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'd detach' -d 'Detach all clients (ctrl+\ for current client)'
10-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'l list' -d 'List active sessions'
11-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'k kill' -d 'Kill session and all attached clients'
12-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'hi history' -d 'Output session scrollback'
13-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'w wait' -d 'Wait for session tasks to complete'
14-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 't tail' -d 'Follow session output'
15-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'c completions' -d 'Shell completions (bash, zsh, fish)'
16-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'v version' -d 'Show version'
17-    \\complete -c zmx -n "__fish_is_nth_token 1" -a 'h help' -d 'Show help message'
18+    \\complete -c zmx -n "__fish_is_nth_token 1" -a attach -d 'Attach to session, creating if needed'
19+    \\complete -c zmx -n "__fish_is_nth_token 1" -a run -d 'Send command without attaching'
20+    \\complete -c zmx -n "__fish_is_nth_token 1" -a send -d 'Send raw input to session PTY'
21+    \\complete -c zmx -n "__fish_is_nth_token 1" -a write -d 'Write stdin to file_path through the session'
22+    \\complete -c zmx -n "__fish_is_nth_token 1" -a detach -d 'Detach all clients (ctrl+\ for current client)'
23+    \\complete -c zmx -n "__fish_is_nth_token 1" -a list -d 'List active sessions'
24+    \\complete -c zmx -n "__fish_is_nth_token 1" -a kill -d 'Kill session and all attached clients'
25+    \\complete -c zmx -n "__fish_is_nth_token 1" -a history -d 'Output session scrollback'
26+    \\complete -c zmx -n "__fish_is_nth_token 1" -a wait -d 'Wait for session tasks to complete'
27+    \\complete -c zmx -n "__fish_is_nth_token 1" -a tail -d 'Follow session output'
28+    \\complete -c zmx -n "__fish_is_nth_token 1" -a completions -d 'Shell completions (bash, zsh, fish)'
29+    \\complete -c zmx -n "__fish_is_nth_token 1" -a version -d 'Show version'
30+    \\complete -c zmx -n "__fish_is_nth_token 1" -a help -d 'Show help message'
31     \\
32     \\# Complete session names and shells
33     \\complete -c zmx -n "__fish_is_nth_token 2; and __fish_seen_subcommand_from a attach r run s send wr write hi history" -a '(zmx list --short 2>/dev/null)' -d 'Session name'