Autocomplete command line from history
Moderators: Hacker, petermad, Stefan2, white
Autocomplete command line from history
I have a very simple question:
How can I make total commander autocomplete the command line based on the history? I would prefer to have this autocomplete automatic, without the need to press any key.
Also, is there any way to jump to the command line but without filling it with the last command (like Ctrl + E)? I'm using file search for default typing behaviour.
Still on 7.57
How can I make total commander autocomplete the command line based on the history? I would prefer to have this autocomplete automatic, without the need to press any key.
Also, is there any way to jump to the command line but without filling it with the last command (like Ctrl + E)? I'm using file search for default typing behaviour.
Still on 7.57
Re: Autocomplete command line from history
Hello, zsero.
You use <Ctrl><CursorDown> or <Alt><F8> in order to enter the list of commands in the commands history. You use the <CursorUp> and <CursorDown> keys for navigation inside the list of remembered commands and <Enter> to execute.
For more keys usable in the T.C. commandline, please, see the section Command line: keys inside the T.C. helpfile.
In case the commandline is hidden, you activate it and jump to it by typing the first letter of the command which you are about to enter.
Side issue unrelated to the main question:
Kind regards,
Karl
To the best of my knowledge the T.C. command history does not support any autocomplete at all.How can I make total commander autocomplete the command line based on the history?
You use <Ctrl><CursorDown> or <Alt><F8> in order to enter the list of commands in the commands history. You use the <CursorUp> and <CursorDown> keys for navigation inside the list of remembered commands and <Enter> to execute.
For more keys usable in the T.C. commandline, please, see the section Command line: keys inside the T.C. helpfile.
Hm, I fail to understand this part. You expect T.C. to read your thoughts?I would prefer to have this autocomplete automatic, without the need to press any key.
If the commandline is not hidden, then you can use the keys <CursorLeft> and <CursorRight> to jump to the commandline.Also, is there any way to jump to the command line
In case the commandline is hidden, you activate it and jump to it by typing the first letter of the command which you are about to enter.
Side issue unrelated to the main question:
Your fault. The update to the latest release version 7.57a is free and takes only a few minutes to download and install (update installation).Still on 7.57
Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
zsero,
karlchen,
Roman
Ctrl-Enter.How can I make total commander autocomplete the command line based on the history?
Sorry.I would prefer to have this autocomplete automatic, without the need to press any key.
Shift-Left or Shift-Right if you are using the Brief view.is there any way to jump to the command line
karlchen,
I assume it should work just like the address bar in a browser works. You type "ghi" and the browser adds and highlights the "sler.ch" part so that it is overwritten (and autocompleted again) if you type another letter.You expect T.C. to read your thoughts?
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Hello, Roman.
<Ctrl><Enter> feeds the name of the object to commandline, which is under the cursor in the active file panel.
This function is useful and fine and used by me frequently, yet, is it really the answer to zsero's question
About your browser analogy:
Great idea and well explained.
Yet, how to achieve this without touching the keyboard? Hm ...
Cheers,
Karl
<Ctrl><Enter> feeds the name of the object to commandline, which is under the cursor in the active file panel.
This function is useful and fine and used by me frequently, yet, is it really the answer to zsero's question
<Shift><CursorLeft|Right> to jump to the commandline works fine in full view mode, too, not just in brief view mode.How can I make total commander autocomplete the command line based on the history?

About your browser analogy:
Great idea and well explained.


Cheers,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
karlchen,
Roman
Only if the command line is empty. But you probably won't try to autocomplete an empty line.<Ctrl><Enter> feeds the name of the object to commandline, which is under the cursor in the active file panel.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Just tried it. <Ctrl><Enter> does exactly what I wrote even if there is a command in the commandline. It simply appends the objectname to the end of the commandline.Hacker wrote:karlchen,Only if the command line is empty.<Ctrl><Enter> feeds the name of the object to commandline, which is under the cursor in the active file panel.
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
karlchen,
Type
and press Enter. Close the Control Panel, type
and press Ctrl-Enter.
Roman
Type
Code: Select all
control.exe
Code: Select all
con
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Currently the autocomplete function works exactly like in browser only for the list of file and directory names from active panel. If it would be possible to extend this functionality with adding the list of last commands (drop-down list), it will be fine. Selecting a line in short list with one mouse click or pressing down arrow is more easy than Ctrl-Enter combination (at least for me).