View Single Post
Old 07-05-2025, 09:11 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,789
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ReaderOfBooks1 View Post
Hey all,

I've been playing around with the experimental "Annotations" import feature. Great to see it added, it seems to be working so far.

What I am trying to accomplish is to figure out how to search for books where the annotations have been imported. Example syntax:

Chapter 8: 5
Highlight
Chapter progress: 65.62%
Highlight:


I am trying to use a regex to find this, but am struggling. I'm either getting false positives or the regex returns nothing. I am aware it is most likely an error on my part, and would appreciate any help from the community.

Works with false positives: comment:"Highlight" and comment:"~Highlight\s"
Example that doesn't work: comment:"~^Highlight\s$(?m)"

What I am trying to get based on the above syntax that doesn't seem to work (pseudocode): comment"[use regex][match start of line][match Highlight][match trailing whitespace][match end of line][use mode to match start and end of line]"
AFAIK Annotations are not stored in the 'comments' table, they're stored in the 'annotations' table which can be viewed in the Annotations browser which has a Find feature:

Click image for larger version

Name:	Screenshot 2025-07-06 105455.jpg
Views:	30
Size:	114.1 KB
ID:	216742

You need to add Browse annotations to a toolbar/menu or use a keyboard shortcut (default is 'B') to pop that dialogue box.

And, AFAICT 'annotations' are not available to the Book list search feature:

Click image for larger version

Name:	Screenshot 2025-07-06 110136.jpg
Views:	27
Size:	127.0 KB
ID:	216743

BR

Last edited by BetterRed; 07-05-2025 at 09:14 PM. Reason: wrong image
BetterRed is offline   Reply With Quote