Commit Graph

2 Commits

Author SHA1 Message Date
perf3ct
e8f08bcdfe feat(jump_to): don't show content context in results, go faster 🚄 2025-08-20 19:46:49 +00:00
perf3ct
843be0da22 feat: update "jump to" dialog to use better search results, and separate renderer for "quick search" and "jump to"
- Add shared search result renderer for consistent snippet display
- Display content and attribute snippets in Quick Search and Jump To
dialog
- Fix crash when encountering orphaned notes without paths
- Add minimal CSS for snippet highlighting

This provides a better search experience by showing snippets of matching
content directly in search results, helping users identify the right
note
without opening it.

fix: Always show content snippets in search results for better context

- Modified extractContentSnippet to always return a snippet from the
beginning of the note when search tokens don't match the content
- Modified extractAttributeSnippet to show first few attributes when no
match is found
- This ensures Jump To dialog and Quick Search always provide context
via content snippets, even when searching by tags/attributes
- Helps users identify the right note regardless of what matched
(content, tags, or attributes)

asdf
2025-08-19 23:57:38 +00:00