Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2012, 08: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, 12: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: 45,300
Karma: 27111240
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 online now   Reply With Quote
Advert
Old 10-20-2012, 09: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,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, 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, 01: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, 01: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: 45,300
Karma: 27111240
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 online now   Reply With Quote
Advert
Old 10-21-2012, 01: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, 08: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,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, 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


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 08:48 PM
Replace/customize keyboard shortcut? eosrose Calibre 2 11-10-2011 07:17 PM
Problem with Swap Author & Title. scotmad Calibre 4 02-10-2011 02:24 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


All times are GMT -4. The time now is 11:57 AM.


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