Autocomplete command line from history

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zsero
Junior Member
Junior Member
Posts: 27
Joined: 2007-02-01, 15:03 UTC

Autocomplete command line from history

Post by *zsero »

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
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Re: Autocomplete command line from history

Post by *karlchen »

Hello, zsero.
How can I make total commander autocomplete the command line based on the history?
To the best of my knowledge the T.C. command history does not support any autocomplete at all.
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.
I would prefer to have this autocomplete automatic, without the need to press any key.
Hm, I fail to understand this part. You expect T.C. to read your thoughts?
Also, is there any way to jump to the command line
If the commandline is not hidden, then you can use the keys <CursorLeft> and <CursorRight> to jump to the commandline.
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:
Still on 7.57
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).

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
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

zsero,
How can I make total commander autocomplete the command line based on the history?
Ctrl-Enter.
I would prefer to have this autocomplete automatic, without the need to press any key.
Sorry.
is there any way to jump to the command line
Shift-Left or Shift-Right if you are using the Brief view.

karlchen,
You expect T.C. to read your thoughts?
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.

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.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

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
How can I make total commander autocomplete the command line based on the history?
<Shift><CursorLeft|Right> to jump to the commandline works fine in full view mode, too, not just in brief view mode. :)

About your browser analogy:
Great idea and well explained. :) Yet, how to achieve this without touching the keyboard? Hm ... :?

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
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

karlchen,
<Ctrl><Enter> feeds the name of the object to commandline, which is under the cursor in the active file panel.
Only if the command line is empty. But you probably won't try to autocomplete an empty line.

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.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hacker wrote:karlchen,
<Ctrl><Enter> feeds the name of the object to commandline, which is under the cursor in the active file panel.
Only if the command line is empty.
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.

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
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

karlchen,
Type

Code: Select all

control.exe
and press Enter. Close the Control Panel, type

Code: Select all

con
and press Ctrl-Enter.

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.
Slavic
Senior Member
Senior Member
Posts: 297
Joined: 2006-02-26, 15:41 UTC
Location: Montenegro

Post by *Slavic »

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).
Post Reply