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 06-30-2026, 01:35 PM   #1
p0lrb3ar
Member
p0lrb3ar began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2025
Device: Kindle
[GUI Plugin] User interface action' - Embed Metadata Shortcut

Pretty simple plugin, adds a keyboard shortcut for:
  • Embed Metadata >> Embed metadata into book files

There wasn't one available before, now there is.


Edit:

I am NOT referring to the other Embed option which there WAS a keyboard shortcut for:
  • Embed Metadata >> Embed metadata into FILES OF A SPECIFIC FORMAT from selected books
Attached Files
File Type: zip calibre_embed_metadata_shortcut_plugin.zip (3.0 KB, 8 views)

Last edited by p0lrb3ar; 06-30-2026 at 06:36 PM.
p0lrb3ar is offline   Reply With Quote
Old 06-30-2026, 02:41 PM   #2
p0lrb3ar
Member
p0lrb3ar began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2025
Device: Kindle
Just realized I misnamed the thread. Hoping a moderator can prepend the [Keyboard Shortcut] in front of the thread name. Thanks
p0lrb3ar is offline   Reply With Quote
Old 06-30-2026, 04:28 PM   #3
theducks
Well trained by Cats
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: 31,850
Karma: 64181416
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
done
theducks is offline   Reply With Quote
Old 06-30-2026, 04:32 PM   #4
p0lrb3ar
Member
p0lrb3ar began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2025
Device: Kindle
Quote:
Originally Posted by theducks View Post
done
p0lrb3ar is offline   Reply With Quote
Old 06-30-2026, 05:59 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,727
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by p0lrb3ar View Post
. . .

There wasn't one available before, now there is.
But there is, and always has been:

Click image for larger version

Name:	Screenshot 2026-07-01 075303.jpg
Views:	20
Size:	195.7 KB
ID:	224148

@theducks - it's a 'User interface action' (GUI) plugin, no such thing as a 'Keyboard Shortcut' plugin.

Click image for larger version

Name:	Screenshot 2026-07-01 074809.jpg
Views:	11
Size:	130.6 KB
ID:	224147

BR
BetterRed is offline   Reply With Quote
Old 06-30-2026, 06:08 PM   #6
p0lrb3ar
Member
p0lrb3ar began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2025
Device: Kindle
That shortcut forces you to pick a book format, which is annoying! Mine does this one, which there was NOT a shortcut for.
Attached Thumbnails
Click image for larger version

Name:	FY.png
Views:	16
Size:	14.5 KB
ID:	224149  
p0lrb3ar is offline   Reply With Quote
Old 06-30-2026, 08:14 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,727
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If there's more than one format which ones does it update?

Did you intend that it be added to the existing Embed Metadata toolbar/menu action, or be a separate action?

IMO it should be one or the other, but not both

BR
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-07-01 095352.jpg
Views:	11
Size:	143.6 KB
ID:	224150   Click image for larger version

Name:	Screenshot 2026-07-01 095643.jpg
Views:	11
Size:	27.1 KB
ID:	224151   Click image for larger version

Name:	Screenshot 2026-07-01 100742.jpg
Views:	13
Size:	166.7 KB
ID:	224152  
BetterRed is offline   Reply With Quote
Old 06-30-2026, 09:25 PM   #8
theducks
Well trained by Cats
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: 31,850
Karma: 64181416
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BetterRed View Post
But there is, and always has been:

Attachment 224148

@theducks - it's a 'User interface action' (GUI) plugin, no such thing as a 'Keyboard Shortcut' plugin.

Attachment 224147

BR
changed
(I did as requested without checking)
theducks is offline   Reply With Quote
Old 06-30-2026, 09:46 PM   #9
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: 46,355
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...3f870dfd1f943e
kovidgoyal is offline   Reply With Quote
Old 06-30-2026, 10:17 PM   #10
p0lrb3ar
Member
p0lrb3ar began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2025
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
If there's more than one format which ones does it update?

Did you intend that it be added to the existing Embed Metadata toolbar/menu action, or be a separate action?

IMO it should be one or the other, but not both

BR
No, it is allowing me run the existing Embed command that I prefer to run with a keyboard shortcut. Embedding metadata regardless of type.

If you don't like or understand what I did here, then just don't use it. But, If you have a list of ebpub, mobi, and pdf try both commands so you understand the difference.
p0lrb3ar is offline   Reply With Quote
Old 06-30-2026, 10:19 PM   #11
p0lrb3ar
Member
p0lrb3ar began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Oct 2025
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
I agree, I should have submitted a branch commit, but I just needed to address it quickly for my project, and hadn't looked at the codebase thoroughly enough to realize it was such a simple change.

What Kovid did is enable the shortcut for the Embed option that I am using. Guessing it will be available in the next release.

In src/calibre/gui2/actions/embed.py Kovid changed line 20:

From:
Code:
 action_spec = (_('Embed metadata'), 'modified.png', _('Embed metadata into book files'), None)
To:
Code:
 action_spec = (_('Embed metadata'), 'modified.png', _('Embed metadata into book files'), ())
The issue is, I failed to fully understand Calibre's InterfaceAction method where the fourth action_spec value controls shortcut registration.

Here's a breakdown of those values.

- Value-----Behavior
- None-----No entry in shortcut editor, not user assignable, what was assigned
- () --------Registered, but no default key assigned, user assignable, what Kovid changed
- 'Ctrl-E'---Registered with a default key combo, user changeable

Thank you for making that change Kovid!

Last edited by p0lrb3ar; Yesterday at 06:30 PM. Reason: Informative Update
p0lrb3ar is offline   Reply With Quote
Reply

Tags
calibre, keyboard shortcut, plugin

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Action Chains capink Plugins 1587 06-07-2026 06:09 PM
[GUI Plugin] Embed Comic Metadata dickloraine Plugins 116 11-02-2025 07:01 AM
is it possible create plugin embed a panel into the main GUI? hlhp Development 1 10-20-2022 04:31 AM
Writing an interface action plugin kiwidude Plugins 21 11-11-2010 04:11 PM
A Brief History of the GUI (Graphical User Interface) Stuart Young Deals and Resources (No Self-Promotion or Affiliate Links) 0 09-18-2006 06:12 AM


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


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