Feture Req: Specify Editor for 'Edit ini files directly'

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Feture Req: Specify Editor for 'Edit ini files directly'

Post by *robinsiebler »

It would be nice if I could choose which editor was launched for editing the INI files.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Old request…

Post by *Clo »

2robinsiebler

:) Hello !

• Indeed, I agree. AFAIR, this has been already requested "unsuccessfully" ages ago,
I mean that we got no Author's feed-back… :|

• Please, give a glance HERE.
- Users and I proposed also to use at least the stated editor for F4 (it was in another thread, I guess).
- Always using tricks and workarounds sucks for a so simple and justified feature. Might be built-in, of course…
Aside : A related annoyance never fixed-up is to get always both <wincmd.ini> and <wcx_ftp.ini>, while the most times one needs only the first (or seldom only the second).
- This requires a second command, there are only five entries in the menu… ;)

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

There is a workaround that I use for years.

Create a stertermenu entry which calls your preferred editor with the ini files you want to edit. ( I launch wincmd.ini and wcx_ftp.ini, totalcmd.inc, default.bar and a few other bar-files)

Change your menu:
POPUP "C&onfiguration"
MENUITEM "&Options...", cm_config
MENUITEM "Change B&utton Bar...", cm_ButtonConfig
MENUITEM "&Change Settings Files Directly...", 701
MENUITEM "&Save Position", cm_configSavepos
MENUITEM "Sa&ve Settings", 580
END_POPUP
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2robinsiebler
What editor are you using? Most editors come with a notepad.exe utility, which, when replaced with the windows original, in turn call your editor (TextPad, PSPad, ConText, Crimson just to name a few).
I switched to Linux, bye and thanks for all the fish!
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

if you like download this little program and extract inside windows folder after renaming windows notepad.exe to any other name

it is useful with many other programs that shell notepad.exe
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Or if you just want a notepad replacement and not one of the "big editors", just download a tiny editor of your choice, rename it to notepad.exe and overwrite the original. I mean, TC is not the only program which calls Notepad directly, so the use of another command in TC would only fix this annoyance in TC.

One of the first things I do after Windows installations is to replace Notepad with metapad. notepad.exe gets renamed to notepadsucks.exe which is very easy to remember in case I should ever need it (for testing purposes).

Icfu
This account is for sale
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Or you can use choice editor

2icfu
You don't have to keep NotepadSucks.exe for testing.
Its just a big EDIT, nothing more, so you can "test" in any other edit in Windows :)
Habemus majkam!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Nope, I mean special "Notepad" testing, like hacking resources for fun, changing menus and stuff like that. ;)

Icfu
This account is for sale
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

You all seem to have forgotten the new environmental variable %Commander_INI%. If it's written to the start menu, the default system editor will be called for wincmd.ini in use.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Cool, but this thread is about editing ALL INI files. Besides wincmd.ini there is wcx_ftp.ini.

Icfu
This account is for sale
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Well, that's up to Ghisler to implement one more env.var...
He was asked to somewhere but wasn't convinced.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Hm.... let me think about that...

ITs hard question....


.... very hard.....
....... oh no... my head is going to explode....


... ar gh h..... should I........... create........ a n o... the ..r... variabl......e.......





BOOM!
Habemus majkam!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Oops, does that mean that TC 7 will not be released? Ah well, I am sure you will code a file manager in AHK soon, right? With BIG FAT WONDERFUL icons! ;)

Icfu
This account is for sale
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

Post by *Stance »

Code: Select all

em_OpenIniWithMyEditor
Command:<path to your favorite Editor.exe> %commander_ini%
Parameter:
Post Reply