Editor for main menu file

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Editor for main menu file

Post by *jonathanpoulin »

Hi,

In the Configuration dialog of TC, in Language section, when I click on the Edit button (to edit the main menu file), it opens the file in Notepad.

Is it possible to change that behaviour to have Notepad++ as main menu editor instead?

Of course, I know that I just need to open it manually within Notepad++. I was just wondering.

In Configuration -> Operation -> Edit/View, I have set Notepad++ as both external viewer and editor but this is not impacting what I explain above.
Thanks,
Jonathan Poulin
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Editor for main menu file

Post by *Stefan2 »

jonathanpoulin wrote: 2024-07-06, 17:46 UTC
Is it possible to change that behaviour to have Notepad++ as main menu editor instead?

No, it isn't


More via google >> editor ini site:ghisler.ch >>> https://www.ghisler.ch/board/viewtopic.php?t=72137





 
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Re: Editor for main menu file

Post by *jonathanpoulin »

Stefan2 wrote: 2024-07-06, 18:47 UTC
jonathanpoulin wrote: 2024-07-06, 17:46 UTC
Is it possible to change that behaviour to have Notepad++ as main menu editor instead?

No, it isn't


More via google >> editor ini site:ghisler.ch >>> https://www.ghisler.ch/board/viewtopic.php?t=72137





 
Ok, thanks. That's not really a problem!
Thanks,
Jonathan Poulin
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6954
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Editor for main menu file

Post by *Horst.Epp »

I have set my preferred Editor (PSpad) to replace Notepad
using the tool Nodepad Replacer.
Works prefect, and of course also for TC's hard-coded usage of Notepad.
https://www.binaryfortress.com/NotepadReplacer/Download/
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Editor for main menu file

Post by *ghisler(Author) »

Why not just add a button or start menu entry with command
%commander_ini%
instead? This would open the wincmd.ini with the default editor.
or
"c:\Program files\path\notepad++.exe" "%commander_ini%"
Author of Total Commander
https://www.ghisler.com
User avatar
beb
Power Member
Power Member
Posts: 580
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Editor for main menu file

Post by *beb »

ghisler(Author) wrote: 2024-07-08, 13:27 UTC ...This would open the wincmd.ini with the default editor...
2ghisler(Author)

jonathanpoulin here implies editing a .mnu file, not the wincmd.ini one.
And this is a design flaw of the Total Commander which not only lacks a configurable option for a user-preferred editor for those purposes, but it even ignores a user-defined default editor for the .mnu files set for the system as the whole (e.g. I set AkelPad to open .mnu files in the system, the Total Commander still uses notepad in the dialog described by jonathanpoulin).

NB Meanwhile, unlike the above user case, the Total Commander has the semi-hidden option to separately configure editor within the Multi-rename Tool dialog.

2jonathanpoulin

Option A.
Manually create a user button or a user command that will apparently tie your editor with your .mnu file, e.g.:

Code: Select all

TOTALCMD#BAR#DATA
%commander_path%\Plugins\app\Npp\notepad++.exe "%commander_path%\Language\WCMD.MNU"

%commander_path%\Plugins\app\Npp\notepad++.exe
WCMD.MNU notepad++
%commander_path%\Plugins\app\
0
-1
Option B.
B.1. Associate the .mnu files with your editor (e.g. right-click on a .mnu file - Properties - Edit with ... [Change...], and opt for the notepad++ there.
B.2. Then you can manually create a user button or a user command for which your .mnu filename would be enough.
or
In this case, you can just drag and drop a .mnu file to the Total Commander toolbar, obtaining a button like this:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Language\WCMD.MNU

%commander_path%\Plugins\app\Npp\notepad++.exe
WCMD.MNU
%COMMANDER_PATH%\Language\
0
-1
Note. The notepad++.exe path and the WCMD.MNU filename there in your case would differ and should reflect the actual ones.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Re: Editor for main menu file

Post by *jonathanpoulin »

beb wrote: 2024-07-09, 04:12 UTC NB Meanwhile, unlike the above user case, the Total Commander has the semi-hidden option to separately configure editor within the Multi-rename Tool dialog.
Good to know, I did not know the config MultiRenameEdit. Thanks!
Thanks,
Jonathan Poulin
User avatar
jonathanpoulin
Member
Member
Posts: 131
Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:

Re: Editor for main menu file

Post by *jonathanpoulin »

beb wrote: 2024-07-09, 04:12 UTC Option A.
Manually create a user button or a user command that will apparently tie your editor with your .mnu file, e.g.:

Code: Select all

TOTALCMD#BAR#DATA
%commander_path%\Plugins\app\Npp\notepad++.exe "%commander_path%\Language\WCMD.MNU"

%commander_path%\Plugins\app\Npp\notepad++.exe
WCMD.MNU notepad++
%commander_path%\Plugins\app\
0
-1
Option B.
B.1. Associate the .mnu files with your editor (e.g. right-click on a .mnu file - Properties - Edit with ... [Change...], and opt for the notepad++ there.
B.2. Then you can manually create a user button or a user command for which your .mnu filename would be enough.
or
In this case, you can just drag and drop a .mnu file to the Total Commander toolbar, obtaining a button like this:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Language\WCMD.MNU

%commander_path%\Plugins\app\Npp\notepad++.exe
WCMD.MNU
%COMMANDER_PATH%\Language\
0
-1
Note. The notepad++.exe path and the WCMD.MNU filename there in your case would differ and should reflect the actual ones.
Thanks for that! I appreciate it.

I would have been able to get there by myself. My point was in fact to denote that the Edit button in Configuration UI is always using Notepad. This is hard-coded. So, in the next release, maybe this can be fixed somehow.
Thanks,
Jonathan Poulin
Post Reply