![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2014
Device: android nexus 7
|
keyboard shortcut for TOC in viewer?
Hello, and excuse me for needing help with such a silly question. I have a Calibre installed on my linux. I wanna press F9 to toggle the TOC (table of contents) like in my evince, instead of having to click the button on the left of the interface.
Can I configure my Calibre to accept this shortcut? Or is there at least a different shortcut? When exploring a book it is very useful to toggle the TOC, especially as I have a rotated monitor and there isn't enough width for both the TOC and the text. Thank you very much!!! Long live the Calibre and her creator!!! |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Click the preferences button in the viewer
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2014
Device: android nexus 7
|
Thank you for such prompt reply Kovid! But I don't see an existing "TOC" action in the keyboard shortcuts tab... and it doesn't seem I can add new shortcuts to that list, only modify existing ones... Or I'm missing something?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Show/Hide the Table of Contents
And note that you need to be clicking the preferences button in the viewer not in the main calibre window. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2014
Device: android nexus 7
|
Aha, again the distros-behind-upstream problem, created by the "calibre requires bleeding edge libs" problem... pyqt >= 5.3.1, seriously, the calibre can't work without that?!?
Maybe I'll try to backport just the Show/Hide feature. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just use the official calibre binary from http://calibre-ebook.com/download_linux, then you dont have to worry about your distro's inability to keep up.
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2014
Device: android nexus 7
|
Quote:
In any case I added the required lines to ./src/calibre/gui2/viewer/keys.py for the time being -- easiest backport ever!!! Except nothing happens when I press ctrl-T. It even allows me to redefine the shortcut, e.g. to F9, and still nothing happens. |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2014
Device: android nexus 7
|
Whew, finally got it!!! I had to add a line to main.py as well.
I am calibre hacker now!!! ![]() ![]() |
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Alternatively, you can simply install the binary release Kovid suggested. It contains all dependencies bundled locally
![]() Or get yourself a decent rolling release distro like ArchLinux*. ![]() * -- reminds me I need to go bug them about not stripping modified libs in favor of system copies... |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Keyboard Shortcut: Rename | CRB_Clive | General Discussions | 1 | 04-01-2014 01:32 PM |
Ebook-viewer loses settings unless via shortcut | Vortex | Calibre | 14 | 03-24-2014 06:37 AM |
TOC Shortcut? | runtmms | Amazon Kindle | 12 | 11-14-2010 05:36 PM |
Keyboard Shortcut Issue in viewer | bigpallooka | Calibre | 2 | 10-21-2010 01:32 AM |
Add keyboard shortcut? | Chris Edwards | Amazon Kindle | 0 | 09-25-2010 01:58 PM |