We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a path contains spaces, the :open command completion sets it as is (without escaping the spaces), which leads to incorrect path.
:open
In a shell:
$ mkdir -p '/tmp/a b' $ echo hi > '/tmp/a b/c'
In hx:
:open /tmp/a<TAB>
:open /tmp/a
hx autocompletes to /tmp/a b. Hitting then <TAB> does not autocomplete to '/tmp/a b/c', typing /c<ENTER> makes hx open two files /tmp/a and b/c.
hx
/tmp/a b
/c
/tmp/a
b/c
I expected this to happen: autocomplete as /tmp/a\ b like bash & co do.
/tmp/a\ b
No response
Linux
alacritty
helix 22.08.1 (66276ce)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Summary
When a path contains spaces, the
:open
command completion sets it as is (without escaping the spaces), which leads to incorrect path.Reproduction Steps
In a shell:
In hx:
:open /tmp/a
<TAB>hx
autocompletes to/tmp/a b
.Hitting then <TAB> does not autocomplete to '/tmp/a b/c', typing
/c
<ENTER> makeshx
open two files/tmp/a
andb/c
.I expected this to happen:
autocomplete as
/tmp/a\ b
like bash & co do.Helix log
No response
Platform
Linux
Terminal Emulator
alacritty
Helix Version
helix 22.08.1 (66276ce)
The text was updated successfully, but these errors were encountered: