Closed thekoc closed 7 years ago
In iTerm2FinderButton.app/Contents/Resources/Scripts/main.scpt, changed
iTerm2FinderButton.app/Contents/Resources/Scripts/main.scpt
if (!item) { try { return Finder.windows[0].target().url() } catch (e) { return urlPathToPosixPath(Finder.desktop().url()) } }
to
if (!item) { try { return urlPathToPosixPath(Finder.windows[0].target().url()) } catch (e) { return urlPathToPosixPath(Finder.desktop().url()) } }
In both iTerm2FinderButton and TerminalFinderButton, changed
iTerm2FinderButton
TerminalFinderButton
function urlPathToPosixPath(path) { return unescape(path) .replace(/^\/?file[:]\/+/i, '/') .replace(/(")/g, '\\$1') }
function urlPathToPosixPath(path) { return decodeURIComponent(path) .replace(/^\/?file[:]\/+/i, '/') .replace(/(")/g, '\\$1') }
Merged. Mahalo.
In
iTerm2FinderButton.app/Contents/Resources/Scripts/main.scpt
, changedto
In both
iTerm2FinderButton
andTerminalFinderButton
, changedto