[REQ] Include %COMMANDER_PATH% when installing plugins

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
astrotzky
Junior Member
Junior Member
Posts: 48
Joined: 2006-09-18, 10:37 UTC

[REQ] Include %COMMANDER_PATH% when installing plugins

Post 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).
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

2astrotzky
You might want something like this is your wincmd.ini

Code: Select all

[Configuration]
PluginBaseDir=%COMMANDER_PATH%\plugins
TC for Linux please!
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

roentgen wrote:2astrotzky
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.
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post 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).
TC for Linux please!
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post 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.
astrotzky
Junior Member
Junior Member
Posts: 48
Joined: 2006-09-18, 10:37 UTC

Post 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 :D
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post 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%\..\
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post 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 :D
Support 100%.
Most (more than 90%) of plugins are inside TC directory (normally).

What for to place they in other location? :shock:
Yes, I can. But for what reason?



Best wishes,
My Best Wishes,

Eugen
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post 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 :D
Support 100%.
Most (more than 90%) of plugins are inside TC directory (normally).

What for to place they in other location? :shock:
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 ;)
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

2m^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. :D
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,
Last edited by eugensyl on 2007-02-27, 21:48 UTC, edited 1 time in total.
My Best Wishes,

Eugen
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I agree, checkbox looks like the best option.
Post Reply