cpbotha / org-roam-canvas

render org-roam nodes as part of the obsidian canvas
21 stars 1 forks source link

Changing how to open file #1

Closed hermanhel closed 1 month ago

hermanhel commented 2 months ago

at least on my side webbrowser.open("file:///home/path/to/file.org) always open a browser(firefox) tab of the file, instead of opening the file in emacs. image

With the commit the os-open endpoint should open the file with subprocess now. You still need to configure default app on the system for .org file.

test: With this fix, when I click on the /os-open/?filenam=xxx link in obsidian canvas, I get to emacs correctly Peek 2024-06-22 12-12

cpbotha commented 1 month ago

This is great, thank you very much!

I'm going to merge, and then make a few follow-up commits on main (code formatting etc. -- I see that I forgot to add a rome.toml to this repo)