Skip to content

Feature Request: Advanced Filtering and Logical Operators in Backlinks/Search (Logseq-style) #25

@brady77

Description

@brady77

Description

As a AS Notes licensed user coming from Logseq, I find the block-based indexing and hierarchy (chaining) in AS Notes excellent. However, the current inability to filter or query multiple entities simultaneously is a significant bottleneck for complex knowledge management. I would like to propose the following enhancements:

Dynamic Filtering within the Backlinks View

Currently, the Backlinks view is a static list of references to a single entity.

  • The Goal: Add a filter input field at the top of the Backlinks tab/panel.
  • The Functionality: Allow users to include or exclude specific tags/wikilinks from the current results.
  • Inspiration: Logseq's "Linked References" filters, which allow for "Include" (AND) and "Exclude" (NOT) logic to narrow down long lists of backlinks (ideally both Include and Exclude at the same time).

Support for Logical Operators in Global Search

The current search functionality in the sidebar/command palette seems limited to a single entity lookup.

  • The Goal: Support complex queries using logical operators directly in the search bar.
  • The Functionality:
    AND: [[topic/A]] [[topic/B]] (Show only blocks/chains containing both).
    OR: [[topic/A]] OR [[topic/B]] (Show blocks containing either).
    NOT: [[topic/A]] -[[topic/B]] (Show blocks with A, but specifically excluding those that also contain B).
  • Block-Awareness: The search should respect the indentation hierarchy (if Tag A is in a parent block and Tag B is in a child block, it should be considered a match).

Use Case:

Searching for all technical notes related to #networking AND #ssh, but excluding those marked as #linux-only.

Additional Note:

Since AS Notes already has a robust database and understands block relationships (as seen in the "Grouped" view), adding a UI layer for these queries would make it the ultimate Logseq alternative within VS Code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    TODO (Bugs)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions