“Hot” Attribute header…

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

“Hot” Attribute header…

Post by *Clo »

:) Hello !

• When one clicks on the Attribute “tab” in the sorting header, one gets of course an error beep and a blinking selection…

• Instead, I would like an option making the tab “hot” then able to open the Change Attribute
dialogue for the marked item in the list.

• The Search returned nothing about this, but indeed I can't read the German threads…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I would like to see the Attribute header tab used for something meaningfull too - but I would prefer that clicking the Attribute header would show the file list unsorted (cm_SrcUnsorted).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hello Claude :)

Also I think that such behaviour in attribute header could be improved.
• Instead, I would like an option making the tab “hot” then able to open the Change Attribute
dialogue for the marked item in the list.
This sound good, but IMHO, I would prefer activate this feature by double click in attrib. header. My reason: Attributes and date header are close together, some times this could activate the popup window for "change attributes" by an error of precision with the mouse.
but I would prefer that clicking the Attribute header would show the file list unsorted (cm_SrcUnsorted).
Hello Petermad,
Hmmm.... I dislike a bit with this. IMHO Pressing in attrib. header is not related to unsorted method. And this feature can be done pressing Shift and mouse in active header order.
Maybe in a future, TC will support the feature for sort by attribute. No very useful in a local drive, but useful in a FTP connection.

An opinion more :)
Best Regards.
I can read English, but... I write like Tarzan. (sorry)
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

1 or 2, no matter

Post by *Clo »

2Sombra

:) Hello J. M. !

• Nothing against a double-click…
- Anyway, using an INI entry, one could be able to choose the wished behaviour, for instance :
HotAttribTab=Flag
0 : No change, alarm beep (default)
1 : Opens "Change attributes" dialogue via 2-click
2 : Shows the lists "Unsorted"
3 : Shows the list sorted "by attribute"
:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
TieFighter
Member
Member
Posts: 190
Joined: 2007-12-03, 12:58 UTC
Location: France

Post by *TieFighter »

Hello,

I like the Clo proposal seems reconciled many advantages and gives to the Attribute header tab a utility.
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hello,

I said it, because IMHO click in headers columns should be reserved to define the order of the columns. Imagine an unreal scenario:
  • Some day... Click in header is set to change attributes or unsorted method.
  • Time later: the feature sort by attributes is added.
  • How should be implemented?
Predefined actions in TC are very difficult to change. For example:
The refresh action (F2) is implemented many time ago and there are many discussions in forum about a change for assign F2 to rename.
OR... I read time ago about the shorcut for MRT which was changed to the current CTRL+M

Of course, the solution given by Clo in his last post, would satisfy to the most of users.

You can try the next dirty ahk script for view how this feature could be.

Code: Select all

; Double click in header columns open the change attributes window 
; Detect double click code: http://www.autohotkey.com/forum/viewtopic.php?p=62779#62779

#IfWinActive ahk_class TTOTAL_CMD
~LButton::

	Loop {
		LButtonDown := GetKeyState("LButton","P")
		If (!LButtonDown)
			 Break
	}

	WaitTime:=DllCall( "GetDoubleClickTime" )/1000
	KeyWait, LButton, D T%WaitTime%
	MouseGetPos, , , , sControl

  If (errorlevel = 0) AND (sControl = "THeaderClick2" OR sControl = "THeaderClick1")
		GoSub, OnDoubleClick
  Return

OnDoubleClick:

  	PostMessage 1075, 502,,, ahk_class TTOTAL_CMD
  	
Return
Sorry to the ahk gurus in the forum. I know that it could be done better.
I can read English, but... I write like Tarzan. (sorry)
Post Reply