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
no autocomplete for <PATH>
on CLI commands
#352
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
@ghostsquad how are you configuring autocomplete? |
I'm using ZSH. For reference, the problem appears to be if I've nested my environments, and if I'm running tk from a more top-level directory: example of the location of the
if I try to run However, if my PWD is |
I have been annoyed by that too, if I'm one directory above the Tanka root, then the directory autocomplete just doesn't respond while technically it will just work. |
Let me give some technical background on this. Tanka implements its own bash completion handler in Go, which allows us to use arbitrarily complex computation to generate those results. ZSH and Fish use Bash compat mode and should just work as well. The Bespoke directory completion does not actually suggest directories, but instead it uses the code that powers When being just one level outside of the this is no longer satisfied and our code returns an empty list, which effectively means no completion. I see two ways forward here:
No. 2 is certainly simpler and straightforward to implement. |
|
I'd be all for 2., my general expectation is that I can tab complete from current working dir to wherever the environment exists. |
You da best! |
I cannot autocomplete paths on commands such as
tk diff <PATH>
The text was updated successfully, but these errors were encountered: