Page 1 of 1

Separate ListerModes setting for QuickView

Posted: 2023-10-28, 18:39 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-28, 21:26 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-29, 07:50 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-29, 11:57 UTC
by petermad
You can open a standalone lister
How would that help for having separate settings in QuickView ?

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-29, 12:06 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-29, 13:15 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-29, 18:36 UTC
by hi5
We have cm_SrcQuickInternalOnly already, wouldn't a cm_SrcQuickIni=other.ini (and/or cm_SrcListerIni=other.ini) make sense as well?

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-29, 23:45 UTC
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 ?

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-30, 08:28 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-30, 11:21 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-30, 17:08 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-30, 17:19 UTC
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.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-30, 17:21 UTC
by hi5
2petermad: That is a much better idea indeed, keeps the number of commands down. More isn't always better.

Re: Separate ListerModes setting for QuickView

Posted: 2023-10-30, 17:42 UTC
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.