Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-11-2019, 07:07 AM   #1
rockster
Connoisseur
rockster began at the beginning.
 
Posts: 52
Karma: 10
Join Date: Sep 2012
Device: kindle
Sort books by last opened?

Is there a way to sort the books in the library by last opened?
rockster is offline   Reply With Quote
Old 04-11-2019, 10:16 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,083
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by rockster View Post
Is there a way to sort the books in the library by last opened?
AFAIK Calibre only has 2 sorts (built in).
1) is the default {id},
2)you set in Preferences:Tweaks: # Specify columns to sort the booklist by on startup

eg sort_columns_at_startup = [('id', 0)]

Now, the view manager PI has views, but none just remember where you wuz when you shutdown
theducks is offline   Reply With Quote
Advert
Old 04-11-2019, 10:32 AM   #3
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
Would there be a way to create a column that indicates the time the book was last opened?

Or, is there a way to cause Calibre to set the modified flag each time you open a book, so that the Last Modified column could be used to show the last-opened sort?
eater is offline   Reply With Quote
Old 04-11-2019, 10:45 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,083
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Define 'opened'
The viewer has a 'recently opened' list (right click the folder icon)
The Editor ('T') has a 'recently opened' on the FILE menu

AFAIK no such beasty exists for the MDE
theducks is offline   Reply With Quote
Old 04-11-2019, 11:20 AM   #5
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
I define "opened" as: I double-clicked a title in the library and it launched a viewer window, displaying the book whose title I double-clicked. Odds are, the book was a PDF and it did not use the Calibre ebook-viewer.
eater is offline   Reply With Quote
Advert
Old 04-11-2019, 11:51 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No there isn't, but whatever viewer program you are using likely has its own list of recently opened files.
kovidgoyal is online now   Reply With Quote
Old 04-11-2019, 12:25 PM   #7
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
Thanks. Most viewers, including the Calibre one, store a list of about 10 recently opened files. That's only about 1 day's worth of reading history for me.

My example use case is: back in December, I read some useful information about chile pepper breeding, in one of the many plant genetics books in my library. I don't remember which book, or which format/viewer I read it in, so I'd like to be able to list what books I opened around that time and filter them by tag.
eater is offline   Reply With Quote
Old 04-11-2019, 01:37 PM   #8
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
I see that I could use calibredb to update a custom field with the date if I have the book's catalog ID, but I'm not sure how to trigger that automatically every time I open a book... any suggestions?
eater is offline   Reply With Quote
Old 04-11-2019, 05:12 PM   #9
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,752
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Why don't you search for 'chilli pepper' with a full search tool, Windows and MacOS have them built in, afaik they can both index PDFs, there are similar tools for Linux, such as Lucene. You would search the library folder.

On Windows you could make use of the Drop Search Results to Mark the books Windows Search finds.

BR
BetterRed is online now   Reply With Quote
Old 04-12-2019, 10:35 AM   #10
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
That search will pull up hundreds of results, since I have a lot of documents on the topic. I'm trying to narrow it down by when the document was last opened.
eater is offline   Reply With Quote
Old 04-12-2019, 06:27 PM   #11
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,752
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by eater View Post
I see that I could use calibredb to update a custom field with the date if I have the book's catalog ID, but I'm not sure how to trigger that automatically every time I open a book... any suggestions?
Write a plugin (MyViewer) that updates a custom column with current date/time and then invokes the default viewer for the file type you wanted to view.

BR
BetterRed is online now   Reply With Quote
Old 04-14-2019, 03:52 PM   #12
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
I wish I had time to sit down and learn how to write a plugin!
eater is offline   Reply With Quote
Old 04-23-2019, 02:38 PM   #13
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
OK, well, I ain't no kind of coder, but this paste-up job seems to work.

https://github.com/eater/datestampan...er/__init__.py

Is there a way to make it trigger when I double-click a book in the library, which is my standard way of viewing books?

Thanks!
eater is offline   Reply With Quote
Old 04-23-2019, 07:16 PM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well you can monkey patch the _view_calibre_books function in iactions['View'] with a wrapper, something like this:

Code:
orig_func = iactions['View']._view_calibre_books

def myviewfunc(self, ids):
   orig_func(ids)
   # code to update database with timestamp

iactions['View']._view_calibre_books = myviewfunc
kovidgoyal is online now   Reply With Quote
Old 04-24-2019, 05:23 PM   #15
eater
Enthusiast
eater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it iseater knows what time it is
 
Posts: 49
Karma: 2002
Join Date: Feb 2018
Device: linux desktop
Thanks. That makes sense and I played around with it a little but I'm not quite sure where/how to implement that part. Can you give me one more hint?
eater is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not all opened books are being read Wyndham Marvin 4 09-27-2013 05:24 AM
Touch Can it show recently opened books? askyn Barnes & Noble NOOK 4 12-02-2012 03:14 PM
902 Needed Last Opened Books Application rupeshbhurke PocketBook 7 11-30-2012 12:29 PM
Change default page opening for books never opened? pidgeon92 Calibre 6 04-12-2010 06:28 PM
Feature request: show recently opened e-books yegorich Calibre 1 01-18-2010 11:35 AM


All times are GMT -4. The time now is 07:30 PM.


MobileRead.com is a privately owned, operated and funded community.