View Single Post
Old 02-24-2017, 07:58 AM   #3
reinsley
Connoisseur
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 65
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperWhite
Thanks.

A line of code in the search line. In a template I suppose.

I have many searches that are recorded :

One is based on date ( to see all books, search date of entry in calibre - descending order, last book added is top of list).

One is based on read_date ( a customer column, to see already read books).

When I jump from one search to another one, the enlighted line can be anywhere. I use your solution to enlight the first line and jump to the top of list, if needed.

The idea is to avoid to hit Ctrl+Home. Or add a mysearch AND something.

search:"date:<=today"
search:"date:>2011-02-01"
search:"date:>2011-02-01" AND "CURSOR=HOME"

The first two examples are correct but cursor may be anywhere.
The last is wrong, but it's the idea.

Best regards
reinsley is offline   Reply With Quote