Command line: removed last space & autosuggestion issue

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Command line: removed last space & autosuggestion issue

Post by *DrShark »

To reproduce:
1) use Ctrl+Shift+Enter on notepad.exe, this will past c:\Windows\notepad.exe name in command line with added space character at the end of the line;
2) press RightArrow, End, BackSpace to remove the space;
3) try to use Up key to return focus from command line to file panel: cursor still present the command line, and autosuggested paths list to select some path also not offered.

The reason propably is that TC allows to select from autosuggestion list with UpArrow or DownArrow key in command line (like those visible when to remove space and at least one another character in step 2: TC will show it offering full path to notepad.exe), but in our case we don't have path autosuggestions and can't leave command line with ArrowUp key too.

I suggest, if possible, to let user to leave command line with ArrowUp key if at least one autosuggestion path is not offered.

edit: this issue seems to be related to this one beacuse not only ArrowUp key is blocked, but also Ctrl+ArrowDn and Ctrl+ArrowUp that TC use to navigate its executed commands history, and probably some others.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ctrl+Enter only works when there is a separator at the end of the line. This is intentional.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Ctrl+Enter only works when there is a separator at the end of the line. This is intentional.
This bug report is not about Ctrl+Enter (which doesn't work here too because the command line is not ended with space), but about ArrowUp, Ctrl+ArrowDn and Ctrl+ArrowUp.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

My reply from this post about better indication of active autocomplete/autoappend also applies to this case, because it seems that it steals mentioned above hotkeys.
If it's imposible for TC to catch hotkeys firts and then, if they aren't used for other TC features, transfer them to autocomplete/autoappend, indication will be a good solution: at least user will know what to expect from hotkeys in command line.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply