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

Is something like carapace expand possible? #1121

Open
dwt opened this issue Apr 1, 2025 · 1 comment
Open

Is something like carapace expand possible? #1121

dwt opened this issue Apr 1, 2025 · 1 comment

Comments

@dwt
Copy link

dwt commented Apr 1, 2025

I would often like a tool that allows me to expand short option forms that I copied from some script or Webseite to their long option form.

e.g. carapace expand curl -sSf -L https://install.lix.systems/lix to
Do you want to run curl --fail --show-error --silent --location https://install.lix.systems/lix ?

This would be especially handy, as I (and most other people) do not have the short options memorized, and the long options are much easier to remember / read / understand.

As I don't understand much about carapace yet, does the data it provides / has actually allow to implement something like this?

@rsteube
Copy link
Member

rsteube commented Apr 1, 2025

Yes and no.

For commands that are fully described in carapace without dynamic aspects, yes.
But not all are so simple and for example embed other commands.

I've got some plans for something like this, but that will take a while.

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

No branches or pull requests

2 participants