Files
tmuxinator/completion/tmuxinator.fish
Vladislav Buinovski db826a8fdb feat: Add completion support for 'stop' command in tmuxinator (#975)
Enhance tmuxinator command completions by adding support for the 'stop' command in both Fish and Zsh completion scripts, improving user experience and command discoverability.
2026-03-13 19:05:03 -04:00

19 lines
1.2 KiB
Fish

function __fish_tmuxinator_using_command
set cmd (commandline -opc)
if [ (count $cmd) -gt 1 ]
if [ $argv[1] = $cmd[2] ]
return 0
end
end
return 1
end
complete --no-files --command tmuxinator --condition __fish_use_subcommand --exclusive --argument "(tmuxinator commands)"
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command start' --argument "(tmuxinator completions start)"
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command open' --argument "(tmuxinator completions open)"
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command stop' --argument "(tmuxinator completions stop)"
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command edit' --argument "(tmuxinator completions open)"
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command copy' --argument "(tmuxinator completions copy)"
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command delete' --argument "(tmuxinator completions delete)"
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command debug' --argument "(tmuxinator completions start)"