oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.04k stars 2.76k forks source link

`bun build` does not allow tab completing a file #5237

Open gormster opened 1 year ago

gormster commented 1 year ago

What version of Bun is running?

1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b

What platform is your computer?

Darwin 21.6.0 arm64 arm

What steps can reproduce the bug?

  1. Open a zsh terminal
  2. Type bun build
  3. Press tab

What is the expected behavior?

The terminal should tab-complete the files in the current directory

What do you see instead?

Nothing happens

Additional information

I feel like the fallback behaviour for tab-completion should be to list files in the working directory… if _bun encounters an unfamiliar subcommand, then it should definitely not just do nothing.

Related: there's no tab-completing bun build either – typing bun b and tab just completes to bun bun, instead of showing the available subcommands. bun bui tab completes to nothing.

pavelsokolov21 commented 2 months ago

The same problem with bun test --watch

acro5piano commented 1 week ago

First of all, thank you for the amazing work from Bun team so far. I really love Bun!

This issue sounds a minor one but it's annoying for @pavelsokolov21 's case and it's still there in 1.1.20. All workaround I can do is to remove the completion...

rm ~/.config/fish/completions/bun.fish