-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Autocomplete paths properly #5683
Copy link
Copy link
Closed
Labels
A:completionsIssues related to tab completionIssues related to tab completionpolishthis problem makes nu feel unpolishedthis problem makes nu feel unpolished
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:completionsIssues related to tab completionIssues related to tab completionpolishthis problem makes nu feel unpolishedthis problem makes nu feel unpolished