ivan-lednev / better-search-views

Outliner-like breadcrumb trees for search, backlinks and embedded queries
MIT License
246 stars 8 forks source link

Feature Request: have an option to include less content in the results #12

Open nhan000 opened 1 year ago

nhan000 commented 1 year ago

In the content of "Topic A" note:

# [[Topic B]]
Contents related to both topic A and B

Now if I go to "Topic B" note, in the Backlinks pane, the "Topic A" section will display the entire content below the heading # [[Topic B]], which can be very long. In this case I'd like the displayed results only show the heading and no content (or it can also be collapsed by default).

Ideally, there are 3 control levels:

If it's too much, I can live happily with "Only include the line that the search term appears". I believe that's the default search/backlinks behavior in Obsidian(?)

Related to https://github.com/ivan-lednev/better-search-views/issues/8?

skritch commented 1 year ago
Screen Shot 2023-10-05 at 1 04 03 PM Screen Shot 2023-10-05 at 1 06 09 PM

AFAICT the builtin backlink pane already has this functionality:

It'd be great if this plugin implemented both expand/collapse and "show more" buttons for search too (exactly as they appear in backlinks)—though I guess that would expand the scope a bit, since it would be overriding another UI component. Maybe a better issue for Obsidian core, or a separate plugin.