Skip to content

Allow Tagging for Individual Blocks #837

Description

@uNyanda
  • Type: Enhancement
  • Priority: Low

Problem

Currently, tagging is primarily used at the note level. When a tag is added to a specific piece of content, searching for that tag returns the note containing it rather than the specific content that was tagged.

This can make it difficult to use tags for identifying and retrieving individual pieces of information within a note.

Proposed Enhancement

Allow tagging to be applied to be applied to individual blocks of content in addition to entire notes.

This could allow paragraphs, list items, or other supported blocks to be tagged independently, with tag searches being able to return the matching blocks rather than only the notes containing them.

Example

A note could contain several paragraphs discussing different concepts:

## JavaScript

JavaScipt uses functions to group reusable behaviour.

Functions can accept parameters and return values. #concept

Arrow functions provides a shorter syntax for writing functions.

The #concept tag could be applied specifically to the second sentence.

Searching for #concept could then return that sentence as the matching result, rather than only returning the note containing it.

If the same tag is used on blocks across multiple notes, the search could return each matching block and allow navigation directly to the corresponding location.

Considerations

  • Tagging could remain available at the note level while also supporting individual blocks.
  • Paragraphs, list items, headings, or other supported block types could potentially be tagged.
  • Multiple blocks within the same note could have the same or different tags.
  • Search results could display the tagged block together with its note name for context.
  • Selecting a result could navigate directly to the tagged block.

Rationale

This could make tagging useful for identifying specific pieces of information rather than only categorising entire notes.

It would allow a tag to represent a particular piece of content within a note and make it easier to collect and retrieve related information from the across the vault without manually searching through each matching note.

Current Workaround

Search for the tag, open each matching note, and manually locate the relevant tagged content.

Additional Context

The idea is intended to extend the existing concept of tagging rather than replace note-level tags.

A tag could therefore be used either to describe an entire note or to identify a specific block within a note, depending on where the tag is applied. This could make the same tagging system useful for both broad note organisation and more granular information retrieval.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorEditing surface: live preview, links, images, assetsenhancementNew feature or requestsearchSearch palettes, vault text search, indexing

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions