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
fix __fish_list_current_token not recognizing ~ as $HOME #9954
Conversation
it's not gonna hurt if I elaborate: I'd expect I will argue that not seeing dotfiles and dotdirectories is also annoying, but I can see how not using the -A flag for the ls is a design choice. However I'm gonna jump up thrice if you agree that it's a good idea to change the ls in there to |
I was wrong, I did not have this keyboundI might be misunderstanding where this is used but I assume you are talking about tab-completion?If that is the case I cannot reproduce your error, even in Tab-completing with Okay so the error is reproducible as sh -c 'env HOME=$(mktemp -d) XDG_CONFIG_HOME= fish'
cd ~
mkdir ~/.config/test
touch hello.txt
cd ~/.config # and then enter keybind for __fish_list_current_token, which is ALT + L by default
# should print "test" and "fish", but instead prints "hello.txt" I don't think we should special-case |
what's completely hilarious is that "$HOME/.config" does work, but $HOME/.config doesn't the former being a situation you would practically never find yourself in |
also yeah I agree. ideally we take the token and expand it like you would by pressing tab maybe you're doing something like ~/.c/k intending to press tab to expand it to ~/.config/kitty making list-current-token support that would be ideal but honestly I don't even need ideal, I just want not ridiculous |
The full right answer here would be #751, probably as a subcommand of |
This is fine as a stop gap. Thanks, merged! |
Thank you for merging! Was scared that this was going to be a situation of "we can't do it perfectly so we won't do it at all", so it's nice to see the feature being merged at least in this simplified fashion for the time being |
* fix __fish_list_current_token not recognizing ~ as $HOME * right. it was supposed to be $HOME. lol. (cherry picked from commit fd68aca)
No description provided.