change editor association for shift+F4

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
spuri
Junior Member
Junior Member
Posts: 18
Joined: 2005-02-10, 13:39 UTC

change editor association for shift+F4

Post by *spuri »

I would like to set up

F3 - notepad2
F4 - notepad++
shift+F4 - notepad2 - or other for shift+f4

how is it possible? or should be able in next version?
Last edited by spuri on 2008-07-14, 14:03 UTC, edited 1 time in total.
User avatar
ehab
Senior Member
Senior Member
Posts: 271
Joined: 2007-10-29, 07:41 UTC
Location: Libya

Post by *ehab »

if nothing worked out fo you then check out :

f4menu , im using it : )

http://www.shanny.com.cn/f4menu/

hope this helps
#181344 Personal licence
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

F4 and Shift+F4 will work if you choose Notepad++ under:
Configuration -> Options -> Operation -> Edit/View -> "Editor for F4" group

For F3 you have to create your own user command and assign it to needed key:
1. Configuration -> Options -> Misc
2. Choose F2 and click on magnifying glass icon
3. select "usercmd.ini" on left side
4. New -> enter em_notepad2 -> OK
5. select new command on right side and click on OK
6. assign it clicking on greed icon
7. Apply or OK should do the rest
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
spuri
Junior Member
Junior Member
Posts: 18
Joined: 2005-02-10, 13:39 UTC

Post by *spuri »

i do not really like F4menu, or i dont know how to avoid f4menu, i need automatically

ehab:
I need different editor for F4 and SHIFT+F4 !!!
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2spuri
It is not possible in TC in easy way.
You will have to have external tool for creating file and loading additional editor.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
petermad
Power Member
Power Member
Posts: 14853
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2spuri

wincmd.ini:

Code: Select all

[Configuration]
Viewertype=2
Viewer=path_to_notepad2\notepad2.exe
Editor=path_to_notepad++\notepad++.exe

[Shortcuts]
S+F4=em_notepad2
usercmd.ini:

Code: Select all

[em_notepad2]
cmd=path_to_notepad2\notepad2.exe
param=%P%N
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2petermad
Is it my imagination or Shift+F4 will just load notepad2 with selected/focused file?

I thought that spuri wants to create new file first and then open it with notepad2.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
petermad
Power Member
Power Member
Posts: 14853
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Is it my imagination or Shift+F4 will just load notepad2 with selected/focused file?
No, You are right about that.
I thought that spuri wants to create new file first and then open it with notepad2.
Aha, That's what he meant by "createfile()"

That's currently not possible - I can only suggest that spuri then tries to live with:

F3 - notepad++
F4 - notepad2
shift+F4 - notepad2 - or other for createfile()

wich is possible, and doesn't even involve the use of em_ commands.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

petermad wrote:
Is it my imagination or Shift+F4 will just load notepad2 with selected/focused file?
No, You are right about that.
I thought that spuri wants to create new file first and then open it with notepad2.
Aha, That's what he meant by "createfile()"

That's currently not possible - I can only suggest that spuri then tries to live with:

F3 - notepad++
F4 - notepad2
shift+F4 - notepad2 - or other for createfile()

wich is possible, and doesn't even involve the use of em_ commands.
Wrong, it is possible.
http://ghisler.ch/board/viewtopic.php?t=17308
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

I would like to set up ...
shift+F4 - notepad2 - or other for createfile()
Extended command:

Code: Select all

[em_NewFileNotepad]
cmd=<Change by your path>\new_file.bat
param=?newfile.txt
Content of new_file.bat:

Code: Select all

nulll >> %1
call c:\Totalcmd\Utiles\Notepad2\Notepad2.exe %1
Change the path to real location.

Code: Select all

[Shortcuts]
S+F4=em_NewFileNotepad
For F3 and F4, explained above.
I can read English, but... I write like Tarzan. (sorry)
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2m^2
Just to point out my second post in this thread...
fenix_productions wrote:You will have to have external tool for creating file and loading additional editor.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
petermad
Power Member
Power Member
Posts: 14853
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2m^2
As fenix_productions points out - what you suggest involves external tools - which spuri doesn't seem to want.


2Sombra
Nice solution - nothing like som good ol' batch programming ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
spuri
Junior Member
Junior Member
Posts: 18
Joined: 2005-02-10, 13:39 UTC

easy solution

Post by *spuri »

I could find an easy solution

editor - notepad++
viewer - notepad2

configuration - misc - redefine hotkeys ->
F3 -> cm_Edit
F4 -> cm_List

I just replaced F3 and F4 ;)

finally

F3 - notepad2
F4 - notepad++
shift+F4 - notepad2
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2spuri
The simplest solutions are hardest to find.
I am impressed ;)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Post Reply