Browse Prior Art Database

Context-based Command Line Completion Disclosure Number: IPCOM000029068D
Original Publication Date: 2004-Jun-15
Included in the Prior Art Database: 2004-Jun-15
Document File: 1 page(s) / 32K

Publishing Venue



This article describes an advancement on command line auto-completion whereby the context of the command line determines the suggestion list.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 66% of the total text.

Page 1 of 1

Context-based Command Line Completion

Main Idea

Currently, shell software for command-line completion exists which does the following: - Based on the current "word", discovers possible completions and compiles an internal list. - Depending on user action, either completes as much as possible (i.e. up to the point where list entries are still common) or displays the list.

The existing software compiles the list in one of two ways: - If attempting to complete the first "word" on the command line, the list consists of commands available in the user's PATH. - If attempting to complete any other word, the list consists of directory/file names relative to the current working directory.

The purpose is to avoid typing, prevent spelling mistakes, and also to provide a list for informational purposes. This solution, while useful, is extremely limited in that it only attempts to complete command or directory/file names. This invention will make command-line completion "smarter" - to give the appearance of anticipating the command-line with greater accuracy.

This invention focusses on the phase where the completion list is compiled. We propose that the nature of the completion list should be sensitive to the context in which the completion is invoked. For example (assuming <TAB> is the completion key), typing telnet d<TAB> would list daewoo, dart, datsun, desoto, detomaso - i.e. the list would consist of machine names rather than directory/file names.

The invention consists...