Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Shows subcommand aliases in help text #1409

Merged
merged 1 commit into from
May 10, 2022

Conversation

bigbass1997
Copy link
Contributor

Resolves #918 by utilizing clap's built-in "visible alias" feature. It won't display the aliases exactly as requested in the issue, but I don't believe there's any easy method to format it that way.

Before:

SUBCOMMANDS:
    attach               Attach to a session
    help                 Print this message or the help of the given subcommand(s)
    kill-all-sessions    Kill all sessions
    kill-session         Kill the specific session
    list-sessions        List active sessions
    options              Change the behaviour of zellij
    setup                Setup zellij and check its configuration

After:

SUBCOMMANDS:
    attach               Attach to a session [aliases: a]
    help                 Print this message or the help of the given subcommand(s)
    kill-all-sessions    Kill all sessions [aliases: ka]
    kill-session         Kill the specific session [aliases: k]
    list-sessions        List active sessions [aliases: ls]
    options              Change the behaviour of zellij
    setup                Setup zellij and check its configuration

@a-kenji
Copy link
Contributor

a-kenji commented May 10, 2022

Thank you! This is awesome.

@a-kenji a-kenji merged commit a017a65 into zellij-org:main May 10, 2022
This pull request was closed.
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.

[Feature Request]: Show abbr of subcommands in the help doc
2 participants