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

Support tagging completion candidates with different types #914

Open
xiaq opened this issue Feb 16, 2020 · 0 comments
Open

Support tagging completion candidates with different types #914

xiaq opened this issue Feb 16, 2020 · 0 comments

Comments

@xiaq
Copy link
Member

@xiaq xiaq commented Feb 16, 2020

Today, Elvish does not distinguish different types of completion candidates. For example,

  • At the command head position, both commands like ls and variable assignments like paths = are generated and sorted together.

  • A custom completer may complete both filenames and options after ls, e.g. filename and -l.

Zsh has a concept of tags for distinguishing different types of completion candidates. You can configure Zsh to group candidates by their tags; you can also only apply certain options ("zstyle") to candidates with a specific tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.