Skip to content

Add Support for Block IDs ([[#^blockID]]) in Meta Bind Plugin -> Actions -> Link #494

@Sainath-Chilakalapudi

Description

@Sainath-Chilakalapudi

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

  1. Improved Navigation: Users can directly target specific blocks within their notes.
  2. Enhanced Precision: Supports workflows requiring references to specific parts of a note, rather than an entire file or heading.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions