yekingyan / obsidian-open-in-other-editor

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

Does not work for me on mac #7

Open EdFenner opened 1 year ago

EdFenner commented 1 year ago

I put in the path. Tried different ways. Does nothing.

mariomui commented 1 year ago

Can I see the path that you put in?

EdFenner commented 1 year ago

The last path was: /Applications/Visual Studio Code.app

mariomui commented 1 year ago

go to terminal and type which code you should see something like this. If note /usr/local/bin/code

If you dont see anything, you haven't linked the code shell command in your path so... https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line

EdFenner commented 1 year ago

That is exactly what I see: /usr/local/bin/code

mariomui commented 1 year ago

that's the path that you should put in.

EdFenner commented 1 year ago

Ah! Well that changes everything. In most cases I have had to give the path to the app that it was trying to communicate with, not the bin. I would suggest making that clear.

mariomui commented 1 year ago

yeah, i'll do that. let me finish refactor this open folder in vscode feature first.

EdFenner commented 1 year ago

This is really helpful, just what I was looking for - thanks!!