Middle click anywhere in panel - up one level
Moderators: white, Hacker, petermad, Stefan2
Middle click anywhere in panel - up one level
Is this possible in Total commander, and if yes - how? I saw this in Gnome commander and I found it to be very useful.
No, not without AutoHotkey. Here is a script for AutoHotkey which comes cloes to what you would like, however, it sets focus on the panel where you click.
HTH
Roman
Code: Select all
#NoEnv
#IfWinActive, ahk_class TTOTAL_CMD
$MButton::
MouseGetPos, , , , Control
IfEqual, Control, TMyListBox1
{
ControlFocus, %Control%
PostMessage, 1075, 2002
Return
}
IfEqual, Control, TMyListBox2
{
ControlFocus, %Control%
PostMessage, 1075, 2002
Return
}
Return
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.
Thanks! Exactly what I was looking for. Too bad it isn't implemented in TCHacker wrote:No, not without AutoHotkey. Here is a script for AutoHotkey which comes cloes to what you would like, however, it sets focus on the panel where you click.
HTHCode: Select all
#NoEnv #IfWinActive, ahk_class TTOTAL_CMD $MButton:: MouseGetPos, , , , Control IfEqual, Control, TMyListBox1 { ControlFocus, %Control% PostMessage, 1075, 2002 Return } IfEqual, Control, TMyListBox2 { ControlFocus, %Control% PostMessage, 1075, 2002 Return } Return
Roman
A small fix
When you use the above script, middle clicking on a tab to close it stops working. I have been so used to this in many applications that I needed a workaround.
So I added a few lines to fix that. But you'll need to enable "Close tab on double click" for this to work:
If there is a simpler way to do it, (many here are autohotkey experts
) please post it. Also I am using TC 7 Beta 2 for testing this.
So I added a few lines to fix that. But you'll need to enable "Close tab on double click" for this to work:
Code: Select all
;Middle click anywhere in panel - up one level with fix for middle click close tab
; Important make sure that double click to close tab is enabled for middle click to close tab to work
#IfWinActive, ahk_class TTOTAL_CMD
MButton::
MouseGetPos, , , , Control
IfEqual, Control, TMyListBox1
{
ControlFocus, %Control%
PostMessage, 1075, 2002
Return
}
Else{
Click
}
IfEqual, Control, TMyListBox2
{
ControlFocus, %Control%
PostMessage, 1075, 2002
Return
}
Else{
Click
}
Return
#IfWinActive
![Smile :)](./images/smilies/icon_smile.gif)
Visit bootcd.us!
more changes
This removes that limitation. So the focus is set back to the current tab. Try it and tell me if there are any bugs.No, not without AutoHotkey. Here is a script for AutoHotkey which comes cloes to what you would like, however, it sets focus on the panel where you click.
Code: Select all
;Middle click anywhere in panel - up one level with fix for middle click close tab
; Important make sure that double click to close tab is enabled for middle click to close tab to work
#IfWinActive, ahk_class TTOTAL_CMD
MButton::
MouseGetPos, , , , Control
ControlGetFocus, Current
IfEqual, Control, TMyListBox1
{
ControlFocus, %Control%
PostMessage, 1075, 2002
; return focus
ControlFocus, %Current%
Return
}
Else{
Click
}
IfEqual, Control, TMyListBox2
{
ControlFocus, %Control%
PostMessage, 1075, 2002
; return focus
ControlFocus, %Current%
Return
}
Else{
Click
}
Return
Visit bootcd.us!
how to completely hide/remove the parent dir
Sorry for the repeat posts
But I want to know if it is possible to completely hide/remove the parent dir (the .. at the top of every view).
I have just found out that it is not much useful when we start to use this shortcut![Smile :)](./images/smilies/icon_smile.gif)
I cannot find it in the preferences dialog or docs.
![Embarassed :oops:](./images/smilies/icon_redface.gif)
But I want to know if it is possible to completely hide/remove the parent dir (the .. at the top of every view).
I have just found out that it is not much useful when we start to use this shortcut
![Smile :)](./images/smilies/icon_smile.gif)
I cannot find it in the preferences dialog or docs.
Visit bootcd.us!
Option !
2rojer_31
Hello !
• Configuration >> Options >> Display >> Files "Show parent dir (..] also in root of drive", remove the nick >> Apply >> OK
KR
Claude
Clo
![Smile :)](./images/smilies/icon_smile.gif)
• Configuration >> Options >> Display >> Files "Show parent dir (..] also in root of drive", remove the nick >> Apply >> OK
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Enhanced
2Hacker
Hi Roman !
• Yep True ! Might be enhanced in the panels for all views at will (another tick-box ?)…
KR
Claude
Clo
![Smile :)](./images/smilies/icon_smile.gif)
• Yep True ! Might be enhanced in the panels for all views at will (another tick-box ?)…
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Re: Option !
I was indeed aware of that option, it works only in root folders.Clo wrote: • Configuration >> Options >> Display >> Files "Show parent dir (..] also in root of drive", remove the nick >> Apply >> OK
KR
Claude
Clo
Maybe this option can be added in TC 7?
Visit bootcd.us!
3-state box
2rojer_31
Hello !
• Feel free to suggest it in the appropriate section![Wink ;)](./images/smilies/icon_wink.gif)
- Looking at this closer, the option for "Root" could be used with a 3-state box
(because there is no more room on the page…) :
¤ Ticked¦greyed : Shows •• in the root,
¤ Ticked : shows •• always in the panels (root and folders)
¤ Unticked : Never shows ••
or so… Too late for 7.0 such as in UI, but another flag could be added in the INI entry (doesn't need translations !) :
ShowParentDirInRoot=–1 Hides •• in the root and in the folders.
KR
Claude
Clo
![Smile :)](./images/smilies/icon_smile.gif)
• Feel free to suggest it in the appropriate section
![Wink ;)](./images/smilies/icon_wink.gif)
- Looking at this closer, the option for "Root" could be used with a 3-state box
(because there is no more room on the page…) :
¤ Ticked¦greyed : Shows •• in the root,
¤ Ticked : shows •• always in the panels (root and folders)
¤ Unticked : Never shows ••
or so… Too late for 7.0 such as in UI, but another flag could be added in the INI entry (doesn't need translations !) :
ShowParentDirInRoot=–1 Hides •• in the root and in the folders.
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials