More "When selected tab is clicked" options

It would be nice if there was more customisability regarding what happens when a selected folder tab is clicked. Currently we only have a list of three hard-coded options: Rename, go to previous tab, or do nothing.

If we had a fourth option which allowed running some command (like is possible for the mouse background events for file displays) we could define some additional behaviour. In my case, I'd like clicking to lock the selected tab.

Furthermore, I'd like to be able to choose what happens on double-clicking too. If double-click were set to something other than to do nothing, then there would need to be a small delay after a single left click is registered to make time to also register a potential second click (i.e. a double-click). If double-click wasn't set to anything, then no delay would be necessary (it would only result in the single-clicking action feeling sluggish if there were).

Taking it a step further, maybe single- and double-middle-clicking should be customisable too (right-clicking seems fine to not be customisable)? I personally like the mouse background events preferences configurability and layout, but just adding a fourth option to the current drop-down which then reveals a text field to define a command, and a new duplicate drop-down for double-left-clicking (and possibly middle-, and double-middle-clicking events too) would work well enough.

I just noticed that there is a Double-click tabs to close them option. I guess this FR would require migrating of that setting if the above paragraph was implemented.

Thanks.

13.6.11 (Beta)