Repository navigation
Closed
Labels
Milestone
Description
Related problem
The new releases of nu with engine-q doesn't handle directory commands as conveniently as previous version like 0.41.
For example, using version 0.41.0 to handle a directory called FooBar , on Ubuntu 20.04
- Using autocomplete adds a
./prefix when you press tab to autocompleteFoointo full directory nameFooBarbut when using version 0.60+ only theFooBarfull name is autocompleted with no./added prefix thereby on pressing enter an error occurs since nushell thinks it's executing a binary
Error: nu::shell::external_command (link)
× External command
╭─[entry #2:1:1]
1 │ FooBar/
· ────────┬────────
· ╰── can't run executable
╰────
help: Permission denied (os error 13)- Version before engine-q like 0.41.0 are able to understand what constitutes a directory so just typing
FooBarorFooBar/nushell will switch to the directory but on version0.60+this will return an error since it thinks binary execution is happening
Error: nu::shell::external_command (link)
× External command
╭─[entry #3:1:1]
1 │ FooBar
· ────────┬───────
· ╰── can't run executable
╰────
help: No such file or directory (os error 2)
Describe the solution you'd like
With new versions of nushell, reintroduce this convenience like:
- Add a
./prefix on autocompleting a directory - Nushell should be able to detect a directory and switch to it on pressing enter even if the directory name does not have a
./prefix or/suffix on the directory name
Describe alternatives you've considered
No response
Additional context and details
No response
Activity
fdncred commentedon May 30, 2022
We recently had a PR that reversed this. It used to append
./or.\in places and it took it off. IIRC, the reason for it was because the completions wouldn't work right. You couldn't dols Foo<tab>you had to dols ./Foo<tab>. So, one may be able to find that PR and fix it in a different way.Fish-like completions for nested directories (nushell#10543)
Fish-like completions for nested directories (nushell#10543)