-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
gf misbehaves on paths surrounded by quotes #5533
Comments
I looked at the code and found out this lines: helix/helix-term/src/commands.rs Lines 1051 to 1059 in b633139
The problem is not with quotes, but with the comma. I added a comma as another separator and it works. let surrounding_chars: &[_] = &['\'', '"', '(', ')', ',']; However, I think it's more like hotfix and not desire solution. What do you say (question to maintainers)? Would this be an acceptable solution or should it only remove the comma if it is at the end of the selection? |
Closed by #9065 |
Summary
When the cursor is on (not selected, on a single char) a path surrounded quotes followed by a comma, pressing gf opens a buffer pointing to a weird path.
Example scene
With cursor at the
^
marker (no selection), pressing gf opens a buffer withkitty/.config/kitty/kitty.conf",
as the path.Reproduction Steps
.config/helix
'.config/helix'
'.config/helix',
.config/helix,
Helix log
No response
Platform
macOS
Terminal Emulator
kitty 0.26.5
Helix Version
helix 22.12 (e2a1a97)
The text was updated successfully, but these errors were encountered: