Feature request: open note and search within note using x-callback-url

It’s handy to be able to quickly open notes via a link using x-callback-urls; however, there are times when I’d like to jump to specific text in a note and its not always a header.

The x-callback-url /open-note allows you to specify a header to highlight and there’s a /search x-callback-url to search across all notes, but there isn’t an easy way to search within a note via x-callback-url.

Could we have a search parameter on /open-note that performs a search within the target note.

For example…

bear://x-callback-url/open-note?id=959...C9A3&search=Search+phrase

would open the note with the given ID and perform a search for “Search phrase” inside the note. This would offer behavior similar to text fragment links, allowing you to use a callback to jump to arbitrary text (albeit the first instance) within a Bear note.

2 Likes