Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 04-10-2011, 08:32 AM   #1
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
[GUI Plugin] View Manager

This plugin allows you to easily switch between different views of your library. A view can consist of a combination of columns to be displayed in a certain order, with optional additions of a specified sort order, search restriction and/or saved search to be applied when the view is selected.

Example usages:
  • When performing certain tasks like editing metadata you want different columns visible.
  • You have multiple book types in your library, for which you want to display different columns for when you filter by that book type.
  • You want an easy way to quickly re-apply a default multi-column sort order.
  • You want to display/sort/filter your books differently while your device is connected (such as excluding books that are wishlist items and sorting those on the device at the top).

Main features of v1.3.1
  • Create as many different views as you wish
  • Views are library specific (redefine your views within each as you may have different columns)
  • Define which of your columns are visible and the display order for each view
  • Save your column widths on demand for the current view
  • Optional sort order(s) to be applied (right-click to choose ascending/descending)
  • Optional search restriction to be applied
  • Optional saved search to be applied
  • Optional keyboard shortcuts for quick access
  • Option to automatically apply either last selected view or a specifically named view at startup/when switching libraries

Special Notes:
  • Requires Calibre 0.8.57 or later.
  • If you enable the "automatically apply last view" functionality and then this will override over any values you have specified in tweaks for startup columns or restrictions.

Installation Steps:
  1. Download the attached zip file and install the plugin/restart Calibre/add to context menu or toolbar as described in the Introduction to plugins thread.

Paypal Donations:
  • If you find this or any of my other plugins useful please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development and support so any encouragement for me to continue is appreciated!

Version History:
Spoiler:

Version 1.3.1 - 24 Jul 2014
Compatibility for upcoming calibre 2.0


Version 1.3.0 - 22 Jun 2012
Now requires calibre 0.8.57
Store views in the calibre database rather than a json file, to allow reuse from different computers (not simultaneously!)
Add a support option to the "Other" tab allowing viewing the plugin data stored in the database
No longer support upgrading from plugin versions older than 1.2.0

Version 1.2.1 - 11 Sep 2011
When switching libraries, ensure no issues with old menu items causing a crash

Version 1.2.0 - 11 Sep 2011
Upgrade to support the centralised keyboard shortcut management in Calibre
When opening the configuration dialog, default to the last selected view

Version 1.1.2 - 16 Jul 2011
Fix config error introduced with 1.1.1

Version 1.1.1 - 16 Jul 2011
Fix error issue for first time users

Version 1.1.0 - 11 Jul 2011
Add ability to store column widths as part of the view information

Version 1.0.6 - 15 Jun 2011
Indicate the last selected view with a checkbox in the menu

Version 1.0.5 - 23 Apr 2011
Fix bug of not always remembering the last applied view when restarting/switching libraries
Enhance configuration options to allow specifying a view to apply at startup
Ensure any auto applying of views is a per library setting

Version 1.0.4 - 14 Apr 2011
Fix bug of applying a blank saved search not working

Version 1.0.3 - 12 Apr 2011
Fix bug of plugin not working for first time users from 1.0.2
Add text to config dialog advising of behaviour if enable automatic apply view

Version 1.0.2 - 11 Apr 2011
Offer configuration option to apply last selected view at startup or switching libraries
Change configuration file format to offer more flexibility

Version 1.0.1 - 10 Apr 2011
Fix bug of key error when creating new views

Version 1.0 - 10 Feb 2011
Initial release of View Manager plugin
Attached Thumbnails
Click image for larger version

Name:	Screenshot_1_Toolbar.png
Views:	576
Size:	9.6 KB
ID:	69740   Click image for larger version

Name:	Screenshot_2_Configuration.png
Views:	904
Size:	34.2 KB
ID:	69741  
Attached Files
File Type: zip View Manager.zip (26.7 KB, 1163 views)

Last edited by kovidgoyal; 07-23-2014 at 11:04 PM. Reason: v1.3.0 Released
kiwidude is offline   Reply With Quote
Old 04-10-2011, 09:50 AM   #2
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,346
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Kiwidude:

I get the following error when creating a new view, I have to close and restart the customize plugin in order for the columns to be selected:

Click image for larger version

Name:	View Manager.jpg
Views:	233
Size:	14.6 KB
ID:	69744

And thank you for this, I am going to love using this one.
nynaevelan is offline   Reply With Quote
 
Enthusiast
Old 04-10-2011, 10:12 AM   #3
theducks
Grand Sorcerer
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: 14,430
Karma: 5560777
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I noticed the same effect XP SP3

1st start: No anything in any box.
Pulldown, to showed the word 'Default', Set. Error message.
Closed , restarted PI (default), now has Calibre show only field name Title.
Configured (default), now works as expected.
theducks is online now   Reply With Quote
Old 04-10-2011, 10:21 AM   #4
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.1 Released

Thanks guys and apologies for the clanger. I had the idea of adding saved searches/restrictions to the plugin just before I was going to release it and clearly forgot to re-test everything. I did warn it was a bit hot off the press
kiwidude is offline   Reply With Quote
Old 04-10-2011, 03:50 PM   #5
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,346
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Kiwidude:

This is not a major thing, but is it possible for Calibre to remember the active View Manager view on a restart?

Nyn
nynaevelan is offline   Reply With Quote
Old 04-10-2011, 05:53 PM   #6
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Nyn - I've been experimenting with this. The answer is yes and no from my look at it. I can get it to restore the columns and sort from your last used view for a specific library, both when you startup and when you switch libraries.

However it does not appear to be possible from the plugin to specify a search or search restriction. They seem to get cleared at a point after the plugin has initialization_complete invoked. I will see if Kovid has any suggestions. Without that ability the "only" thing you would be gaining is the ability to have different sort orders per library (and being able to specify them in a nicer way than the tweak).
kiwidude is offline   Reply With Quote
Old 04-10-2011, 06:24 PM   #7
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,346
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Quote:
Originally Posted by kiwidude View Post
@Nyn - I've been experimenting with this. The answer is yes and no from my look at it. I can get it to restore the columns and sort from your last used view for a specific library, both when you startup and when you switch libraries.
Great, this would be nice if Calibre could maintain the last view.

Quote:
Originally Posted by kiwidude View Post
However it does not appear to be possible from the plugin to specify a search or search restriction. They seem to get cleared at a point after the plugin has initialization_complete invoked. I will see if Kovid has any suggestions. Without that ability the "only" thing you would be gaining is the ability to have different sort orders per library (and being able to specify them in a nicer way than the tweak).
I'm not sure I understand you, are you saying it loses the restriction within the same session or when trying to restart Calibre?
nynaevelan is offline   Reply With Quote
Old 04-10-2011, 06:37 PM   #8
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Quote:
Originally Posted by nynaevelan View Post
I'm not sure I understand you, are you saying it loses the restriction within the same session or when trying to restart Calibre?
Both - when switching libraries and when restarting Calibre, if I try from the plugin to specify a search or search restriction at the last point possible from my plugin the search is still getting cleared. I'm chasing up about it in the dev forums, hopefully we will figure something out - I've surprised Kovid which usually means it's my fault
kiwidude is offline   Reply With Quote
Old 04-11-2011, 06:30 AM   #9
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.2 Released

Changes in this release:
  • Offer configuration option to apply last selected view at startup or switching libraries
  • Change configuration file format to offer more flexibility

The automatic applying of the last selected view is turned off by default. Until Calibre 0.7.55 is released which has a fix, it has the following limitation. When switching libraries, only the columns and sort order specified in the last used view will be applied. Any search restriction or saved search for that view are ignored. This limitation does not apply when you startup Calibre.

Once Calibre 0.7.55 is released the functionality will work fully as expected without further upgrading the plugin.
kiwidude is offline   Reply With Quote
Old 04-11-2011, 08:45 AM   #10
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,346
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Thank you so much for the plugin and for the update.
nynaevelan is offline   Reply With Quote
Old 04-11-2011, 09:09 AM   #11
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,346
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Kiwidude:

I am having trouble switching from a view that uses a restriction and one that doesn't. If I go from a view without a restriction to one with one, it switches fine but if I go from a view with a restriction to one without one, it will not update and add all the books into the view. Are you seeing this on your setup?
nynaevelan is offline   Reply With Quote
Old 04-11-2011, 09:45 AM   #12
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Nyn - If you go from a view with a restiction to one without, I would expect that you must set a restriction of "blank" on the one without and tick the "apply restriction" for it, to force the previous restriction to be removed.

I did it this way because if a user manually set a restriction, then wanted to change columns (using a view that had no restriction set) I didn't want it "always" cleared unless they explicitly did so as I described above.

Or are you experiencing something else?
kiwidude is offline   Reply With Quote
Old 04-11-2011, 10:17 AM   #13
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,346
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
Quote:
Originally Posted by kiwidude View Post
@Nyn - If you go from a view with a restiction to one without, I would expect that you must set a restriction of "blank" on the one without and tick the "apply restriction" for it, to force the previous restriction to be removed.

I did it this way because if a user manually set a restriction, then wanted to change columns (using a view that had no restriction set) I didn't want it "always" cleared unless they explicitly did so as I described above.

Or are you experiencing something else?

Nope that's it, thanks for the pointer, I will do that to clear the restriction. Of course if I wanted to be REALLY lazy I could create a restriction that included everything to be used for that view.
nynaevelan is offline   Reply With Quote
Old 04-12-2011, 01:57 PM   #14
jesscat
Zealot
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 125
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini, iPad 2, Kindle 3
I'm in desperate need of help - can you tell me what I'm doing wrong? I go to "customize plugin," click the green "+", which puts "Default" in the "Select View to Customize" field. I left Default as the name for now, checked boxes in "Columns in View" on the left, didn't touch any of the "Sort Order" boxes for now, applied a search restriction (and checked the box), then added a shortcut ("Ctrl+1") and clicked OK.

But nothing happened. Ctrl+1 does nothing, and when I go back into Customize, there's nothing there - the dropdown menu in Select View is empty; my Default view doesn't appear to have been saved.

I know I must be doing something wrong and I feel like an idiot - what step am I missing?
jesscat is offline   Reply With Quote
Old 04-12-2011, 02:12 PM   #15
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Not an idiot at all - you found a cunning flaw somehow. I'll push a fix when I figure out what broke
kiwidude is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Generate Cover kiwidude Plugins 489 08-15-2014 09:39 AM
[GUI Plugin] Goodreads Sync kiwidude Plugins 658 08-07-2014 04:58 PM
[GUI Plugin] Open With kiwidude Plugins 228 07-31-2014 01:06 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 06:47 PM.


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