yekingyan / obsidian-open-in-other-editor

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

Opening an empty link for me #1

Closed Archie-2021 closed 2 years ago

Archie-2021 commented 2 years ago

For VSCode it works fine but for gVim it ommits my Vault name in the path, so opening an empty (new note). Very starnge.

Thank you , I looking for such an plugin for a while.

yekingyan commented 2 years ago

Hi, what is the platform you are using? I use the Windows platform and use gVim more frequently. It's strange because they have the same call logic. I'd like to see the file path when you get an error. (If the file name is split by spaces, it will have problems. I have fixed this problem in version 0.0.4)

Archie-2021 commented 2 years ago

Hi, what is the platform you are using? I use the Windows platform and use gVim more frequently. It's strange because they have the same call logic. I'd like to see the file path when you get an error. (If the file name is split by spaces, it will have problems. I have fixed this problem in version 0.0.4)

I am using windows 10 and gVim. The path is ok it only missing the name of the vault name

like this should be the real path:

// But the non existent note it is opening path is this: / I switched to "open with" plugin which basically doing what your plugin does but with any app and it works fine. But I would help with identification of this bug if I can.
yekingyan commented 2 years ago

Thanks for your feedback, in fact, “Open with” is a much more feature-rich plugin.