yekingyan / obsidian-open-in-other-editor

Open current active file in gVim or VScode.
MIT License
18 stars 10 forks source link

decodeURI file path; add leading / before target dir #3

Closed joswr1ght closed 1 year ago

joswr1ght commented 1 year ago

Accommodate spaces in file names by URI decoding file path and file name. Add leading / to file path for compatibility with MacOS and Linux.

mariomui commented 1 year ago

you sure this code works for 'nix machines cuz this aint running on mine.

yekingyan commented 1 year ago

I haven't paid attention to this repository for a while, until obsidian's recent update disabled it, and I'll try to make it work. Sorry about that.