[Sugg] Create folder with name suggested from target panel
Moderators: Hacker, petermad, Stefan2, white
[Sugg] Create folder with name suggested from target panel
By default, when you make a new directory, TC suggest the name under cursor in current panel.
Could be interesting add SHIFTt+F7 for make a new folder with the name suggested from selected file in target panel.
Could be interesting add SHIFTt+F7 for make a new folder with the name suggested from selected file in target panel.
I can read English, but... I write like Tarzan. (sorry)
Very often I also need to create a directory in the OTHER panel using the name of a file or directory of the current panel. I guess the probability of this case is about 30% when creating a new directory. So I find it a good idea to add support for this case. But how exactly? I see the following variants:
VARIANT 1:
Add command cm_MkDirInOtherPanel as companion to the existing cm_MkDir command.
F7 shall remain the default hotkey for cm_MkDir.
Shift+F7 shall be the default hotkey for cm_MkDirInOtherPanel (as suggested by Sombra).
VARIANT 2: (my favorite)
Add command switch -InOtherPanel to command cm_MkDir and a checkbox "in other panel" to the dialog of cm_MkDir.
When cm_MkDir -InOtherPanel is called the checkbox is initially checked, otherwise unchecked. In either case the user can toggle the checkbox before pressing OK.
F7 shall remain the default hotkey for cm_MkDir.
Shift+F7 shall be the default hotkey for cm_MkDir -InOtherPanel (as suggested by Sombra).
Variant 2 has the advantage that it makes the new feature visible directly where it can be applied, not only somewhere buried in the online help. This is specially important for mouse-oriented users.
EXAMPLE:
Since years I hide TC's function keys and use a button for cm_MkDir (which comes now with a nice icon since TC 7.0 public beta). If TC supported the new feature then I would like to overload my existing button for cm_MkDir instead of adding a separate, space-wasting button for cm_MkDirInOtherPanel or cm_MkDir -InOtherPanel. That is:
Clicking the MkDir button should call cm_MkDir and shift-clicking the MkDir button should call cm_MkDirInOtherPanel or cm_MkDir -InOtherPanel.
Unfortunately button overloading is NOT possible as far as I know, but with variant 2 it is less serious because I can still use the checkbox "in other panel".
VARIANT 1:
Add command cm_MkDirInOtherPanel as companion to the existing cm_MkDir command.
F7 shall remain the default hotkey for cm_MkDir.
Shift+F7 shall be the default hotkey for cm_MkDirInOtherPanel (as suggested by Sombra).
VARIANT 2: (my favorite)
Add command switch -InOtherPanel to command cm_MkDir and a checkbox "in other panel" to the dialog of cm_MkDir.
When cm_MkDir -InOtherPanel is called the checkbox is initially checked, otherwise unchecked. In either case the user can toggle the checkbox before pressing OK.
F7 shall remain the default hotkey for cm_MkDir.
Shift+F7 shall be the default hotkey for cm_MkDir -InOtherPanel (as suggested by Sombra).
Variant 2 has the advantage that it makes the new feature visible directly where it can be applied, not only somewhere buried in the online help. This is specially important for mouse-oriented users.
EXAMPLE:
Since years I hide TC's function keys and use a button for cm_MkDir (which comes now with a nice icon since TC 7.0 public beta). If TC supported the new feature then I would like to overload my existing button for cm_MkDir instead of adding a separate, space-wasting button for cm_MkDirInOtherPanel or cm_MkDir -InOtherPanel. That is:
Clicking the MkDir button should call cm_MkDir and shift-clicking the MkDir button should call cm_MkDirInOtherPanel or cm_MkDir -InOtherPanel.
Unfortunately button overloading is NOT possible as far as I know, but with variant 2 it is less serious because I can still use the checkbox "in other panel".
Support+.jb wrote:VARIANT 2: (my favorite)
[...] and a checkbox "in other panel" to the dialog of cm_MkDir.
To get this I usually started to copy the whole dir, immediately aborted after the first files and then deleted already copied files.
A checkbox "in other panel" would be a clean solution for this.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
Spport++Could be interesting add SHIFTt+F7 for make a new folder with the name suggested from selected file in target panel.
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
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
Stance wrote:A good idea!Sombra wrote:Could be interesting add SHIFTt+F7 for make a new folder with the name suggested from selected file in target panel.
As already posted above I support the basic idea of Sombra's suggestion, but the suggestion has a flaw if you take it literally. The term "target panel" (= inactive panel = other panel) opposed to "source panel" (= active panel = current panel) is key to recognize the flaw.petermad wrote:Spport++Could be interesting add SHIFTt+F7 for make a new folder with the name suggested from selected file in target panel.
Actually Sombra suggests that SHIFTt+F7 should create a new directory in the current panel with the name suggested from the current file/directory in the other panel. The suggested behavior assumes that you focus the file/directory with the desired name and switch the panel just before you press SHIFT+F7. Furthermore you need to rely on your memory because unfortunately TC does NOT tell you which file/directory is the current one in the inactive panel! See also topic "show cursor when tcmd not focus".
I think it makes more sense that SHIFTt+F7 should create a new directory in the other panel with the name suggested from the current file/directory in the current panel. With this behavior you can still switch the panel and do something with the new directory, but you are not required. Alternatively you may just drag&drop some files/directories into the new directory. In my previous post I specified two variants of this counter suggestion in detail.
In general I would like to mention that it is better to discuss new functionality in terms of commands instead of default keyboard shortcuts (hotkeys). Hotkeys can be redefined by the user at any time, but commands stay. Furthermore commands are interesting for different kinds of users, but default hotkeys are mainly interesting for keyboard-oriented users.
2jb
Except for cm_list NO cm_ commands accepts switches or parameters - and the .mnu file doesn't support parameters, not even for em_list, so I can't imagine that Ghisler is going to change all that for the idea of making -InOtherPanel work.
But I fully support a cm_MkDirInOtherPanel command.
That's the behaviour I expected anyway, and that's how I read Sombra's suggestion (I just thought he was missing a comma before "in target panel")I think it makes more sense that SHIFTt+F7 should create a new directory in the other panel with the name suggested from the current file/directory in the current panel.
Of course there should be a corresponding command like cm_MkDirInOtherPanel, but I don't like the Idea of a -InOtherPanel switch.In general I would like to mention that it is better to discuss new functionality in terms of commands
Except for cm_list NO cm_ commands accepts switches or parameters - and the .mnu file doesn't support parameters, not even for em_list, so I can't imagine that Ghisler is going to change all that for the idea of making -InOtherPanel work.
But I fully support a cm_MkDirInOtherPanel command.
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
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
Actually I find the switch idea the best part of my suggestion because it is general and scalable. See also topic "Checkbox "in same panel" for cm_PackFiles/cm_Unpac".petermad wrote:Of course there should be a corresponding command like cm_MkDirInOtherPanel, but I don't like the Idea of a -InOtherPanel switch.
Except for cm_list NO cm_ commands accepts switches or parameters - and the .mnu file doesn't support parameters, not even for em_list, so I can't imagine that Ghisler is going to change all that for the idea of making -InOtherPanel work.
Furthermore cm_MkDirInOtherPanel would not offer a checkbox "in other panel" which I would find user-friendly.
That's a good idea, too.jb wrote:VARIANT 2: (my favorite)
[...] and a checkbox "in other panel" to the dialog of cm_MkDir.

Edit: The Checkbox must not be drawn when SHIFTt+F7, right?

The disadvantage of the TC MakeDirectory dialog [F7 NewFolder] is, that it "steals" the focus.
The simpliest solution would be, to add the possibility for to change the focus of the (background) panels when [F7 NewFolder] dialog is in foreground! (By Mouseclick or tabbing).
Maybe I expressed myself not clearly enough. My point was that I prefer one command cm_MkDir with an optional switch -InOtherPanel which changes the initial value of a corresponding checkbox in the dialog. So the closely related usages are always visible (no training needed) and the user can always change his mind just before pressing OK no matter whether he called cm_MkDir or cm_MkDir -InOtherPanel and no matter how he called the command (via hotkey, button, ...).Stance wrote:Edit: The Checkbox must not be drawn when SHIFTt+F7, right?![]()
Alone because of the increased user-friendliness I would prefer the described approach instead of two separate commands cm_MkDir and cm_MkDirInOtherPanel. But there is another general advantage: The switch approach is applicable to other commands and extendable, that is, more switches could be added to any command if necessary instead of introducing a new command each time. For example see also "Checkbox "in same panel" for cm_PackFiles/cm_Unpac".
Making the dialog of cm_MkDir so-called "non-modal" (as you suggest) would be another solution indeed, but I clearly prefer my solution because it is more explicit and self-explaining.Stance wrote:The disadvantage of the TC MakeDirectory dialog [F7 NewFolder] is, that it "steals" the focus.
The simpliest solution would be, to add the possibility for to change the focus of the (background) panels when [F7 NewFolder] dialog is in foreground! (By Mouseclick or tabbing).