08-25-2018, 11:56 PM | #1 |
Fanatic
Posts: 513
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Snippet and Metadata
Dear Kovid,
Is it possible to insert metadata using snippet? Sometimes, I'd like to change the Jacket or to insert Goodreads link at the end of the file so that I can quickly go there to rate and comment, before I forget. Now I only use $1 and $2 to jump around. Maybe I have missed some good functions. |
08-26-2018, 12:00 AM | #2 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, snippets do not have access to any data about the book. They only know about the text in their templates. Someday I will add a more general macro system to the editor for which it would be possible to define your own arbitrary python code to do things. But not for a while
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Code snippet misses line numbers and messes indentation up | dom9 | Conversion | 3 | 10-08-2017 11:09 PM |
Pre-formatted code snippet renders badly | CBSA | Editor | 19 | 02-25-2017 12:47 PM |
Snippet Mania | Thom* | Editor | 2 | 01-27-2017 09:45 AM |
Regarding using metadata objects in identify method of metadata download plugin api | aprekates | Development | 1 | 07-06-2014 03:35 AM |
What is the little snippet in the front of a paperback called? | bfollowell | Writers' Corner | 9 | 06-24-2011 04:09 AM |