External editor for TC config files

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

External editor for TC config files

Post by *StatusQuo »

With Config / Change Config Files Directly you can comfortably call the TC settings files into an editor.
But the use of notepad.exe seems to be hardcoded here (?).
I have set an external editor in TC and even assigned the extension INI to be opened by it.
But TC still calls notepad.exe to edit its config files.

Suggestion:
IMO it would be better to load them to the user-configured external editor instead (if present),
to use its syntax highlighting, multiple files in one window, etc.

If the configured entry for external editor is invalid (file not found) notepad could be used instead.

Workaround I use right now:
I've configured an entry in dir menu to open the files with the external editor.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2StatusQuo

Support+

I also have an own menu entry to open the INIs in my favorite editor, or use the UTC editors. But an option like...

Code: Select all

ConfigChangeIniFilesExternalEditor=[0|1]
...that would use the defined F4-editor when cm_ConfigChangeIniFiles is invoked would indeed be nice.

Not vital of course, but a useful little addition IMO. So at least some users (2 so far :wink: ) won't need custom menu entries for that anymore.
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: External editor for TC config files

Post by *wanderer »

StatusQuo wrote:Suggestion:
IMO it would be better to load them to the user-configured external editor instead (if present)
Yup, this has been requested again and i fully support it.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Re: External editor for TC config files

Post by *m^2 »

wanderer wrote:
StatusQuo wrote:Suggestion:
IMO it would be better to load them to the user-configured external editor instead (if present)
Yup, this has been requested again and i fully support it.
I said before, but: support+=2;
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

Post by *Stance »

StatusQuo wrote:I have set an external editor in TC and even assigned the extension INI to be opened by it.
The TC config file can have another extension:
http://www.ghisler.ch/board/viewtopic.php?p=63488#63488
StatusQuo wrote:But TC still calls notepad.exe to edit its config files.
The reason is: User can use a HEX-Editor or something else in F4, unsuitable to edit INI -files.
StatusQuo wrote:Suggestion:
IMO it would be better to load them to the user-configured external editor instead (if present),
to use its syntax highlighting, multiple files in one window, etc.
My support for this request, especially tabbed editors could be very useful for this task !
StatusQuo wrote:Workaround I use right now:
I've configured an entry in dir menu to open the files with the external editor.
So did I, in v7 a em_command to open the current config file for every instance.
Put the path to your editor and use "%commander_ini%" as parameter in the command -field. (See Code)
StatusQuo wrote:But the use of notepad.exe seems to be hardcoded here (?).

Code: Select all

Command: %WINDIR%\notepad.exe %commander_ini%
The environment variable for to edit the Wcx_ftp.ini is still missing:
TC 6.55 and %Commander_INI%
[REQ] %MAIN_INI% and %FTP_INI% for locating TC's INI files
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

Stance wrote:Put the path to your editor and use "%commander_ini%" as parameter in the command -field. (See Code)

Code: Select all

Command: %WINDIR%\notepad.exe %commander_ini%
Great, thanks. This way it gets as flexible as the menu command should be.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hi, For edit the wcx_ftp.ini file with your favorite editor:

Code: Select all

[em_ftp_cfg]
Menu=Edit FTP settings...
Cmd=notepad.exe
Param=wcx_ftp.ini
Path=%COMMANDER_INI%\..
Put in Cmd=<your editor>
I can read English, but... I write like Tarzan. (sorry)
Post Reply