-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
bug: -F breaks tab completion in zsh #1054
Comments
for anyone feeling inspired to tackle this, a starting point for this is it could be caused by something in https://github.com/eza-community/eza/blob/main/completions/zsh/_eza causing trouble. personally I have no idea how zsh completions work 🤷♀️ |
Have exact same setup and can't reproduce this. The completion script looks ok to me too. Here's how I'd test this more from your side:
If this does work then this is not an issue related to eza. Happy to help (here or somewhere else) though Follow upI'm not an expert in zsh completion but I know enough to make an educated guess but take what I'm saying with a grain of salt.
|
I did the above. If I do the same for So, from my home directory, I have 4 'D' file/directories. My expectation is that |
fwiw on fish shell, if I hit tab on Could you try on the latest version of eza instead of |
I don't think the eza version would make much of a difference. The difference in the completion behavior is correctly reflecting a difference between how I think the important question here is if ExampleLet's say I have a directory with (very weirdly named) subdirectories as such:
There is a behavioral difference between
but
Note that Summary
IMO, the third point is scary but scary mainly if someone decides to script using |
I mean, sure, but consider e.g. https://github.com/eza-community/eza/releases/tag/v0.18.21, it does have an effect |
Same results for v0.18.23 |
The problem is the way how oh-my-zsh and others alias ls. This is the example from oh-my-zsh common-aliases plugin for the la alias: ls -lAFh Works fine with ls but not with eza as it takes h as a parameter for F: eza -lAFh The solution could be either to create a PR, for example, for oh-my-zsh and the other alias sets to adjust the order of the parameters for the ls aliases, for example into ls -lhAF which works with eza as well. The second option could be to change the way how eza reads the parameters when F is part of a single dash-initiated parameter list. I would vote for the second option as eza should able to mimic the complete ls parameter set and additionally, the first option would end up in a lot of PRs as many projects use such kind of alias. |
I have the same issue with version It defines the following aliases eza_params=(
'--git' '--icons' '--group' '--group-directories-first'
'--time-style=long-iso' '--color-scale=all'
)
[[ ! -z $_EZA_PARAMS ]] && eza_params=($_EZA_PARAMS)
alias ls='eza $eza_params'
alias l='eza --git-ignore $eza_params'
alias ll='eza --all --header --long $eza_params'
alias llm='eza --all --header --long --sort=modified $eza_params'
alias la='eza -lbhHigUmuSa'
alias lx='eza -lbhHigUmuSa@'
alias lt='eza --tree $eza_params'
alias tree='eza --tree $eza_params' Of these aliases, only
If I can help, let me know! |
Awkward to not be able to use tab completion but discovered that it was the '-F' argument.
I had this set in the aliased version of eza I used.
An easy workaround is to use '--classify=auto' instead of '-F' which works for me since I use an aliased variant of eza but for one-off invocations of eza, that is a hand full to write instead of just -F
The text was updated successfully, but these errors were encountered: