Valentino wrote:It'd be cool if besides
cm_SelectAll we had one more command, say,
cm_AltSelectAll, which would act opposite to
cm_SelectAll (depending on configuration):
- if "Selection with Gray +" == "Select files only", cm_AltSelectAll == "Also select directoties";
if "Selection with Gray +" == "Also select directoties", "Select files only".
I think a command like
cm_AltSelectAll is a bad idea because
commands and
keyboard shortcuts should be two different layers where the shortcut layer depends on the function layer but not vice versa. Commands are user-invokable functions and each function should have a single simple purpose and a concise name expressing the purpose as clearly as possible. On the other side shortcuts are just key-combinations mapped to a command.
So I suggest the following TC commands:
cm_SelectAll : Select all files and directories
cm_SelectAllFiles : Select all files
(
cm_SelectAllDirs : Select all directories)
Furthermore I suggest the following
default keyboard shortcuts:
Ctrl+A -> cm_SelectAll (compliant with the Windows GUI standard)
Shift+Ctrl+A -> cm_SelectAllFiles
Ctrl+GreyPlus -> cm_SelectAll or cm_SelectAllFiles according to configuration "Selection (with Gray +)"
Shift+Ctrl+GreyPlus -> cm_SelectAllFiles or cm_SelectAll according to inverse of configuration "Selection (with Gray +)"
By the way:
Imagine that one day TC becomes
scriptable and you write a script calling
cm_SelectAll followed by
cm_Delete among other things. Obviously the script should behave the same way for any user independent of the shortcut configuration.