[GH-ISSUE #534] Behaviour of tab completion in Bash (Debian Trixie) #232

Closed
opened 2026-06-08 11:26:16 +03:00 by zhus · 1 comment
Owner

Originally created by @DrChr on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/bootandy/dust/issues/534

Hi,

I thought I'd give dust a try, but was disappointed in the behaviour of the tab completion (in Bash in Debian Trixie), i.e. when I do:

dust <TAB><TAB>

the result isn't what I expect. Here's a comparison with du, where I expect the completion to show me two subdirectories: a and b:

$ ls
a  b

$ du 
a/ b/ 

$ dust 
-d                    -r                    -v                    -j                    --config              --no-colors           --invert-filter       --stack-size          --version
-T                    -c                    -e                    -M                    --number-of-lines     --force-colors        --filter              --output-json         [PATH]...
-n                    -C                    -t                    -A                    --full-paths          --no-percent-bars     --file-types          --mtime               
-p                    -b                    -w                    -y                    --ignore-directory    --bars-on-right       --terminal-width      --atime               
-X                    -B                    -P                    -m                    --ignore-all-in-file  --min-size            --no-progress         --ctime               
-I                    -z                    -D                    -h                    --dereference-links   --screen-reader       --print-errors        --files0-from         
-L                    -R                    -F                    -V                    --limit-filesystem    --skip-total          --only-dir            --collapse            
-x                    -f                    -o                    --depth               --apparent-size       --filecount           --only-file           --filetime            
-s                    -i                    -S                    --threads             --reverse             --ignore-hidden       --output-format       --help                

Interestingly, I do get the behaviour I desire if there's a comment on the line, i.e. like this:

$ dust   # some comment
b/ a/

Version: 1.2.0

Originally created by @DrChr on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/bootandy/dust/issues/534 Hi, I thought I'd give `dust` a try, but was disappointed in the behaviour of the tab completion (in Bash in Debian Trixie), i.e. when I do: ``` dust <TAB><TAB> ``` the result isn't what I expect. Here's a comparison with `du`, where I expect the completion to show me two subdirectories: `a` and `b`: ``` $ ls a b $ du a/ b/ $ dust -d -r -v -j --config --no-colors --invert-filter --stack-size --version -T -c -e -M --number-of-lines --force-colors --filter --output-json [PATH]... -n -C -t -A --full-paths --no-percent-bars --file-types --mtime -p -b -w -y --ignore-directory --bars-on-right --terminal-width --atime -X -B -P -m --ignore-all-in-file --min-size --no-progress --ctime -I -z -D -h --dereference-links --screen-reader --print-errors --files0-from -L -R -F -V --limit-filesystem --skip-total --only-dir --collapse -x -f -o --depth --apparent-size --filecount --only-file --filetime -s -i -S --threads --reverse --ignore-hidden --output-format --help ``` Interestingly, I do get the behaviour I desire if there's a comment on the line, i.e. like this: ``` $ dust # some comment b/ a/ ``` Version: 1.2.0
zhus closed this issue 2026-06-08 11:26:16 +03:00
Author
Owner

@bootandy commented on GitHub (Nov 21, 2025):

Hmm, I can't replicate this I'm afraid. When I tab I see directories & files.

I'm using Ubuntu 24.04

I can't tell you why tab is giving you the flag options instead of the filenames.

<!-- gh-comment-id:3560418072 --> @bootandy commented on GitHub (Nov 21, 2025): Hmm, I can't replicate this I'm afraid. When I tab I see directories & files. I'm using Ubuntu 24.04 I can't tell you why tab is giving you the flag options instead of the filenames.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#232