yekingyan / obsidian-open-in-other-editor

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

Filepath issue on Linux #2

Open MichaBrugger opened 2 years ago

MichaBrugger commented 2 years ago

Unfortunately, the file path that is set isn't compatible with Linux (see picture below). It should be cd /home/.. instead of cd home/.. I'm pretty sure there is a method in the Obsidian API that handles this, but I can't find it just now (I'll update the issue later if I can).

image

yeshiqing commented 1 year ago

@MichaBrugger you can fork the repo and fix the bug, while the owner is too busy to deal with it.

mariomui commented 1 year ago

@MichaBrugger https://github.com/yekingyan/obsidian-open-in-other-editor/pull/5 my branch has the fix. I wouldnt mind someone testing this on linux for me. Cuz i only detecting macs right now.