I have 2 related suggestions to improve Total Commander's command line:
1. Alt+F8 in empty command line opens a latest command lines history-list.
Ctrl+Down, when cursor is in Command line, opens the same list and also adds latest command into command line.
Ctrl+Up, when focus is in Command line and a list opened by Ctrl+Down or Alt+F8 is opened, just adds latest command into command line, and when list is not opened, it doesn't do anything.
Since function which is done by Ctrl+Up is a part of feature called by Ctrl+Down,
my suggestion is to use Ctrl+Up for different purpose: to open a list, similar to one by Alt+F8, but with list of all commands present in cm_commandbrowser, as well as all aliases.
2. When Alt+F8 list is opened, or user clears command line input while Ctrl+Down list is opened,
and then starts typing in empty command line, I suggest to filter opened history list by first characters typed in command line, so it will only show commands that match entered characters.
It's similar to how Auto-Complete works in command line when Alt+F8/Ctrl+Down lists aren't opened, or how Quick Search (Ctrl+S) filter works in file panles.
If suggetion 1 will be implemented, for its list I suggest to implement the same filtering too.
Command line: access list of all commands and aliases; their and latest command lines history-list filter
Moderators: white, Hacker, petermad, Stefan2
Command line: access list of all commands and aliases; their and latest command lines history-list filter
Last edited by DrShark on 2020-02-10, 07:11 UTC, edited 3 times in total.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Re: Command line: access list of all commands and aliases; their and latest command lines history-list filter
If this is a description of the current behaviour - that is not quite what I see - I see:Ctrl+Down opens the same list and also adds latest command into command line.
Ctrl+Up just adds latest command in command line.
ONE press on Ctrl+Down inserts the last used command in the command line and sets focus to the command line (just like ONE pres on Ctrl+E)
TWO presses on Ctrl+Down inserts the last used command in the command line AND opens the history (like Ctrl+E + Alt+F8 OR Alt+F8 + Down)
Ctrl+Up opens directory under cursor in new tab.
keyboard.txt / help:
So you are basically asking for a total redefinition of an established shortcut.CTRL+UP Open dir under cursor in new tab
BTW - I don't see Ctrl+Down documented in neither the help nor the history.txt.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Command line: access list of all commands and aliases; their and latest command lines history-list filter
It's misunderstanding.
1. @DrShark describes action after pressing Alt+F8: you can use Up and Down or Ctrl+Up and Ctrl+Down. The difference is in the end - when you go up and hit the top of the history list. With Up scrolling stops, with Ctrl+Up the list is closed.
2. You can also use Ctrl+Down without pressing Alt+F8. It starts working as @petermad described, then works as Down in p.1. Now the difference is in the beginning.
1. @DrShark describes action after pressing Alt+F8: you can use Up and Down or Ctrl+Up and Ctrl+Down. The difference is in the end - when you go up and hit the top of the history list. With Up scrolling stops, with Ctrl+Up the list is closed.
2. You can also use Ctrl+Down without pressing Alt+F8. It starts working as @petermad described, then works as Down in p.1. Now the difference is in the beginning.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: Command line: access list of all commands and aliases; their and latest command lines history-list filter
For both Ctrl+Down and Ctrl+Up, I indeed described behavior (and suggested behavior) when cursor is already in command line (e.g. set there with Shift+RighArrow). I edited the first post to reflect this. Actually when cursor is in command line, Ctrl+Up behavior depends on whether Alt+F8/Ctrl+Down list is opened: if it is, Ctrl+Up inserts latest command into command line, if it isn't - Ctrl+Up just does nothing (this is also added to first post now).petermad wrote: ↑2020-02-09, 22:21 UTCIf this is a description of the current behaviour - that is not quite what I see - I see:Ctrl+Down opens the same list and also adds latest command into command line.
Ctrl+Up just adds latest command in command line.
ONE press on Ctrl+Down inserts the last used command in the command line and sets focus to the command line (just like ONE pres on Ctrl+E)
TWO presses on Ctrl+Down inserts the last used command in the command line AND opens the history (like Ctrl+E + Alt+F8 OR Alt+F8 + Down)
Ctrl+Up opens directory under cursor in new tab.
keyboard.txt / help:So you are basically asking for a total redefinition of an established shortcut.CTRL+UP Open dir under cursor in new tab
So in this case redefining Ctrl+Up to new behavior by default (opening a list of all commands and aliases) doesn't conflict with existing TC features (again, will be still possible to insert latest command with Ctrl+Down or Ctrl+E).
It is documented (as CTRL-CURSORDOWN) in help .
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Re: Command line: access list of all commands and aliases; their and latest command lines history-list filter
Ahh - thanks.It is documented (as CTRL-CURSORDOWN) in help .
I should know - I commented on it here https://www.ghisler.ch/board/viewtopic.php?p=361524#p361524 only 3 month ago (i am getting old)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar