I have the same (or similar) issue. Is there a way to link to bookmarks so that I can create a MOC that assembles links to notes as well as bookmarks? I ask this because the way I use bookmarks in Obsidian is how I use bookmarks in the analogue way, that is to attach bookmarks to specific pages or paragraphs in books. I don’t usually create stand-alone notes for every interesting idea I come across in a book I’m reading but I want to be able to assemble and retrieve interesting ideas from various sources when I am working on an academic article.
I don’t understand what this would actually do. Can you explain more specifically what it would do, or what you are trying to do?
For example, if you click on the link to a bookmark, where would it “take” you? Would it highlight and select the bookmark in the bookmarks pane?
Or would it take you to where that bookmark points? In that case, why not just skip the middle step, and make a block link directly?
Likewise, I don’t understand what benefit you see in linking “to a bookmark”. Because it sounds like you are describing block quotes. You can already link to a specific paragraph in your note. That is block links. Plus you can also make a bookmark to a specific block.
Bookmarks: Bookmark block under cursor, or right-click and Bookmark this block...
Not trying to doubt either of you. Just curious for more details to understand what it is you’re looking for.
re the clickable link workaround, i just asked chatgpt to show me examples of how to format these links, and the clever thing suggested an AHK script to automate the process. it works;
; AutoHotkey v1 script: Create Obsidian search URI from user input
; Hotkey: Ctrl+Alt+s
^!s::
InputBox, userQuery, Obsidian Search Link, Enter your search query:
if ErrorLevel
return ; User cancelled
; Percent-encode reserved characters
encodedQuery := UriEncode(userQuery)
; Construct the URI
vaultName := "Obsidian"
searchURI := "obsidian://search?vault=" . vaultName . "&query=" . encodedQuery
; Format as markdown link
markdownLink := "[Search: " . userQuery . "](" . searchURI . ")"
; Copy to clipboard
Clipboard := markdownLink
MsgBox, 64, Obsidian Search Link, Markdown link copied to clipboard:`n`n%markdownLink%
; Optional: Uncomment this to immediately open the search in Obsidian
; Run, %searchURI%
return
; Function: URI percent-encode special characters
UriEncode(str) {
static chars := " !""#$%&'()*+,/:;<=>?@[\]^`{|}~"
out := ""
Loop, Parse, str
{
c := A_LoopField
if InStr(chars, c)
out .= "%" . Format("{:02X}", Asc(c))
else
out .= c
}
return out
}
I completely agree. I got here looking for a way to link to a folder, but I could also especially use the link to a search. I hadn’t even thought of that before, but I can think of quite a number of cases it would be useful.