mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #359] zsh completion does not allow directories to be tab-completed #161
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mdekstrand on GitHub (Dec 28, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/359
With the ZSH completion, when I attempt to tab-complete a directory:
it does nothing. The expected behavior is for it to tab-complete the directory name.
@bootandy commented on GitHub (Jan 4, 2024):
$ echo $SHELL /usr/bin/zsh
$ dust [TAB]
this works for me.
Can you double check this or see if it works on bash ?
@mdekstrand commented on GitHub (Jan 4, 2024):
Just tried again, no dice.
I'm ZSH on MacOS, using Dust 0.8.6 and its completions installed by Homebrew. I also just tried installing the latest version of Dust (
brew install --HEAD dust), and the problem persists.Bash successfully completes the directory.
@bootandy commented on GitHub (Jan 6, 2024):
code points:
https://github.com/bootandy/dust/tree/master/completions
https://github.com/bootandy/dust/blob/master/build.rs
commit:
https://github.com/bootandy/dust/commit/81d52e6e3a6aa5220eb19c72fbc4f9ad75fda7f2
I'm not sure what I can do here, I don't have a mac so I can't reproduce this - you are welcome to try and fix it yourself
Perhaps try the command: rehash ?
@wickles commented on GitHub (Feb 5, 2024):
I had fixed this before in
0038cb24b4but it looks like it got reverted in2fa14ca19c.@bootandy commented on GitHub (Feb 11, 2024):
thanks for your comment @wickles - I must have something that auto-updates and over-writes it. I'll investigate.
@bootandy commented on GitHub (Feb 22, 2024):
Which Z-shell version are you guys running ?
$ $SHELL --version 5.8.1 (x86_64-ubuntu-linux-gnu)I've no idea what to do here. I can't cause a failure on my system with my zshell.
If I try and edit the completions files running 'cargo build' will reset them back to what they were before.
@BuonOmo commented on GitHub (Mar 11, 2024):
Hope this helps @bootandy !
@YHYJ commented on GitHub (Mar 28, 2024):
Everything works fine in bash,
dust <TAB>cannot be completed in zsh