worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

[Feature Request] Add short command aliases for common subcommands

Open chandlerok opened this issue 8 months ago • 1 comments

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 / short so aliases appear in --help output and are discoverable
  • Shell completions should work with the aliases
  • Update snapshot tests to reflect the new aliases

chandlerok avatar Mar 08 '26 17:03 chandlerok

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.

worktrunk-bot avatar Mar 08 '26 17:03 worktrunk-bot