Hidden blocks: list-row preview line and multi-line block search #896

Open
opened 2026-11-03 12:26:26 +00:00 by kayg · 0 comments
Owner

Follow-up from the #887 re-review (P3-2), left out of #887 on purpose.

  1. The list row preview (meta.rs snippet) does not skip hidden blocks: if the first body line is hidden, its words become the row preview.
  2. line_is_hidden works per line (search.rs), so a hidden multi-line paragraph, or the children of a hidden list item, stay searchable. Only the line with the ^id marker is dropped.

Wanted: the preview uses the first visible line; a hidden block hides its whole block (paragraph lines and list children) from search. Tests: preview with a hidden first line; multi-line paragraph and nested list child. Perf: search and list p95 flat on a perf VM.

Follow-up from the #887 re-review (P3-2), left out of #887 on purpose. 1. The list row preview (`meta.rs` `snippet`) does not skip hidden blocks: if the first body line is hidden, its words become the row preview. 2. `line_is_hidden` works per line (`search.rs`), so a hidden multi-line paragraph, or the children of a hidden list item, stay searchable. Only the line with the `^id` marker is dropped. Wanted: the preview uses the first visible line; a hidden block hides its whole block (paragraph lines and list children) from search. Tests: preview with a hidden first line; multi-line paragraph and nested list child. Perf: search and list p95 flat on a perf VM.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#896
No description provided.