yekingyan / obsidian-open-in-other-editor

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

does not work for me in Windows 11 with space in path to the file which I want to edit #4

Open holstuwe opened 1 year ago

holstuwe commented 1 year ago
run cmd err: Error: Command failed: cd /d C:/Users/holst/Insync/holstuwe@gmail.com/Google%20Drive/obsidian_uh && gvim ./"01 Arbeit/02 📚 Produkte/xSuite Interface 5/Interface 5 als Dienst einrichten.md"
Das System kann den angegebenen Pfad nicht finden.
, , Das System kann den angegebenen Pfad nicht finden.

eval @ plugin:obsidian-open-in-other-editor:39
exithandler @ node:child_process:413
emit @ node:events:390
maybeClose @ node:internal/child_process:1064
ChildProcess._handle.onexit @ node:internal/child_process:301

"Das System kann den angebenen Pfad nicht finden" is german for "The system cannot find the specified path"

Running it manually in the command prompt from the vaults starting directory works fine.

image

Looks like the "...%20..." in the "cd /d ..." part is causing the problem. When using a space instead of "%20" it works fine.