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

[Feature Request] Autocomplete brace expansion #442

Open
jyn514 opened this issue Jul 22, 2019 · 2 comments
Open

[Feature Request] Autocomplete brace expansion #442

jyn514 opened this issue Jul 22, 2019 · 2 comments

Comments

@jyn514
Copy link
Contributor

jyn514 commented Jul 22, 2019

Current behavior:

$ ls examples
jit.rs  kaleidoscope
$ ls examples{j<tab>  # tab has no effect

Requested behavior:

$ ls examples{j<tab>  # tab autocompletes `examples/{jit.rs}`

FWIW bash doesn't do this.

@jyn514 jyn514 changed the title [Feature Request] Complete brace expansion [Feature Request] Autocomplete brace expansion Jul 22, 2019
@jyn514
Copy link
Contributor Author

jyn514 commented Jul 22, 2019

On second thought, that should probably complete to examples/{jit.rs so that it only completes unambiguously.

@andychu
Copy link
Contributor

andychu commented Jul 23, 2019

One issue is that when you have something like examples/{j, there could also be a file called {jit.rs in addition to jit.rs.

The { is ambiguous without the closing }, which hasn't been typed yet.

Not saying we shouldn't do this, but it's something to consider. I haven't thought about how hard this is either -- it may be hard.

Possible a more common issue is #227, single quoted paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants