-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
seems dragfile can't handle filename contains ' or space ? #57
Comments
On Linux, if the path contains spaces, the dragged path will be similar to |
if the file is |
Which Linux and Terminal would be like this? We only deal with real issues, not imaginary ones. |
it's
test files (one file at a time):
|
Maybe https://github.com/google/shlex can support it. |
Agree.
Test code: // string got from warp terminal when drag files
str := `/run/test/temp/22\ 3 /run/test/temp/32\ 3\' /run/test/temp/123`
// try to split and decode it
arr, err := shlex.Split(str)
fmt.Println("s1:", str)
fmt.Printf("ss: %#v\n", arr) Result is as expected.
|
on linux, if a file path is
/tmp/12' 3'
it seems not safe to encode/decode with current scheme?
https://github.com/trzsz/trzsz-go/blob/5622a20/trzsz/drag.go#L73
//I noticed the drag detect logic when I try to adapting to a vte-based terminal (terminator or gnome-terminal)
The text was updated successfully, but these errors were encountered: