-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
bash and zsh not completing filenames #385
Comments
I totally forgot about that issue and I'm currently unable to reproduce it. Back then I somehow had at least some completions (not sure if built-in or via So the bug is kind of obsolete now, since the default zsh behaviour of suggesting directories and files (as stated in the "expected behavior" bug description) now kicks in instead of suggesting Ultimately I would like to have completions for the options, but only if I insert a dash and then hit tab, and otherwise have completions for the files. But honestly at this point I don't really care much anymore 😉 I can live without the option completions as long as the file completions work as expected. Feel free to close this if you think it shouldn't be investigated any further. |
https://github.com/clap-rs/clap/tree/master/clap_generate the only question is when should we generate the completions, |
I think subcommand would be better as that way it would be easier to keep in sync for the user. |
but subcommand may be confused with the files args |
Ahh, I see your point. Guess we could do a flag instead of a subcommand. I am not sure if this is a common pattern but I have seen |
Hey, this is something that I forgot earlier. The issue is that |
Looks like this is related to clap-rs/clap#568. |
It's been some time since last comments. |
I can confirm I'm getting the same behavior when using the Filename completion only breaks when the I've tried putting the date flag in the config file to see if that would help, but unfortunately it doesn't. I also thought that using a double dash One quick fix that works would be to use a glob expansion on the filename pattern. Another quick fix is function wrapping alias ls='() { lsd -F "$@" --color=always --date="date" ; } |
I have few more questions on this:
|
$ complete -p lsd
complete -o bashdefault -o default -F _lsd lsd
% which _lsd
_lsd () {
# undefined
builtin autoload -XUz
} |
(chiming in again, out of curiosity and because I was able to reproduce it again)
macOS, installed
Yes
Not only
Nope. No suggestions at all in that case (probably because it's trying to match
`which _lsd`
|
Has there been any progress on what's causing this? I appear to be having the same issue whenever I use lsd in general. |
this recently (today?) seems to have stopped working for me on my mac using
|
Similar issue on Arch Linux. Possibly related to v0.23 update? --edit-- Just checked and reverting to v0.22 did indeed fix the issue. |
submitted PR #741 |
Should now be fixed in the next release via #741 . |
@meain Are you planning to release a new version soon? Should we release this now as |
We just made a release, so I was not planning on making another release that soon. Probably in another month or two once we land the custom icon pr in #707 and a few related config changes. |
Temporary fix prior to the next release: https://gist.github.com/duhdugg/02773ab1cb4c4f9b328c739b9f991712?permalink_comment_id=4298545#gistcomment-4298545 |
@meain considering |
releases are expensive. https://www.youtube.com/watch?v=dLJTgvKFZoQ |
0.23.1 is now out with this fix :D |
Same issue after updating lsd. lsd 0.23.1 |
@vherbert At least from the screenshot, the behavior looks correct. It is supposed to complete options when it starts with |
Problem is that tab adds |
Expected behavior
When I type
lsd --date='date' <TAB>
the zsh completion lists all files in the current directory.Actual behavior
When I type
lsd --date='date' <TAB>
the zsh completion inserts a dash instead. A consecutive<TAB>
then lists all options (as a completion for-*
).The text was updated successfully, but these errors were encountered: