Skip to content

feat: add shorthand aliases for list and remove commands - #802

Closed
zerone0x wants to merge 1 commit into
max-sixty:mainfrom
zerone0x:feat/shorthand-aliases
Closed

zerone0x wants to merge 1 commit into
max-sixty:mainfrom
zerone0x:feat/shorthand-aliases

Conversation

@zerone0x

Copy link
Copy Markdown

Summary

Adds visible aliases ls for list and rm for remove commands, addressing the request in #406.

These are common shortcuts that users intuitively try after installing worktrunk (as noted in the issue comments). The aliases are shown in help text, making them discoverable:

Commands:
  switch  Switch to a worktree
  list    List worktrees and their status [aliases: ls]
  remove  Remove worktree; delete branch if merged [aliases: rm]
  ...

Changes

  • Added visible_alias = "ls" to the List command
  • Added visible_alias = "rm" to the Remove command
  • Updated snapshots for help text changes

Notes

Using visible_alias (vs hidden alias) shows the aliases in help text, which helps discoverability while still allowing tab completion to work with the full command names. This addresses the maintainer's concern about tab completion from the issue discussion.

Fixes #406

🤖 Generated with Claude Code

Add visible aliases `ls` for `list` and `rm` for `remove` commands.
These are common shortcuts that users expect from Unix conventions.

The aliases are shown in help text, making them discoverable:
  list    List worktrees and their status [aliases: ls]
  remove  Remove worktree; delete branch if merged [aliases: rm]

Fixes max-sixty#406

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner

thank you for the PR, but I don't think we're ready to make a decision here, I still think we should let people figure out their own setups for a while before potentially coalescing on an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support shorthand

2 participants