Unquote paths from file:// URLs
The original iTerm spec for this says the urls are supposed to be percent escaped
This commit is contained in:
parent
c95dca4023
commit
a834f221f1
1 changed files with 2 additions and 2 deletions
|
|
@ -942,6 +942,6 @@ def path_from_osc7_url(url: str) -> str:
|
|||
if url.startswith('kitty-shell-cwd://'):
|
||||
return '/' + url.split('/', 3)[-1]
|
||||
if url.startswith('file://'):
|
||||
from urllib.parse import urlparse
|
||||
return urlparse(url).path
|
||||
from urllib.parse import urlparse, unquote
|
||||
return unquote(urlparse(url).path)
|
||||
return ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue