![]() |
#1 |
Connoisseur
![]() 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?
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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 |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#9 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#11 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,752
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
![]() |
![]() |
![]() |
#13 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#15 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |