-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Proposal] Add new API to pass options to complete command #101
Comments
Hey, I'm currently on vacation. I'll get back to you in a couple of weeks.
I think it should be added to the install stage. If I understand correctly.
Cheers, Eyal
…On Fri, Oct 11, 2019, 20:58 Anis Elleuch ***@***.***> wrote:
Hey.
Currently, using posener/complete does not automatically escape spaces in
bash.
I think the best solution of this is to add a new API which pass options
to complete command, such as:
- -o filenames to automatically escapes spaces
- -o nospace related to this issue #87
<#87>
What do you think @posener <https://github.com/posener> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#101?email_source=notifications&email_token=AAHAN7SJCGX76URKWTPC2VLQOCPD7A5CNFSM4I73SR42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRH6BOA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHAN7SLX75VEJLVHIGUI3LQOCPD7ANCNFSM4I73SR4Q>
.
|
Hey If one would want to add these options, they would be added to the bash complete command here: https://github.com/posener/complete/blob/master/cmd/install/bash.go#L36.
Would you be interested in contributing this options? |
Yes, I am interested.
I think the best thing to do is to add an API which adds more flags and arguments to the completion command. fish complete command is different to bash & zsh |
I looked into this some time ago and found that it is not possible to call bash's builtins from an external program. So unless the fundamental mechanism that this completion library operates on is changed, this will not be possible IIRC. |
Indeed. This is not a dynamic thing. It will be configured during the setup of the completion |
Hey.
Currently, using posener/complete does not automatically escape spaces in bash.
I think the best solution of this is to add a new API which pass options to complete command, such as:
-o filenames
to automatically escapes spaces-o nospace
related to this issue Omit trailing space from completion #87What do you think @posener ?
The text was updated successfully, but these errors were encountered: