I was imagining having indexes living in excel spreadsheets. Use python scripts and/or manual work to generate spreadsheets with custom columns, formatting, and hyperlinks which go to specific markdown files. Click on hyperlink, opens with default app for .md filetype, opens in current Obsidian instance.
Alright, here’s a hack that would work:
- create a wrapper script/executable to use as command line opener for obsidian
- (optional) associate the script/executable with OS default app for .md files
- assume the script takes the desired file to open as an argument
- have the script killall obsidian instances (could be more sophisticated…)
- have the script edit
$vault/.OBSIDIAN/workspace and set "file": "the_file.md" under “main” (most obvious for this POC anyway; and maybe another cmdline argument could be path to $vault so it only kills and modifies that one vault)
- have the script restart obsidian
Hopefully the whole thing takes no more than a second.
I tried manually doing this without writing a wrapper. Tried skipping step 4, or not killing obsidian, but the UI didn’t update simply after saving changes to the workspace file. Restarting obsidian was required