Page 1 of 1
Compare Contents Edit Mode persistency
Posted: 2006-11-27, 12:14 UTC
by SanskritFritz
Compare contents window does not remember the Edit Mode setting. I use only this mode, so pressing Alt-M everytime is annoying, writing an AHK script is also annoying...
Or, am I wrong, is there an ini setting for this?
Posted: 2006-11-27, 20:21 UTC
by ghisler(Author)
This is for security reasons, so you don't modify compared files by mistake. You can easily activate it with F6.
Posted: 2006-11-27, 20:59 UTC
by Flint
ghisler(Author) wrote:You can easily activate it with F6.
Wow! And such a feature remained absolutely undocumented!

Posted: 2006-11-27, 21:34 UTC
by ghisler(Author)
It's actually the same shortcut as in lister to show/hide the cursor.
Posted: 2006-11-27, 22:34 UTC
by Flint
ghisler(Author)
Yes, I noticed. It makes it easier to remember but does not make it easier to guess its very existence. It should definitely be mentioned in help.
Posted: 2006-11-27, 22:49 UTC
by wanderer
ghisler(Author) wrote:It's actually the same shortcut as in lister to show/hide the cursor.
F6 seems to do nothing in lister. Should it?
Posted: 2006-11-27, 23:02 UTC
by Hacker
It (de)activates the cursor.
Roman
Posted: 2006-11-27, 23:03 UTC
by Hacker
[mod]Moved to TC 7 beta discussion forum.
Hacker (Moderator)[/mod]
Posted: 2006-11-29, 15:52 UTC
by ghisler(Author)
I will add it to the help.
Posted: 2006-11-29, 16:19 UTC
by SanskritFritz
This is for security reasons, so you don't modify compared files by mistake.
Hmm, I reckon you will not be willing to change this, so I will have to write an AHK script for that
PS. Apart from the fact that I find this reasoning ridiculous... TC prompts me for save on change, so I will be able to determine that i mistakenly

edited the file.
PS 2: here is the script for those interested, simply put it into a Timer subroutine:
Code: Select all
; Enable Edit Mode in TC Compare Contents window
if WinActive( "ahk_class TFileCompForm" )
{
ControlGet bEnabled, Enabled,, Copy -&>
if (not bEnabled)
Send {F6}
}