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
+13,
-13
| ... | ... | @@ -124,19 +124,19 @@ const fish_completions = | |
| 124 | 124 | \\complete -c zmx -x -n '__fish_is_nth_token 1' -s h -d 'Show help message' | |
| 125 | 125 | \\ | |
| 126 | 126 | \\# zmx subcommands | |
| 127 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'a attach' -d 'Attach to session, creating if needed' | |
| 128 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'r run' -d 'Send command without attaching' | |
| 129 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 's send' -d 'Send raw input to session PTY' | |
| 130 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'wr write' -d 'Write stdin to file_path through the session' | |
| 131 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'd detach' -d 'Detach all clients (ctrl+\ for current client)' | |
| 132 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'l list' -d 'List active sessions' | |
| 133 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'k kill' -d 'Kill session and all attached clients' | |
| 134 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'hi history' -d 'Output session scrollback' | |
| 135 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'w wait' -d 'Wait for session tasks to complete' | |
| 136 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 't tail' -d 'Follow session output' | |
| 137 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'c completions' -d 'Shell completions (bash, zsh, fish)' | |
| 138 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'v version' -d 'Show version' | |
| 139 | - | \\complete -c zmx -n "__fish_is_nth_token 1" -a 'h help' -d 'Show help message' | |
| 127 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a attach -d 'Attach to session, creating if needed' | |
| 128 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a run -d 'Send command without attaching' | |
| 129 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a send -d 'Send raw input to session PTY' | |
| 130 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a write -d 'Write stdin to file_path through the session' | |
| 131 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a detach -d 'Detach all clients (ctrl+\ for current client)' | |
| 132 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a list -d 'List active sessions' | |
| 133 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a kill -d 'Kill session and all attached clients' | |
| 134 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a history -d 'Output session scrollback' | |
| 135 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a wait -d 'Wait for session tasks to complete' | |
| 136 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a tail -d 'Follow session output' | |
| 137 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a completions -d 'Shell completions (bash, zsh, fish)' | |
| 138 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a version -d 'Show version' | |
| 139 | + | \\complete -c zmx -n "__fish_is_nth_token 1" -a help -d 'Show help message' | |
| 140 | 140 | \\ | |
| 141 | 141 | \\# Complete session names and shells | |
| 142 | 142 | \\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' |