Command line: no ending space for path from history

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: no ending space for path from history

Post by *DrShark »

When user inserts a name into Command line using Ctrl+Enter or Ctrl+Shift+Enter, space character is added to make TC insert another name using Ctrl+Enter or Ctrl+Shift+Enter (if already entered name isn't finished with space, Ctrl+Enter or Ctrl+Shift+Enter can't add another).

If user inserts a name using command line history (Ctrl+DownArrow or twice Ctrl+DownArrow with selection), space is not added so user can't add a new failename using Ctrl+Enter or Ctrl+Shift+Enter command line even after explicit focus on some name in file panel using mouse. If user doen't know that ending space is the name past trigger, he will not add in manually and just will remove entered input (to add space after selecting a pasth from history, user have to press End key first to remove selection).

I see 3 possible solution:
a) always auto-add space if user insert line from history;
b) always allow to insert names with command line, even if last character of already entered text is not space;
3) after keypress of Ctrl+Enter or Ctrl+Shift+Enter check the last character of already exisiting command line text and if it's not space, auto-add space and then insert new name (this one is worst I think).
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) »

History is done entirely by Windows combobox, sorry.
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:History is done entirely by Windows combobox, sorry.
Sorry, this tells little to me. Can combobox have a line with a space in the end? If yes, maybe you can store in the history paths with space in the end?
Then, if user will select what looks like
|c:\windows\notepad.exe|
in history combobox, one will actually select (and paste into command line) the line
|c:\windows\notepad.exe |
(with space in the end).
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply