Selecting files/directories
Moderators: white, Hacker, petermad, Stefan2
Selecting files/directories
I can't find one simple function in TC. I'm blind ot there is no such possiblity.
I can choose in configuration options if I want to select (gray+) only files or files and directories. That's ok. But I'd like to have another solution (like in Dos Navigator) - default to select only files, but with any other key (eg. Ctrl) - select files and directories.
It's very useful solution (at least for me ) cause I usually select only files but in some situations I also need to select directories.
I can choose in configuration options if I want to select (gray+) only files or files and directories. That's ok. But I'd like to have another solution (like in Dos Navigator) - default to select only files, but with any other key (eg. Ctrl) - select files and directories.
It's very useful solution (at least for me ) cause I usually select only files but in some situations I also need to select directories.
- ghisler(Author)
- Site Admin
- Posts: 48097
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You can use Shift+End to select all files+dirs when standing on the first directory.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
That's true, it's a solution. Thanks.ghisler(Author) wrote:You can use Shift+End to select all files+dirs when standing on the first directory.
Unfortunately if I had default (files+directories) in configuration - I would have to move to the first file to select only files (if there would be many subdirectories in the directory this would be a small problem)
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
Is Shift+End bound to a specific internal command Christian? If yes how is it called?ghisler(Author) wrote:You can use Shift+End to select all files+dirs when standing on the first directory.
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
I was asking simply because if it was assigned to an internal command I would have missed it from my menu file that has the task of including all internal commands, visible on the menus!norfie wrote:Why do you asking? What is the reason for this question?
http://www.ghisler.ch/board/viewtopic.php?t=62
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
- ghisler(Author)
- Site Admin
- Posts: 48097
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, unfortunately it isn't - it's handled by the listbox control by itself, not by Total Commander.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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.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".
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.