leftwm / leftwm-theme

A tool to help manage themes for LeftWM
BSD 3-Clause "New" or "Revised" License
117 stars 12 forks source link

Autocomplete themes #45

Open arcolinuxz opened 2 years ago

arcolinuxz commented 2 years ago

Could it be possible to autocomplete the theme?

After typing "leftwm-theme update" we have a list of themes we can put in an array.

If we type then "leftwm-theme apply" and a letter and two tabs - it shows what themes start with the letter or autocompletes the theme name... What to do with themes that have two words ---> new rule if space then change the "-"? What with capital letters? All in small letters?

Looking for the same functionality like on bash and bash-completion. Tab Tab and it autocompletes commands or folders or name.

mautamu commented 2 years ago

This is indeed a nicety. I started working on this, but unfortunately it will likely take a bit of thinking about the best method to implement this for leftwm-theme. Tagging https://github.com/clap-rs/clap/issues/1232