Command-Line Auto-Completion Task: Difference between revisions

From GM-RKB
Jump to navigation Jump to search
(Created page with " A Command-Line Auto-Completion Task is a Command-Line Interpreter that ... * <B>AKA:</B> Command-Line Completion. * <B>See:</B> Tab Key, Command-Line Int...")
 
m (Text replacement - "input" to "Input")
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A [[Command-Line Auto-Completion Task]] is a [[Code Auto-Completion Task]] that can predict and make [[shell command]] suggestions to an [[user]] using a [[Command-Line Interface]].
* <B>AKA:</B> [[Command-Line Auto-Completion Task|Command-Line Completion Task]], [[Command-Line Auto-Completion Task|Tab Completion Task]].
* <B>Context:</B>
** <B>[[Task Input|Input]]</B>: a [[shell command]] word or statement typed by a [[system user]].
** <B>[[Task Input|output]]</B>: a [[set]] of autocomplete [[shell command]] suggestions.
** It can be solveb by a [[Command-Line Auto-Completion System]] that implements a [[Command-Line Auto-Completion Algorithm]].
** It can be a sub-[[task]] of a [[Command-Line Processing Task]].
** It can be part of an [[Integrated Development Environment Code Auto-Completion Task]].
** …
* <B>Example(s):</B>
** a [[Bash Autocomplete Task]],
** a [[DVC Shell Autocomplete Task]] (see: [https://dvc.org/doc/user-guide/autocomplete DVC Website]),
** a [[Tcsh Autocomplete Task]],
** a [[Windows PowerShell Autocomplete Task]],
** a [[Z Shell Autocomplete Task]].
** …
* <B>Counter-Example(s):</B>
** a [[Programming Auto-Completion Task]],
** a [[Natural Language Auto-Completion Task]],
** an [[Code Autoreplace Task]],
** an [[Auto-Encoding Task]],
** a [[Query Auto-Completion Task]],
** a [[Spelling Error Correction Task]],
** a [[Text Auto-Completion Task]],
** a [[Text Wikification Task]].
** a [[WikiText Auto-Completion Task]].
* <B>See:</B> [[Human-Computer Interaction]], [[Editing Task]], [[Language Model]], [[Natural Language Inference Task]], [[Natural Language Processing Task]], [[Code Generating Task]], [[Pattern Mining Task]], [[Shell Script]], [[Batch File]].


A [[Command-Line Auto-Completion Task]] is a [[Command-Line Interpreter]] that ...
* <B>AKA:</B> [[Command-Line Completion]].
* <B>See:</B> [[Tab Key]], [[Command-Line Interpreter]], [[Interactive]], [[Shell Script]], [[Batch File]].
----
----
----
----
==References==


=== 2019 ===
== References ==
* (Wikipedia, 2019) &rArr; https://en.wikipedia.org/wiki/Command-line_completion Retrieved:2019-10-12.
** '''Command-line completion''' (also '''tab completion''') is a common feature of [[command-line interpreter]]s, in which the program automatically fills in partially typed commands. <P> Command line interpreters are programs that allow a user to interact with the underlying operating system by typing commands at a command prompt using a command line interface (CLI), in contrast to pointing and clicking a mouse in a Graphical User Interface (GUI). Command-line completion allows the user to type the first few characters of a command, program, or filename, and press a completion key (normally ) to fill in the rest of the item. The user then presses or to run the command or open the file. <P> Command-line completion is useful in several ways, as illustrated by the animation accompanying this article. Commonly accessed commands, especially ones with long names, require fewer keystrokes to reach. Commands with long or difficult to spell filenames can be entered by typing the first few characters and pressing a completion key, which completes the command or filename. In the case of multiple possible completions, some command-line interpreters, especially Unix shells, will list all possible completions beginning with those few characters. The user can type more characters and press again to see a new, narrowed-down list if the typed characters are still ambiguous, or else complete the command/filename with a trailing space. An alternate form of completion rotates through all matching results when the input is ambiguous. <P> Completable elements may include commands, arguments, file names and other entities, depending on the specific interpreter and its configuration. Command-line completion generally only works in [[interactive|interactive mode]]. That is, it cannot be invoked to complete partially typed commands in [[shell script|script]]s or [[batch file]]s, even if the completion is unambiguous. The name '''tab completion''' comes from the fact that command-line completion is often invoked by pressing the [[tab key]].


=== 2019a ===
* (Wikipedia, 2019) ⇒ https://en.wikipedia.org/wiki/Command-line_completion Retrieved:2019-10-12.
** '''Command-line completion''' (also '''tab completion''') is a common feature of [[command-line interpreter]]s, in which the program automatically fills in partially typed commands.        <P>        Command line interpreters are programs that allow a user to interact with the underlying operating system by typing commands at a command prompt using a command line interface (CLI), in contrast to pointing and clicking a mouse in a Graphical User Interface (GUI). Command-line completion allows the user to type the first few characters of a command, program, or filename, and press a completion key (normally ) to fill in the rest of the item. The user then presses or to run the command or open the file.        <P>        Command-line completion is useful in several ways, as illustrated by the animation accompanying this article. Commonly accessed commands, especially ones with long names, require fewer keystrokes to reach. Commands with long or difficult to spell filenames can be entered by typing the first few characters and pressing a completion key, which completes the command or filename. In the case of multiple possible completions, some command-line interpreters, especially Unix shells, will list all possible completions beginning with those few characters. The user can type more characters and press again to see a new, narrowed-down list if the typed characters are still ambiguous, or else complete the command/filename with a trailing space. An alternate form of completion rotates through all matching results when the input is ambiguous.        <P>        Completable elements may include commands, arguments, file names and other entities, depending on the specific interpreter and its configuration. Command-line completion generally only works in [[interactive|interactive mode]]. That is, it cannot be invoked to complete partially typed commands in [[shell script|script]]s or [[batch file]]s, even if the completion is unambiguous. The name '''tab completion''' comes from the fact that command-line completion is often invoked by pressing the [[tab key]].
=== 2019b ===
* (Wikipedia, 2019) ⇒ https://en.wikipedia.org/wiki/Autocomplete#In_command-line_interpreters Retrieved:2019-10-12.
** In a [[command-line interpreter]], such as [[Unix]]'s [[Bourne shell|sh]] or [[Bash (Unix shell)|bash]], or [[Microsoft Windows|Windows]]'s [[cmd.exe]] or [[PowerShell]], or in similar [[command line interface]]s, autocomplete of command names and file names may be accomplished by keeping track of all the possible names of things the user may access. Here autocomplete is usually done by pressing the [[Tab key|Tab key]] key after typing the first several letters of the word. For example, if the only file in the current directory that starts with x is xLongFileName, the user may prefer to type x and autocomplete to the complete name. If there were another file name or command starting with x in the same scope, the user would type more letters or press the Tab key repeatedly to select the appropriate text
----
----
__NOTOC__
[[Category:Concept]]
[[Category:Concept]]
__NOTOC__
[[Category:Machine Learning]]

Latest revision as of 05:40, 18 August 2023

A Command-Line Auto-Completion Task is a Code Auto-Completion Task that can predict and make shell command suggestions to an user using a Command-Line Interface.



References

2019a

  • (Wikipedia, 2019) ⇒ https://en.wikipedia.org/wiki/Command-line_completion Retrieved:2019-10-12.
    • Command-line completion (also tab completion) is a common feature of command-line interpreters, in which the program automatically fills in partially typed commands.

      Command line interpreters are programs that allow a user to interact with the underlying operating system by typing commands at a command prompt using a command line interface (CLI), in contrast to pointing and clicking a mouse in a Graphical User Interface (GUI). Command-line completion allows the user to type the first few characters of a command, program, or filename, and press a completion key (normally ) to fill in the rest of the item. The user then presses or to run the command or open the file.

      Command-line completion is useful in several ways, as illustrated by the animation accompanying this article. Commonly accessed commands, especially ones with long names, require fewer keystrokes to reach. Commands with long or difficult to spell filenames can be entered by typing the first few characters and pressing a completion key, which completes the command or filename. In the case of multiple possible completions, some command-line interpreters, especially Unix shells, will list all possible completions beginning with those few characters. The user can type more characters and press again to see a new, narrowed-down list if the typed characters are still ambiguous, or else complete the command/filename with a trailing space. An alternate form of completion rotates through all matching results when the input is ambiguous.

      Completable elements may include commands, arguments, file names and other entities, depending on the specific interpreter and its configuration. Command-line completion generally only works in interactive mode. That is, it cannot be invoked to complete partially typed commands in scripts or batch files, even if the completion is unambiguous. The name tab completion comes from the fact that command-line completion is often invoked by pressing the tab key.

2019b

  • (Wikipedia, 2019) ⇒ https://en.wikipedia.org/wiki/Autocomplete#In_command-line_interpreters Retrieved:2019-10-12.
    • In a command-line interpreter, such as Unix's sh or bash, or Windows's cmd.exe or PowerShell, or in similar command line interfaces, autocomplete of command names and file names may be accomplished by keeping track of all the possible names of things the user may access. Here autocomplete is usually done by pressing the Tab key key after typing the first several letters of the word. For example, if the only file in the current directory that starts with x is xLongFileName, the user may prefer to type x and autocomplete to the complete name. If there were another file name or command starting with x in the same scope, the user would type more letters or press the Tab key repeatedly to select the appropriate text