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

Add command line autocompletion #25

Open
joaander opened this issue Jul 11, 2024 · 1 comment
Open

Add command line autocompletion #25

joaander opened this issue Jul 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@joaander
Copy link
Member

Description

Support command line autocomplete.

Proposed solution

I'm not sure how other tools do this as I do not use custom autocomplete myself. We should investigate other Rust tools that support autocomplete and see how they handle the situation.
clap-complete may help us generate the completions.

Additional context

I'm not sure how tools do this in general. We could generate files (one for each supported shell) at compile time. It is not clear how those should be installed into a location where the user's shell will look for them. The other option is to add a sub-command row show autocomplete that generates the completion at runtime.

If it is not possible to install files into the shell's completion search patch, we may need to instruct users to set an appropriate environment variable or execute source $(row show autocomplete).

At a minimum, we should support:

  • bash
  • fish
  • zsh
@joaander joaander added the enhancement New feature or request label Jul 11, 2024
@joaander
Copy link
Member Author

#52 makes it more difficult to autocomplete directory names (or any workspace-specific quantity). How would the user select which workspace to autocomplete from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant