Obsidian introduced the ability to open various windows. It uses the main window vs child windows model (I don’t know how it’s actually called). Additional windows don’t show the navigation pane (file explorer).
If I invoke hookmark’s in a child window, the main window is activated and hookmarks gets it’s document URL not of the document that was opened in the child window where it was activated.
So there’s two related problems:
Cant get the URL of documents opened in child windows in Obsidian
Invoking hookmark in a child windows changes the focus to the main window.
I’m using:
macOS Sonoma 14.4.1;
Hookmark Pro version 6.3 (6035) (Scripts version 340)
Obsidian v. Version 1.6.7 (Installer 1.5.12)
Changed the scheme to use hook/file (haven’t teste the other options)
I don’t know if this is a bug report, a feature request or a discussion and help post. The mods can feel free to reclassify it.
strictly speaking this behavior is due to the way Obsidian itself handles its x-callback-url. Hookmark invokes Obsidian’s x-callback-url to get the name and address of the current note. (Technical customers may wish to look at Hookmark > Preferences > Scripts > Obsidian to see the relevant integration script.) We’d need to get in touch with Obsidian to request alternative behavior.
I have not tried Obsidian’s child windows but will have a look.
thanks. as noted we can reproduce the issue and we’ve logged the bug with Obsidian. When the Hookmark work is elicited in Obsidian, it calls the x-callback-url that I referenced. Their x-callback-url needs to be updated to work properly with “child” windows. I recommend responding to the topic I created in the Obsidian forum so that they understand that the issue comes from one of their regular users, not just from CogSci Apps Corp.