09-09-2022, 05:15 PM | #16 |
Calibre Plugins Developer
Posts: 4,641
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Just FYI I am making a few changes/fixes to this plugin, particularly as it is one that I use every day.
Thanks to @ownedbycats for that bug report above after clearing history. It is a simple bug in displaying the history in the menu which I have fixed. Several of you also reported problems with the keyboard shortcuts. I've replicated the issue. You will find the keys work fine provided you don't do anything to trigger the menu being rebuilt - like using the Favourites Menu plugin or directly opening the menu of this plugin. There seems to be a problem with the keyboard shortcut being "double registered" - so under the covers Qt goes "what is this nonsense" and reports an "Ambiguous shortcut overload". It doesn't matter what you change the shortcut keys to it will eventually get doubled up and stop working. I'm certain this worked fine a long time ago, nowadays not so much... Slightly concerning is similar code to register shortcuts was used in most of my plugins (and probably those of many others) - the create_menu_action_unique() method in common_utils.py. Still looking into exactly why it's going wrong and if it is just a bugged version that has been used here vs other plugins as the code has diverged independently over the years. I mention it here in case some of the other plugin authors recall "ahhh yeah I had that happen and I fixed it in XXX plugin"... EDIT: Ok I think I finally figured it out and yes some other plugins like ReadingList do work around it. The problem is that you have to manually call unregister_shortcut() every time you rebuild the menu. It is only a problem for plugins which have default keyboard shortcuts specified like this one does... One further addition I have also made for the next version of this plugin is an option to support having a different history per library, remembered as you switch between them. Thanks to @BetterRed for that suggestion - as recently as 2014 so I'm sure it is top of their mind, ha... Last edited by kiwidude; 09-09-2022 at 06:49 PM. |
09-09-2022, 07:36 PM | #17 |
Calibre Plugins Developer
Posts: 4,641
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.4.0 Released
Changes in this release:
|
Advert | |
|
09-09-2022, 08:00 PM | #18 |
Guru
Posts: 728
Karma: 228142
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Spanish translation just finished
|
09-09-2022, 08:49 PM | #19 | |
null operator (he/him)
Posts: 20,644
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
It's no longer an issue for me, a) because I don't do as much metadata searching, b) because CalibreSpy allows me to access multiple libraries concurrently. BR |
|
09-10-2022, 06:10 AM | #20 |
Calibre Plugins Developer
Posts: 4,641
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@dunhill - thanks very much! I did indeed get a notification from Transifex on that and some other translations too. Just initially getting all of my plugins into Transifex (and ensuring every plugin is translatable where not) is one of a number of initiatives I am working on to try to consolidate and modernise dev for my plugins. I fully expect to have to be re-releasing updates for these plugins in the coming weeks to give time for other language translations to be contributed.
@BetterRed - I am deeply hurt and shocked that you did not wait by the phone for 8 years for this feature and have forsaken me... |
Advert | |
|
09-10-2022, 07:38 AM | #21 |
want to learn what I want
Posts: 1,039
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
|
kiwidude is in tha house
|
10-16-2022, 02:52 PM | #22 |
Calibre Plugins Developer
Posts: 4,641
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Walk Search History v1.5.0 Released
Release Notes:
https://github.com/kiwidude68/calibr...history-v1.5.0 |
10-16-2022, 04:29 PM | #23 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Small bug: "Recipes & Cookbooks" renders in menu as "Recipes _Cookbooks." The search itself isn't affected. This happens when ampersands aren't escaped (doubled?).
Last edited by ownedbycats; 10-16-2022 at 04:32 PM. |
10-18-2022, 03:54 PM | #24 |
Calibre Plugins Developer
Posts: 4,641
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Walk Search History v1.5.1 Released
Release Notes:
https://github.com/kiwidude68/calibr...history-v1.5.1 Thanks to @ownedbycats for finding this one... |
10-20-2022, 01:48 AM | #25 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Is it intended behaviour for the search history to clear upon restart? This happens whether or not separate-library history is enabled.
I found this while documenting some odd behaviour with the button in the new search bar toolbar. Last edited by ownedbycats; 10-20-2022 at 02:08 AM. |
10-20-2022, 04:17 AM | #26 | |
Calibre Plugins Developer
Posts: 4,641
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Note the plugin definitely does not remember per library search history between restarts if you have that option checked. It relies on calibre's own search history available from the search dropdown - and that is not a per library thing. All the plugin can do currently is assume all that search history belongs to the current library at startup, and then subdivide fresh search queries per library while you have calibre open in the history menu. But as soon as you close calibre that subdivision information is lost and you are back to square one. Obviously it would be technically possible for the plugin to try to persist its own independent search history state. And that could be remembered as being per library. However that is more work and this was just a quick fudge |
|
10-20-2022, 05:12 AM | #27 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Running from source, yes -- I was testing the new search bar toolbar when I noticed.
I have only one library. Weirdly enough, it seems to be keeping the history now. I was changing a lot of WSH settings to get the button working so maybe that had something to do with it. |
10-20-2022, 12:59 PM | #28 | |
Grand Sorcerer
Posts: 11,765
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If it still breaks then please let me know. Some calibre code related to the ancient saved search interface was removed. It is possible that the plugin uses removed code. I did check (remember the View Manager conversation) but I might have missed something. |
|
10-20-2022, 01:50 PM | #29 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It seems to work as expected now.
Still working on identifying why the search history is getting cleared; it sometimes happens when I switch between previous search and dropdown menu and then restart, but it's tricky to get to reliably replicate. |
10-22-2022, 08:10 AM | #30 |
Calibre Plugins Developer
Posts: 4,641
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Walk Search History v1.5.2 Released
Release Notes:
https://github.com/kiwidude68/calibr...history-v1.5.2 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 433 | 04-01-2024 05:48 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
A Brief History of the GUI (Graphical User Interface) | Stuart Young | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 09-18-2006 06:12 AM |