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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2012, 09:39 AM   #1
pepperleaf
Junior Member
pepperleaf began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: HTC Evo 4G, Kindle Fire
Question Keyboard shortcut - Swap Author and Title

I've tried looking for a way to set a keyboard shortcut to swap the author and title of a book without having to go into the edit metadata dialogue box, but it doesn't seem to be possible.

Is there a way to write it into the program, maybe?
pepperleaf is offline   Reply With Quote
Old 10-20-2012, 01:02 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can develop a plugin to do it, but there is no way in the main program. If you want to swap the title and author for a large number of books you can use the bulk metadata edit function to do it in one step.
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 10-20-2012, 10:08 PM   #3
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,130
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, PE, Note 8
Quote:
Originally Posted by pepperleaf View Post
I've tried looking for a way to set a keyboard shortcut to swap the author and title of a book without having to go into the edit metadata dialogue box, but it doesn't seem to be possible.

Is there a way to write it into the program, maybe?
The 'Quality Check' plugin by kiwidude has a swap FN LN function.
Could likely add a shortcut to it.
Gunnerp245 is offline   Reply With Quote
Old 10-21-2012, 02:37 AM   #4
pepperleaf
Junior Member
pepperleaf began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: HTC Evo 4G, Kindle Fire
Gunnerp245, I'm actually looking for a shortcut to quickly swap the title and the author. I was hoping someone had already figured out a way to do it.

Thanks for the reply, Kovid. Can you tell me what function is called when I hit that little green arrow button? Sorry, I only have very basic Java programming skills.
pepperleaf is offline   Reply With Quote
Old 10-21-2012, 02:44 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I suggest that rather than developing a plugin for this simply go through the list of books you want to correct Ctrl clicking each one, then hit the E key and bulk swap the title and author.

But if you want to develop a plugin, the swapping code requires loading the title and author from the db and swapping them. I suggest looking through the code of the Quality Check plugin to learn how to do that. There is no single function you can call.
kovidgoyal is offline   Reply With Quote
Old 10-21-2012, 02:50 AM   #6
pepperleaf
Junior Member
pepperleaf began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2010
Device: HTC Evo 4G, Kindle Fire
Thanks for the tip. It sounds kind of daunting. I think I'll just take your advice.
pepperleaf is offline   Reply With Quote
Old 10-21-2012, 09:06 AM   #7
Gunnerp245
Gadget Freak
Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.Gunnerp245 ought to be getting tired of karma fortunes by now.
 
Gunnerp245's Avatar
 
Posts: 1,130
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, PE, Note 8
Quote:
Originally Posted by pepperleaf View Post
Gunnerp245, I'm actually looking for a shortcut to quickly swap the title and the author. I was hoping someone had already figured out a way to do it.

Thanks for the reply, Kovid. Can you tell me what function is called when I hit that little green arrow button? Sorry, I only have very basic Java programming skills.
Opps, didn't read correctly. The [GUI Plugin] Temp Marker plugin does similiar to what Kovid suggested.
Spoiler:
This plugin makes use of a feature introduced in Calibre 0.7.49 of allowing books to be temporarily marked using some criteria and then displayed with a search of marked:true. This feature is extensively used by the Quality Check plugin.

This plugin exposes the same functionality for end-users, to allow you to arbitrarily select books from your library under some criteria, without the "permanence" of applying tags or custom column values. For instance you may be selecting individual books that need editing or you wish to save to disk/send to device, but not actually perform the action straight away. Via a right-click menu or toolbar button you can add books to the marked list, and display as a search result at any time.

The marked list is cleared either by you selecting the Clear all marked menu item or as soon as Calibre is restarted, whichever comes first.
Gunnerp245 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
How to swap title with identifiers:isbn tizboy Library Management 1 06-06-2012 09:48 PM
Replace/customize keyboard shortcut? eosrose Calibre 2 11-10-2011 08:17 PM
Problem with Swap Author & Title. scotmad Calibre 4 02-10-2011 03:24 PM
Keyboard Shortcut Issue in viewer bigpallooka Calibre 2 10-21-2010 02:32 AM
Add keyboard shortcut? Chris Edwards Amazon Kindle 0 09-25-2010 02:58 PM


All times are GMT -4. The time now is 02:04 PM.


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