-
-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Please fill out these Check-boxes
- I checked for existing similar feature requests
- I have read the docs and checked that the feature I am requesting is not already implemented
- My feature request consists of only one feature
Is your Feature Request related to a Problem or Annoyance?
No response
Describe the Feature you'd like
Feature Description
I would like to request support for block-level references ([[#^blockID]]) within the open link actions configuration of the Meta Bind Plugin for Obsidian. This enhancement will allow users to directly link to block IDs in addition to the already supported formats like [[File]] and [[#title]].
Currently, the plugin supports the following formats:
[[File]] — direct file links.
[[#title]] — heading-level links within a file.
However, block-level references ([[#^blockID]]) are not currently supported. When attempting to use such references, the plugin throws the following error:
text
Error: [MB_PARSINOM] "Failed to parse. Check that your syntax is correct." caused by "expected ']]' or '|'"
1 | [[#^topics]]
^ (expected ']]' or '|')
This error indicates that the parser does not currently recognize block-level references. Adding support for such references would significantly enhance the plugin's flexibility and usability when working with finer-grained content references.
Benefits
- Improved Navigation: Users can directly target specific blocks within their notes.
- Enhanced Precision: Supports workflows requiring references to specific parts of a note, rather than an entire file or heading.
- Consistency: Aligns with Obsidian's native support for block-level links, improving user experience and familiarity.
Alternatives
No response
Additional Context
A Quick Tutorial: How Block IDs (^blockID) Work in Obsidian
Block IDs (^blockID) are unique identifiers you can assign to specific blocks (paragraphs, list items, etc.) in your Obsidian notes. They allow you to reference or link to a specific piece of content within a file. Here’s how to create and use them:
Assign a Block ID:
- To assign a block ID, append ^blockID (where blockID is a unique name you choose) to any block in your note. For example:
This is a list item with a block ID. ^topics
Reference the Block:
- Once a block ID is assigned, you can reference it in another note by linking it like this:
[[FileName#^topics]]- This link navigates directly to the block with the ID ^topics in the file FileName.
Use with Meta Bind:
With support added to the Meta Bind plugin, you could leverage block IDs within plugin actions. For example:
actions:
- type: open
link: "[[#^topics]]"
This would allow you to directly open or interact with the specific block identified by the block ID in current file.