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

Not suggesting path when creating second path on the same line #28

Closed
litoj opened this issue Dec 24, 2021 · 6 comments
Closed

Not suggesting path when creating second path on the same line #28

litoj opened this issue Dec 24, 2021 · 6 comments

Comments

@litoj
Copy link
Contributor

litoj commented Dec 24, 2021

Lets say I have a line:

/usr/bin/java -jar /usr/local/bin/file.jar

The first path will be completed, but the path to the second file I have to know, since it won't give me any suggestion on the same line.
Is there anything that could be done about this?

@Ultra-Code
Copy link

I have been having this very same issue for a very long time now. I would love to see this been fixed

@Galicarnax
Copy link

Just wanted to open the issue for that, and noticed it already exists.

Probably, the issue is that the completion engine doesn't know that you are dealing with another path, and thinks it's a continuation of the first one, only with weird directory names (like java -jar /).

@litoj
Copy link
Contributor Author

litoj commented Jul 24, 2022

this could be fixed by regarding ' /' as a beginning of a new path since noone would create a directory with a trailing space

@hrsh7th
Copy link
Owner

hrsh7th commented Jul 26, 2022

Fixed by bee1294

@hrsh7th hrsh7th closed this as completed Jul 26, 2022
@litoj
Copy link
Contributor Author

litoj commented Jul 26, 2022

But this fix disables the spaces altogether. We only need to test for a trailing space.

hrsh7th added a commit that referenced this issue Jul 26, 2022
Fix  #28 with trailing space detection
@Ultra-Code
Copy link

Works for my use case. Thank you for taking time to get this fixed.

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

4 participants