Skip to content

FR: Breadcrumbs-based filters in Bases #735

Description

@vadych

s your feature request related to a problem? Please describe.

There is currently no way in Bases to filter all records that are descendants of a given node in the Breadcrumbs hierarchy (e.g., all notes that are descendants of Python — Python.Basics, Python.Basics.Variables, Python.DataStructures.Lists, etc., regardless of depth). The only way to achieve this today is to manually write a long, nested chain of formulas replicating the up-course/lessons traversal at every level, which is slow and doesn't scale well with deep hierarchies.

Describe the solution you'd like

I'd like a filter for Bases that works on top of the existing Breadcrumbs index — similar to the type: tree view, but usable as a filter condition in Bases rather than only as a standalone codeblock view. The filter should return all descendant nodes of a specified record (e.g., Python) along given fields (fields: [lessons] / up-course), with an option to specify the search depth (e.g., only 1 level down, or all levels with no limit — similar to merge-fields: true in the tree codeblock).

Describe alternatives you've considered

The only alternative considered so far is long nested chains of formulas that manually repeat the hierarchy traversal at each level; this approach is slow and requires rewriting whenever the hierarchy depth changes.

Additional context

For reference, see the hierarchy example from the "Course and Curriculum Builder" guide in the Breadcrumbs documentation, where a Python course is structured as Python → Python.Basics/Python.DataStructures → lessons using Dendron Notes and the up-course/lessons fields. The desired functionality is close to the existing type: tree codeblock with merge-fields: true, but should work as a filter inside Bases so that, for example, "all descendants of Python" can be selected, rather than building a separate tree view.

Metadata

Metadata

Labels

FRNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions