worktrunk
worktrunk copied to clipboard
[Feature Request] Add short command aliases for common subcommands
Summary
Add short aliases for the most frequently used wt subcommands and flags to reduce typing friction:
Command aliases
| Command | Alias |
|---|---|
wt switch |
wt s |
wt list |
wt ls |
wt remove |
wt rm |
Short args for switch
| Flag | Short |
|---|---|
--branches |
-B |
--remotes |
-r |
Motivation
These commands and flags are the most commonly used in day-to-day workflows. Short aliases follow familiar Unix conventions (ls, rm) and feel natural for frequent use — e.g., wt s -Br instead of wt switch --branches --remotes.
Requirements
- Use clap's
visible_alias/shortso aliases appear in--helpoutput and are discoverable - Shell completions should work with the aliases
- Update snapshot tests to reflect the new aliases
Thanks for the suggestion and for opening #1369 with an implementation!
This looks like a duplicate of #406, which requested the same shorthand aliases (wt ls, wt rm, etc.). I'll leave it to a maintainer to confirm and link them.
The PR is ready for maintainer review.