Package pyraf :: Module irafcompleter :: Class IrafCompleter
[hide private]
[frames] | no frames]

Class IrafCompleter

source code

rlcompleter.Completer --+
                        |
                       IrafCompleter

Instance Methods [hide private]
 
__init__(self)
Create a new completer for the command line.
source code
 
activate(self, char="\t")
Turn on completion using the specified character
source code
 
deactivate(self)
Turn off completion, restoring old behavior for character
source code
 
executive(self, elist)
Add list of executive commands (assumed to start with '.')
source code
 
global_matches(self, text)
Compute matches when text is a simple name.
source code
 
get_line_buffer(self)
Returns current line through cursor position with leading whitespace stripped
source code
 
primary_matches(self, text)
Return matches when text is at beginning of the line
source code
 
secondary_matches(self, text, line)
Compute matches for tokens when not at start of line
source code
 
argument_matches(self, text, taskname, line)
Compute matches for tokens that could be file or parameter names
source code
 
filename_matches(self, text, line)
return matching filenames unless text contains wildcard characters
source code
 
_dir_matches(self, text, dir)
Return list of files matching text in the given directory
source code
 
attr_matches(self, text)
Compute matches when text contains a dot.
source code
 
executive_matches(self, text)
Return matches to executive commands
source code
 
taskdot_matches(self, fields)
Return matches for iraf.package.task.param...
source code

Inherited from rlcompleter.Completer: complete

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Create a new completer for the command line.

Completer([namespace]) -> completer instance.

If unspecified, the default namespace where completions are performed is __main__ (technically, __main__.__dict__). Namespaces should be given as dictionaries.

Completer instances should be used as the completion mechanism of readline via the set_completer() call:

readline.set_completer(Completer(my_namespace).complete)

Overrides: rlcompleter.Completer.__init__
(inherited documentation)

global_matches(self, text)

source code 

Compute matches when text is a simple name.

Return a list of all keywords, built-in functions and names currently defined in __main__ that match. Also return IRAF task matches.

Overrides: rlcompleter.Completer.global_matches

attr_matches(self, text)

source code 

Compute matches when text contains a dot.

Overrides: rlcompleter.Completer.attr_matches