cm_Edit
Moderators: Hacker, petermad, Stefan2, white
Re: cm_Edit
Main menu: Configuration - Edit/View - Editor
Then you can set your favorite editor.
Then you can set your favorite editor.
2pd
Command: cm_edit
Parameters: %P%N (or another file of your choice)
This will use the editor set in configuration.
If you have set the filename only as command Total Commander will not use the editor set in configuration but instead the program which is associated with text files which is notepad by default.
You may try to set the parameters to %L. Some editors support it directly. Otherwise you'll have to use Lst2mlt or a similar tool.
Hello,How to change that to Textpad.
Command: cm_edit
Parameters: %P%N (or another file of your choice)
This will use the editor set in configuration.
If you have set the filename only as command Total Commander will not use the editor set in configuration but instead the program which is associated with text files which is notepad by default.
You may try to set the parameters to %L. Some editors support it directly. Otherwise you'll have to use Lst2mlt or a similar tool.
Last edited by Lefteous on 2004-09-08, 22:22 UTC, edited 3 times in total.
It's only the description that say's 'cm_edit (notepad)'. If you've changed the editor as lefteous has mentioned, there would be Textpad opened instead. If you would like to see instead 'cm_edit (Edit(Textpad))' you could alter your totalcmd.inc in the program directory.pd wrote:I know that option. But in toolbar I have an icon which opens one jurnal file (txt) and I would like to open it with Textpad. In command option there is cm_Edit (Notpad). How to change that to Textpad.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- Wilhelm M.
- Power Member
- Posts: 1049
- Joined: 2003-06-05, 10:45 UTC
Hi!
It's simple. Right click on the button, select "Change" and in the context menu insert %N%P into the "parameters" field. Thats it.
BTW: your command line looks a bit strange to me. Is this really pointing to a valid executable? Maybe I just don't know the program, of course.
It's simple. Right click on the button, select "Change" and in the context menu insert %N%P into the "parameters" field. Thats it.
BTW: your command line looks a bit strange to me. Is this really pointing to a valid executable? Maybe I just don't know the program, of course.
Grüße/Regards,
Wilhelm
Wilhelm
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
Just a quick sidenote:
www.textpad.com wrote: Txplink4: "This little program can be renamed to NOTEPAD.EXE, or any other program that you would like to substitute TextPad for. It just runs TextPad 4 (TEXTPAD.EXE) instead."
I switched to Linux, bye and thanks for all the fish!
To your knowledge: the internal cm_??? commands have always to stay alone in the command line.pd wrote:c:\SPSS\Spss_12.jnl cm_Edit
Additional parameters has to be set in the Parameter line. So if you would need a button to edit just this Spss_12.jnl you'll have to make a button this way:
Code: Select all
Command: c:\Program\textpad\textpad.exe
Parameters: c:\SPSS\spss_12.jnl
Start path:
Icon file: [select an Icon file you like]
Tooltip: [Here you can insert a text that is displayed if the mouse is over this button. If it's empty the command line is displayed (if this option is enabled)]
Last edited by Sheepdog on 2004-09-09, 09:20 UTC, edited 1 time in total.
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Which??norfie wrote:To your knowledge: there are exceptions of this rule.To your knowledge: the internal cm_??? commands have always to stay alone in the command line.
Does it work for you? My experiences: cm_Edit doesn't support any parameters but it opens ever the file under cursor.[/quote]Sheepdog wrote:Additional parameters has to be set in the Parameter line. So if you would need a button to edit just this Spss_12.jnl you'll have to make a button this way:Code: Select all
Command: cm_edit Parameters: c:\SPSS\spss_12.jnl


sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams