Annoyance: pressing F4 edit instead of F5 copy
Moderators: white, Hacker, petermad, Stefan2
Annoyance: pressing F4 edit instead of F5 copy
I often find myself using small notebooks keyboards and pressing F4 key when I meant F5. Total Commander should warn if before editing a file bigger than 1mb to avoid long unwanted delays and editor crashing. (ie: want to copy an ISO file). Maybe also if several files are selected.
Re: Annoyance: pressing F4 edit instead of F5 copy
Please only if optional - I don't want this unnecessary extra warning and extra click for usual operation. And 1 mb - negligibly small size
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
- ghisler(Author)
- Site Admin
- Posts: 48118
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Annoyance: pressing F4 edit instead of F5 copy
You could use one of these tools to choose an editor on F4:
http://totalcmd.net/plugring/tcer.html
http://totalcmd.net/plugring/ChooseEditor.html
http://totalcmd.net/plugring/ChoiceEditor_patched.html
http://totalcmd.net/plugring/F4Menu.html
http://totalcmd.net/plugring/tcer.html
http://totalcmd.net/plugring/ChooseEditor.html
http://totalcmd.net/plugring/ChoiceEditor_patched.html
http://totalcmd.net/plugring/F4Menu.html
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Annoyance: pressing F4 edit instead of F5 copy
Also you can assign --f.e. Win+F4--
to the F4-command cm_edit
and F4 to command cm_About
Configuration > Options... > Misc.
Re: Annoyance: pressing F4 edit instead of F5 copy
isidro,
Or one can use a simple AutoHotkey script assigned as an editor, like this:
HTH
Roman
Or one can use a simple AutoHotkey script assigned as an editor, like this:
Code: Select all
#NoTrayIcon
FileSizeLimit := 1000000 ; in bytes
Editor := "C:\Program Files\Notepad2\Notepad2.exe" ; needs to accept the file name as its command line parameter
FileGetSize, FileSize, %1%
If (FileSize <= FileSizeLimit)
Run, "%Editor%" "%1%"
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Annoyance: pressing F4 edit instead of F5 copy
I don't want to change current key usage that I'm used to. Just a warning before opening editor for a big file. trigger size could be an option. Usually one never edits a >10mB file.
Obviously this option should be disabled by default so as not to change current behaviour for everyone.
*Hacker » solution is close of what I want, although I could want specifically to edit a bigger file, so it's not a perfect solution. (maybe script could ask?).
Obviously this option should be disabled by default so as not to change current behaviour for everyone.
*Hacker » solution is close of what I want, although I could want specifically to edit a bigger file, so it's not a perfect solution. (maybe script could ask?).
Re: Annoyance: pressing F4 edit instead of F5 copy
isidro,
HTH
Roman
Code: Select all
#NoTrayIcon
FileSizeLimit := 1000000 ; in bytes
Editor := "C:\Program Files\Notepad2\Notepad2.exe" ; needs to accept the file name as its command line parameter
FileGetSize, FileSize, %1%
If (FileSize > FileSizeLimit)
{
MsgBox, 1, File size limit exceeded, The file size limit has been exceeded:`nLimit: %FileSizeLimit% bytes`nFile size: %FileSize% bytes`nEdit file anyways?
IfMsgBox, Cancel
ExitApp
}
Run, "%Editor%" "%1%"
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Annoyance: pressing F4 edit instead of F5 copy
Thanks Hacker, I would prefer that option within TC, without installing other tools.
Re: Annoyance: pressing F4 edit instead of F5 copy
Just an hint :
Please note that you just need the "AutoHotkey.exe" and the script file.
AutoHotkey is freeware, portable (no install need), small and often used to automate TC and windowsTM also.
Feel free to search the forum or google for "autohotkey" and "ahk" to find out more about.