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 for user-defined arguments #68

Open
dos4boss opened this issue Jun 13, 2020 · 3 comments
Open

Completion for user-defined arguments #68

dos4boss opened this issue Jun 13, 2020 · 3 comments

Comments

@dos4boss
Copy link

How hard would it be to extend it to allow completion also for arguments?
Let's say, for example, I have an command, that can only be called in the following way to be valid:
set_state RUNNING, set_state WAITING and set_state TERMINATED.
I want to have completion of set_state R to set_state RUNNING in this case.

@daniele77
Copy link
Owner

Thank you @dos4boss for the idea: it would be great to have completion on arguments.
Before that, however, the library should be able to manage "enumeration" arguments (i.e., a string argument that can assume only a finite set of values).
In particular, the library should be able to handle "user-defined arguments" in the first place (see issue #69).

@suikabreaker
Copy link

suikabreaker commented Aug 3, 2020

Even further, could it be extended to allow this?

select node N<tab>

N1-s N2-s

select node N2-s

in which node list is determined at runtime.

@suikabreaker
Copy link

And filepath completion can also be useful.

@daniele77 daniele77 added this to To do in Roadmap Sep 29, 2021
@daniele77 daniele77 removed this from To do in Roadmap Sep 29, 2021
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

3 participants