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

zaw as completion widget? #64

Open
vapniks opened this issue Jul 17, 2015 · 3 comments
Open

zaw as completion widget? #64

vapniks opened this issue Jul 17, 2015 · 3 comments

Comments

@vapniks
Copy link
Contributor

vapniks commented Jul 17, 2015

Would be great to be able to use zaw as a completion widget for commands with loads of options like gpg for example. I did a bit of research on this some time ago but couldn't figure out how to do it.
If anyone has any ideas about the best way to accomplish this, let us know in the comments below.

@termoshtt
Copy link
Contributor

zaw is based on zle, which is distinct feature from completion-widget. In my understanding, what we can do is to write a source which can be used both zaw and completion-widget, but it will be out of the scope of zaw.

@vapniks
Copy link
Contributor Author

vapniks commented Nov 27, 2017

It should be possible to write a zsh module (in c) which exports the completions in a parameter which could then be accessed by a zaw plugin. I made a start on this some time ago, but got caught up with other things and didn't complete it. If anyone wants to give it a shot here is the repo: https://github.com/vapniks/zsh-export-completions

@termoshtt
Copy link
Contributor

It looks interesting!

It should be possible to write a zsh module (in c) which exports the completions in a parameter which could then be accessed by a zaw plugin.

I've never try it, and your understanding will be better than mine.

I keep opening this issue to track related works.

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