01-14-2011, 11:26 AM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
customise the view option in main toolbar
apologies if asked already but search of forum was not useful.
rather than the drop down menu on the view button in main toolbar, I'd like dedicated buttons for view epub, view mobi. oth with kb shortcuts. is that on anyone's to-do list ? |
01-14-2011, 04:59 PM | #2 | |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
If that is not sufficient - e.g. you want a keyboard shortcut dedicated to opening each format without clicking the mouse then you could do this by writing a gui plugin. Unfortunately if you want each format to be it's own button on the toolbar then you would have to write each one as it's own plugin which would lead to madness . You could do one as a single dropdown button (like the Add button) pretty easily and configure the keyboard shortcuts for that menu. |
|
Advert | |
|
01-14-2011, 05:08 PM | #3 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Just one further thing on the Alt-V trick - there is a bug (in my version of Calibre at least, which is 0.7.37). If you do it on a book with no formats you get a nasty error dialog. If you hit V instead you get a message telling you the book has no formats which you would expect.
Tracker is down so I can't create an issue for it - when it is up again I will do so but this is the sort of thing that if Kovid spots this post first will magically fix itself. |
01-15-2011, 02:35 AM | #4 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
actually, just dedicated keyboard shortcuts would be fine for me - is that easier to do ?
i see that I can do it all without mouse already - alt V, arrow keys, enter - but somthing like alt-v-m to view mobi would be slicker |
01-15-2011, 03:22 AM | #5 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
Advert | |
|
01-15-2011, 03:28 AM | #6 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
ok - i have that plug in installed already, ( for its open with sigil option ) but I will need help with the configuration & syntax
i'd like 3 key combos for view epub & view mobi ( as most of the 2 key combos are already taken ) |
01-15-2011, 03:45 AM | #7 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Code:
_('Ctrl+Shift+1') |
|
01-15-2011, 03:50 AM | #8 | |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Just setup a configuration line in tweaks for each format you want to open with a shortcut and get it to execute the ebook-viewer.exe located within your program files\calibre2 folder (assuming you are on Windows). For instance add a line like this in there to open EPUB with an Alt+Shift+E shortcut: ('EPUB (Calibre)', 'EPUB', 'C:\\Program Files\\Calibre2\\ebook-viewer.exe', None, 'library.png', 'Alt+Shift+E') Alternatively you could wait a week and there will be a new version of that "Open with" plugin with a gui configuration dialog instead, which should make it a little bit easier to configure. You will have to "redo" any custom configuration when you install it anyway, the price of progress |
|
01-15-2011, 08:26 AM | #9 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thansk - so combining info fromt he last 2 posts - I should add
'EPUB (Calibre)', 'EPUB', 'C:\\Program Files\\Calibre2\\ebook-viewer.exe', None, 'library.png', 'Alt+V+E' or does the 2nd keystroke have to be a "special "key like shift or ctrl i see that the other tweak lines in that section of calibre preferences are enclosed in [ ] - so is that also needed ? maybe I should wait a week & try setting up all my preferences in the new version |
01-15-2011, 10:38 AM | #10 | |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
[('EPUB (Calibre)', .... )] For multiple menu items, just add a comma between each () set i.e. [('EPUB (Sigil)', ....), ('EPUB (Calibre)', ...)] In terms of the keyboard shortcut - I believe you will get in trouble trying to do a key sequence involving Alt+V because it is already used by Calibre as I mentioned above. Multi-key sequences cannot have a single key sequence in conflict as you would have there. Assuming you did find a key combination that is not in use to use as a "multi-key" sequence, I believe the syntax is to comma separate the keys - e.g. 'Alt+1,E' for pressing Alt+1 then E. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion: A "view newly added books" option | Daemon | Calibre | 5 | 08-23-2010 04:56 AM |
For those who might like to customise firmware - check this out | jusmee | Astak EZReader | 0 | 02-05-2010 06:50 PM |
LrfAppender: IE toolbar similar to "Toolbar for Librie" | mumurik | LRF | 1 | 10-13-2009 04:01 AM |
LrfAppender: IE toolbar similar to "Toolbar for Librie" | mumurik | Sony Reader Dev Corner | 1 | 10-06-2009 03:33 AM |
Customise Buttons | PieOPah | Sony Reader | 6 | 11-21-2008 06:45 PM |