Skip to content
New issue

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

Open auto completion does not escape spaces #4266

Closed
desbma opened this issue Oct 14, 2022 · 0 comments · Fixed by #4316
Closed

Open auto completion does not escape spaces #4266

desbma opened this issue Oct 14, 2022 · 0 comments · Fixed by #4316
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@desbma
Copy link

desbma commented Oct 14, 2022

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:

$ mkdir -p '/tmp/a b'
$ echo hi > '/tmp/a b/c'

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> makes hx open two files /tmp/a and b/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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants