bevry / dorothy

🧙🏻‍♀️ Bring your dotfile commands and configuration to any shell. Sensible defaults and hundreds of commands preloaded. Supports Bash, Zsh, Fish, Nu, Xonsh, Elvish, Dash, KornShell, macOS, Linux, Windows.
Other
335 stars 22 forks source link

Suggestion: carapace autocomplete definitions for Dorothy commands #255

Open balupton opened 1 month ago

balupton commented 1 month ago

This is a suggestion from @molleweide

We could build a parser for the help documentation, or the options parsing, or even better, use a LLM trained on Dorothy's source files, to generate the carapace definitions.

As for which AI to use, it would need to be something that can be trained/loaded with Dorothy's source files, in which a GitHub Copilot alternative seems suitable, in which a quick search reveals these (there could be more):

molleweide commented 1 month ago

Since dorothy commands follow posix more or less it shouldnt be hard to put together something basic that just adds options and actions to the yaml configs.

The first iteration doesnt even have to be perfect, just a dwmo to see how it would be..