![]() |
#391 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,167
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Version 1.7.2
Version 1.7.2
|
![]() |
![]() |
![]() |
#392 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,523
Karma: 7086519
Join Date: Sep 2020
Device: none
|
Hi, thanks for the update.
I wanted to have Sumatra open any title by a single shortcut key on Calibre, but it seems the Open With plugin needs distinct shortcut keys for each format. I'm using Sumatra as default viewer just for CBZ and CBR formats. Is there some hack I can apply to Calibre shortcut keys, or to the plugin itself, in order to have this secondary viewer open EPUB, MOBI, AZW3 by the same key? Some way to override program behaviour of not accepting assignment of the same shortcut key to different actions? |
![]() |
![]() |
Advert | |
|
![]() |
#393 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,167
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Use the Action Chains plugin. It has and open with action based on this plugin, but it supports template language which can do what you want.
Make a chain withe single action (Open with action), and configure the action by choosing the path to desired program. After that choose the template option and enter the following template: Code:
program:
priority = 'CBZ,CBR,EPUB,MOBI,AZW3';
paths = formats_paths();
for fmt in priority:
path = select(paths, fmt);
if path
then
path;
break
fi
rof
Notes:
Last edited by capink; 09-11-2022 at 08:06 PM. |
![]() |
![]() |
![]() |
#394 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,523
Karma: 7086519
Join Date: Sep 2020
Device: none
|
|
![]() |
![]() |
![]() |
#395 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,167
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Well, Now that I think about it, I remember dadvifor (may his soul rest in peace) actually added template capability to this plugin. You should choose template option in the formats dropdown menu, and then enter the template from the post above into the args column in the open with plugin.
Last edited by capink; 09-11-2022 at 09:02 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#396 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,523
Karma: 7086519
Join Date: Sep 2020
Device: none
|
Quote:
I have just assigned 'M' as that Chain shortcut key (removed it from 'Merge')... Then, searched for title:"art of" and (#filter:"=EPUB" or #filter:"=MOBI" or #filter:"=AZW3") , to have the formats I wanted show up for testing... Then selected one book of each format, pressed 'M'... ![]() and Sumatra opened them instantly ! ![]() I think I had installed your Actions Chain Plugin before, but I uninstalled it because I couldn't see any of those dropdown menus... So i thought it had been made strictly for coders (which somehow it is, as I wouldn't be able to generate that program you wrote..) Now I realise that what was preventing me from figuring out how the PI works was that QT6 interface re-drawing thing, that happened after Calibre 6. Every dialog must be resized by the user, stretched... so one can see all the PI options and enjoy the plugin capabilities. Last edited by Comfy.n; 09-12-2022 at 08:57 PM. |
|
![]() |
![]() |
![]() |
#397 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,523
Karma: 7086519
Join Date: Sep 2020
Device: none
|
Quote:
I'm posting some screenshots, in case someone wants to implement that Chain and see how it goes. ![]() |
|
![]() |
![]() |
![]() |
#398 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Open With v1.8.0 Released
Release Notes:
https://github.com/kiwidude68/calibr...en_with-v1.8.0 |
![]() |
![]() |
![]() |
#399 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Open With v1.8.1 Released
Release Notes:
https://github.com/kiwidude68/calibr...en_with-v1.8.1 This adds a %FILENAME% token that can be used for applications that need more granular control over where the filename of the selected book/cover is inserted in the command line. It has always defaulted to being the last argument without using this token. See the Help file for more info. |
![]() |
![]() |
![]() |
#400 |
Member
![]() Posts: 14
Karma: 10
Join Date: Sep 2008
Device: Sony PRS-505
|
I would like to know if is it possible to open two selected files as parameter with the "Open with" plugin. I want to open two pdf files with "diff-pdf-win" [https://vslavik.github.io/diff-pdf/] from calibre, i know how to pass parameters, but I do not know how to indicate it has two input files. Is it possible?
|
![]() |
![]() |
![]() |
#401 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
#402 |
Member
![]() Posts: 14
Karma: 10
Join Date: Sep 2008
Device: Sony PRS-505
|
Thank you very much for the clarification. It could be a nice feature, I think a lot of people have many versions of the same book, the upper refered app could help to clean our libraries.
|
![]() |
![]() |
![]() |
#403 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Open With v1.8.2
Release Notes
https://github.com/kiwidude68/calibr...en_with-v1.8.2 |
![]() |
![]() |
![]() |
#404 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Open With v1.8.3
|
![]() |
![]() |
![]() |
#405 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Open With v1.8.4
Release Notes
https://github.com/kiwidude68/calibr...en_with-v1.8.4 This one is for the couple of users who have reported out of memory errors when trying to use this plugin to open with Adobe Acrobat. I have no clue of the real cause other than subprocess.Popen() with an arg array triggers it but constructing a single command line works. So back to the old way of launching apps. Which might break something else for some edge case but it is what it is at this point... use the built in book details pane functionality that calibre has nowadays instead... ![]() |
![]() |
![]() |
![]() |
Tags |
conversion, kepubify |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 434 | 09-30-2024 03:04 AM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
Gui confusements. | brewt | Calibre | 8 | 12-30-2008 12:16 PM |
Reference Open eBook Forum: Open eBook Publication Structure. IMP. V1.0.1 14 September 2007 | DaleDe | IMP Books | 0 | 09-14-2007 05:06 PM |
iLiad GUI for the iLiad | tribble | iRex Developer's Corner | 1 | 06-01-2007 02:29 PM |