cm_Edit

English support forum

Moderators: white, Hacker, petermad, Stefan2

pd
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-08, 13:26 UTC

cm_Edit

Post by *pd »

cm_Edit commande uses Notpad to edit selected files.
Does anyone knows if it is possible to change that into Textpad.
Thanks,
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Re: cm_Edit

Post by *Raymond »

Main menu: Configuration - Edit/View - Editor
Then you can set your favorite editor.
pd
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-08, 13:26 UTC

Post by *pd »

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.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2pd
How to change that to Textpad.
Hello,

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.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

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.
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.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
pd
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-08, 13:26 UTC

Post by *pd »

c:\SPSS\Spss_12.jnl cm_Edit

this is in my comm line
I am sorry but I don't know how to use %N%P parameters
Can you please show.
Thanks!
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

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.
Grüße/Regards,
Wilhelm
pd
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-08, 13:26 UTC

Post by *pd »

It was realy simple. I just remove cm_Edit and associate *.jnl extention with texpad and it works.
Thanks for tips!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

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!
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

pd wrote:c:\SPSS\Spss_12.jnl cm_Edit
To your knowledge: the internal cm_??? commands have always to stay alone in the command line.

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
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-12, 15:26 UTC, edited 1 time in total.
pd
Junior Member
Junior Member
Posts: 5
Joined: 2004-09-08, 13:26 UTC

Post by *pd »

Previous command worked with notpad, I did not and will not change my current command. It works just fine.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

norfie wrote:
To your knowledge: the internal cm_??? commands have always to stay alone in the command line.
To your knowledge: there are exceptions of this rule.
Which??
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
Does it work for you? My experiences: cm_Edit doesn't support any parameters but it opens ever the file under cursor.[/quote]

:oops: True, it does not. I have edited my example. I use textpad, too. But I use the programm name instead of cm_edit and forgot about it.Sorry. :oops:

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
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2pd
Sorry for giving a wrong solution. It's cm_List which supports a filename as parameter not cm_Edit.
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-12, 15:23 UTC, edited 1 time in total.
Post Reply