Page 1 of 1
[REQ] Include %COMMANDER_PATH% when installing plugins
Posted: 2007-02-26, 08:40 UTC
by astrotzky
When you manually install plugins and the plugin path is in a subdirectory of the install dir for Total Commander, replace the path to Total Commander with %COMMANDER_PATH%.
For example:
I have Total Commander installed under
D:\Programs\System\TotalCmd.
When I install a plugin using the menu (Preferences -> Configuration -> Plugins), the plugin path being
d:\Programs\System\TotalCmd\PLUGINS\WFX\Fast Search Engine\FSE.wfx, I get the following line in my wincmd.ini:
Code: Select all
FSE=d:\Programs\System\TotalCmd\PLUGINS\WFX\Fast Search Engine\FSE.wfx
What I would like is:
Code: Select all
FSE=%COMMANDER_PATH%\PLUGINS\WFX\Fast Search Engine\FSE.wfx
And please, no workarounds (I know about Plugin Manager and I know I can edit wincmd.ini manually).
Posted: 2007-02-26, 11:25 UTC
by roentgen
2
astrotzky
You might want something like this is your wincmd.ini
Code: Select all
[Configuration]
PluginBaseDir=%COMMANDER_PATH%\plugins
Posted: 2007-02-26, 12:49 UTC
by m^2
roentgen wrote:2
astrotzky
You might want something like this is your wincmd.ini
Code: Select all
[Configuration]
PluginBaseDir=%COMMANDER_PATH%\plugins
Reread astrotzky's post and try to do what he's talking about. When you install something that doesn't have pluginst.inf, you get a fixed path.
Posted: 2007-02-26, 13:15 UTC
by roentgen
you get a fixed path.
True, but in such cases you may install plugins that reside somewhere else, not necessarily TC dir.
As a more general idea, TC never adds variables by its own (%programfiles%, %systemroot%, etc).
Posted: 2007-02-26, 13:23 UTC
by m^2
2roentgen:
You're right. And changing this behaviour is what astrotzky requests. And I think it would be a nice thing to have a switch. I needed plugins outside TC only a few times. And I had to switch to %COMMANDER_PATH% many, many times.
Of course when the file is on another drive, it's imossible to get there with %COMMANDER_PATH%. But a warning should be enough.
Posted: 2007-02-26, 15:48 UTC
by astrotzky
Total Commander should propose %COMMANDER_PATH% when installing plugins only when the plugin to be installed is in a subdirectory of Total Commander install dir.
Something like the following is ugly, and I don't know if it's that usefull:
Code: Select all
%COMMANDER_PATH%\..\..\Program Files\Turbo Registry\blah_blah.wfx
So I want something like:
Code: Select all
if <plugin_install_dir> contains <totalcmd_install_dir> then
use %commander_path% when saving in wincmd.ini
else
use the absolute path (this is the current behaviour)
endif
This should take about 5 minutes of programming time

Posted: 2007-02-26, 16:15 UTC
by m^2
astrotzky wrote:Total Commander should propose %COMMANDER_PATH% when installing plugins only when the plugin to be installed is in a subdirectory of Total Commander install dir.
Something like the following is ugly, and I don't know if it's that usefull:
Code: Select all
%COMMANDER_PATH%\..\..\Program Files\Turbo Registry\blah_blah.wfx
Maybe it's ugly, but sometimes useful. My TC directory structure is:
Code: Select all
TC
--bin
----TOTALCMD.EXE
----...
--cfg
--plugins
--...
--TC.exe // a starter
Unlike most I've seen with TC, this is clean, natural, not so overloaded. But I have to refer everywhere with %COMMANDER_PATH%\..\
Posted: 2007-02-26, 21:13 UTC
by eugensyl
astrotzky wrote:Total Commander should propose %COMMANDER_PATH% when installing plugins only when the plugin to be installed is in a subdirectory of Total Commander install dir.
code]
if <plugin_install_dir> contains <totalcmd_install_dir> then
use %commander_path% when saving in wincmd.ini
else
use the absolute path (this is the current behaviour)
endif
[/code]
This should take about 5 minutes of programming time

Support 100%.
Most (more than 90%) of plugins are inside TC directory (normally).
What for to place they in other location?
Yes, I can. But for what reason?
Best wishes,
Posted: 2007-02-26, 21:40 UTC
by m^2
eugensyl wrote:astrotzky wrote:Total Commander should propose %COMMANDER_PATH% when installing plugins only when the plugin to be installed is in a subdirectory of Total Commander install dir.
code]
if <plugin_install_dir> contains <totalcmd_install_dir> then
use %commander_path% when saving in wincmd.ini
else
use the absolute path (this is the current behaviour)
endif
[/code]
This should take about 5 minutes of programming time

Support 100%.
Most (more than 90%) of plugins are inside TC directory (normally).
What for to place they in other location?
Yes, I can. But for what reason?
Best wishes,
The reason? Read my prevous post

Am I the only who doesn't like to have 100 miscellanous files cramped in one directory?
And it's just another 2 minutes

Posted: 2007-02-27, 15:37 UTC
by eugensyl
2
m^2
The reason? Read my prevous post

Am I the only who doesn't like to have 100 miscellanous files cramped in one directory?
Sorry for misunderstanding.
I mean most of PLUGINS it's good to be inside of TC installed directory (%commander_path%).
It doesn't mean you can't have how many sub-directories as you wish.
You can organize how you feel like.
So, let's don't forget the first question: save relative or absolute path in wincmd.ini ?
I full support to save '%commander_path%', only for plugins Or a check box, like Plugin Manager for this option. No problem if somebody have other opinion.
But, is not a really a heavy problem.
Best wishes,
Posted: 2007-02-27, 15:46 UTC
by m^2
I agree, checkbox looks like the best option.