Separate ListerModes setting for QuickView

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Separate ListerModes setting for QuickView

Post by *petermad »

This post https://ghisler.ch/board/viewtopic.php?p=443797#p443797 made me think of this:

It would be nice with a separate ListerModesQuick section in wincmd,ini to set "Define view method by file type" for QuickView independently from Listers main window.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Separate ListerModes setting for QuickView

Post by *Usher »

I would rather allow to fully separate Lister and QuickView settings. If anything is defined in QuickView section, it should be used instead of Lister settings.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Separate ListerModes setting for QuickView

Post by *ghisler(Author) »

You can open a standalone lister with F3 by calling totalcmd.exe/totalcmd64.exe with /S=L parameter and /i=other.ini for separate settings.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Separate ListerModes setting for QuickView

Post by *petermad »

You can open a standalone lister
How would that help for having separate settings in QuickView ?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: Separate ListerModes setting for QuickView

Post by *JOUBE »

petermad wrote: 2023-10-29, 11:57 UTC
You can open a standalone lister
How would that help for having separate settings in QuickView ?
ghisler(Author) wrote: 2023-10-29, 07:50 UTC ... /i=other.ini for separate settings.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Separate ListerModes setting for QuickView

Post by *petermad »

2JOUBE
.. /i=other.ini for separate settings.
I understand the concept of running Lister as a separate instance with an alternative ini-file, but if i press Ctrl+Q to open QuickView, then QuickView uses the settings of the currently running TC - it will not use the settings in other.ini. That also applies to QuickView in a separate window invoked with Ctrl+Shift+Q.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Separate ListerModes setting for QuickView

Post by *hi5 »

We have cm_SrcQuickInternalOnly already, wouldn't a cm_SrcQuickIni=other.ini (and/or cm_SrcListerIni=other.ini) make sense as well?
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Separate ListerModes setting for QuickView

Post by *petermad »

hi5 wrote: 2023-10-29, 18:36 UTC We have cm_SrcQuickInternalOnly already, wouldn't a cm_SrcQuickIni=other.ini (and/or cm_SrcListerIni=other.ini) make sense as well?
Aren't you imxing up internal commands and ini-file parameters here ?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Separate ListerModes setting for QuickView

Post by *ghisler(Author) »

I understand the concept of running Lister as a separate instance with an alternative ini-file, but if i press Ctrl+Q to open QuickView, then QuickView uses the settings of the currently running TC
Yes, you would use the internal TC settings for Ctrl+Q, and call an external lister instead of the internal one with F3.
You can configure an external lister for F3 via Configuration - Options - Edit/View. There you can change the hotkeys and set the command line for the external lister.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Separate ListerModes setting for QuickView

Post by *petermad »

call an external lister instead of the internal one with F3.
That is just a workaround, and it makes all lister windows opened with F3 separate instances, so they will not close when I close TC, that might be wanted or not.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Separate ListerModes setting for QuickView

Post by *hi5 »

petermad wrote: 2023-10-29, 23:45 UTCAren't you imxing up internal commands and ini-file parameters here ?
Am I? My point was (is) that you have a command for lets call it "no config" (cm_SrcQuickInternalOnly) so at the moment you have two "options":

1. cm_SrcQuickInternalOnly
2. using the ini settings

So my suggestion was to introduce a command to allow the loading of a specific lister ini, other internal commands allow for say loading of files (loadlist) as well. Not saying my suggested names make any sense. cm_LoadListerIni could be a better name. Anyway, whatever the method, an option to pass on settings to lister without jumping through hoops or changing the default behaviour is something to be considered. But will probably be low priority.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Separate ListerModes setting for QuickView

Post by *petermad »

2hi5

Then we could just as well allow the current 7 commands: cm_*QuickView and cm_*QuickInternalOnly and cm_SeparateQuickView to use a parameter for which ini file to use - so a command like: cm_LeftQuickView /I="other.ini" should open QuickView in the left side using the settings in other.ini - that could be good too - but leaves more up to the user in configuring the command.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Separate ListerModes setting for QuickView

Post by *hi5 »

2petermad: That is a much better idea indeed, keeps the number of commands down. More isn't always better.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Separate ListerModes setting for QuickView

Post by *petermad »

My Idea, though, was to add a shortcut key O (for Options) to Lister to open the "Configure Lister" dialog. If O was pressed in Lister, then changes to the settings should be saved in [Lister] and [ListerModes] in wincmd.ini just as they are now.

But when opening the "Configure Lister" dialog by pressing O in the QuickView window (or by some other way of opening the "Configure Lister" dialog from the QuickView window), then at the first run TC should copy the settings from [Lister] and [ListerModes] to [ListerQuick] and [ListerModesQuick], and all changes should thereafter be saved in these two sections of wincmd.ini when opening the dialog from the QuickView window.

The title of the "Configure Lister" dialog could be changed to "Configure Lister for QuickView" to let the user know that the settings are independent of the settings made in "Configure Lister".

In this way the Configuration dialog can be re-used, for both settings.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply