Command line: access list of all commands and aliases; their and latest command lines history-list filter
Posted: 2020-02-09, 20:45 UTC
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.
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.