Replies: 2 comments 6 replies
-
I had a related idea, though I haven't thought deeply about whether it's really worth it: Maybe it is useful to provide a way to adjust the behavior through For example, when the _comp_compgen [-aR|-v var|-c cur] CMD/NAME args... it internally calls |
Beta Was this translation helpful? Give feedback.
-
So, exported generator functions have the name
Also, it might be better to make a naming rule for the internal generator functions defined in specific completion files. I'd like to make use of
|
Beta Was this translation helpful? Give feedback.
-
The xfuncs we currently have that operate on
COMPREPLY
have inconsistent behavior with regards to whether they append or replace to the target. Would be good to be consistent with this.If we are to choose between always append or replace, I think I'd go with append, as it's easier to work around at call sites if replace semantics are preferred.
Then again, I suppose we could look into providing an
-a
option to_comp_xfunc
for controlling this, but I'm not sure if that's worth the trouble.Beta Was this translation helpful? Give feedback.
All reactions