Obsidian - Hookmark not working in aditional windows (ie not the main widow)

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:

  1. Cant get the URL of documents opened in child windows in Obsidian
  2. 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.

  1. Could you please tell us how to generate an inner window for Obsidian? We’d like to try to reproduce the issue.
  2. Are you sure that the focus is on the inner window? I.e., that you have clicked in the editor?

OK, I have reproduced the issue. There’s an “open in new window” contextual menu option.

Looks like a bug in their x-callback-url. I’ll log it on their forum

I have logged an issue with the Obsidian team in their Developers: Plugin & API forum.

Sorry for the late reply. Was at work.

Ive attached two screen recordings.

In the first, just because I was trying to record, Hookmark worked a few times, and others not.

The second recording shows the bug happening again, but this time I couldn’t make hookmark grab the “child” window.

Go figure why sometimes it worked in the first recording.

https://1drv.ms/v/s!AiyQlVgLajaVj-Zl7zprNxT10Pkf_A?e=meMM8Q

https://1drv.ms/v/s!AiyQlVgLajaVj-ZoiaKEMys0ozY8RQ?e=IjvKaH

1 Like

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.

Obsidian team will fix this in Obsidian v.1.8.0.