Setup shortcut key to open specific lister plugin
Moderators: Hacker, petermad, Stefan2, white
Setup shortcut key to open specific lister plugin
Hello,
Here is the scenario, I have two lister plugins for pdf files: SumatraPDF and slister, as I want different settings for viewing different documents. Right now, which plugin is used is determined by the order of them. After start the plugin, I can switch though plugin menu.
I'm wondering if there is a way I can setup keyboard shortcuts to call the plugin I want to use?
Thanks
Here is the scenario, I have two lister plugins for pdf files: SumatraPDF and slister, as I want different settings for viewing different documents. Right now, which plugin is used is determined by the order of them. After start the plugin, I can switch though plugin menu.
I'm wondering if there is a way I can setup keyboard shortcuts to call the plugin I want to use?
Thanks
Re: Setup shortcut key to open specific lister plugin
Configuration -> Misc. -> Redefine hotkeys:
Command: cm_List
Parameter: /Pslister
and Redefine hotkeys:
Command: cm_List
Parameter: /Psumatrapdf
Command: cm_List
Parameter: /Pslister
and Redefine hotkeys:
Command: cm_List
Parameter: /Psumatrapdf
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Setup shortcut key to open specific lister plugin
2petermad
Is it documented somewhere that /P can be used instead of /S=L:P ?
Is it documented somewhere that /P can be used instead of /S=L:P ?
Overquoting is evil! 👎
Re: Setup shortcut key to open specific lister plugin
Fla$her wrote: 2024-05-24, 15:39 UTC 2petermad
Is it documented somewhere that /P can be used instead of /S=L:P ?
[Help - Dialog box: Choose command] wrote:cm_List,
cm_ListOnly,
cm_ListInternalOnly
Specifies the name of the file to be opened in the Lister. Supports the same options as the command line parameter /S=L:parameters. Must be passed before the name, and start with a slash / (without the part S=L: of the command line parameter), e.g.
cm_List /T1V file_name for text mode, variable width font
Re: Setup shortcut key to open specific lister plugin
Yeah. I have seen this text. But only now I noticed the phrase "without the part S=L:".
I think that it is worth giving an example below to make it clearer.
I think that it is worth giving an example below to make it clearer.
Overquoting is evil! 👎
Re: Setup shortcut key to open specific lister plugin
Like the one that is already there?Fla$her wrote: 2024-05-24, 19:33 UTC I think that it is worth giving an example below to make it clearer.
Re: Setup shortcut key to open specific lister plugin
Like the one that is already there?

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Setup shortcut key to open specific lister plugin
Yes, sort of. For /F and /Pname, for example.
Overquoting is evil! 👎
Re: Setup shortcut key to open specific lister plugin
Thanks a lot.petermad wrote: 2024-05-24, 13:58 UTC Configuration -> Misc. -> Redefine hotkeys:
Command: cm_List
Parameter: /Pslister
and Redefine hotkeys:
Command: cm_List
Parameter: /Psumatrapdf
It looks like I have to unset external viewer to make this work. If I set external viewer than the shortcut key will invoke external viewer. Do I have to disable external viewer (alt-F3) to make this work?
Re: Setup shortcut key to open specific lister plugin
Ahh, it looks like TC is hadrcoded to use external viewer when Alt is used together with cm_List - try using a shortcut that is not using Alt - like Ctrl+Shift+S or Win+F3It looks like I have to unset external viewer to make this work. If I set external viewer than the shortcut key will invoke external viewer. Do I have to disable external viewer (alt-F3) to make this work?
There is a workaround:
Put this code in your usercmd.ini file (located in the same dir as your wincmd.ini file - if it does not exist just make it in a text editor)
Code: Select all
[em_listSlister]
cmd=%COMMANDER_EXE% /i="%COMMANDER_INI%" /S=L:Pslister
param=%Z%P%N
[em_listSumatrapdf]
cmd=%COMMANDER_EXE% /i="%COMMANDER_INI%" /S=L:Psumatrapdf
param=%Z%P%N
Notice that Lister windows opened with those two commands will stay open when you close or restart TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Setup shortcut key to open specific lister plugin
Thank you very much. Both worked as described.