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

[ completion ] Shell completion suggests options after commands, which is not supported #300

Open
buzden opened this issue Aug 6, 2024 · 0 comments
Labels
problem Something isn't working

Comments

@buzden
Copy link
Collaborator

buzden commented Aug 6, 2024

Currently the design decision is that all options must go before the command name. But since shell completion script uses only the current and the previous words, it cannot tell if the command is already entered or not. That's why it suggests all options after, say, pack build pack.ipkg --<cursor here> .

I'm not an expert on how shell completion works, and I don't know if we can get more previous strings before the current one, but if we can, we definitely should change the algorithm of completion to take this into account.

@buzden buzden added the problem Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant