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

Tab completion for arguments #204

Closed
Raymo111 opened this issue Feb 15, 2021 · 0 comments · Fixed by #230
Closed

Tab completion for arguments #204

Raymo111 opened this issue Feb 15, 2021 · 0 comments · Fixed by #230

Comments

@Raymo111
Copy link
Owner

Raymo111 commented Feb 15, 2021

Background

Many command-line tools have tab completion (autocomplete) for arguments to simplify the user experience. i3lock-color currently does not. Tab autocomplete would make both testing and command-line usage easier.

Task

Add tab completion for arguments. To illustrate this, if I type i3lock --key<tab> then it should show me

--keylayout mode
--keyhlcolor=rrggbbaa

if I continue with l<tab> (i.e. now I have typed i3lock --keyl), I will get keylayoutautocompleted for me. That is, I will now have "typed"i3lock --keylayout`.

This enhancement is a nice and rewarding first issue, so if anyone wants to jump into i3lock-color/C/Linux development, this is a great starting point!

This seems like a nontrivial task:

Raymo111 added a commit that referenced this issue Sep 19, 2021
* Tab completion

* Added --special-passthrough flag

* Integration with autotools

* Fixed build test

* Update completions

* Indent

Co-authored-by: Raymond Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant