Name : perl-Complete-Tcsh
| |
Version : 0.30.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-08-08 21:25:13
|
Group : Unspecified
| Source RPM : perl-Complete-Tcsh-0.30.0-lp156.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Completion module for tcsh shell
|
Description :
tcsh allows completion to come from various sources. One of the simplest is from a list of words:
% complete CMDNAME \'p/*/(one two three)/\'
Another source is from an external command:
% complete CMDNAME \'p/*/`mycompleter --somearg`/\'
The command receives one environment variables \'COMMAND_LINE\' (string, raw command-line). Unlike bash, tcsh does not (yet) provide something akin to \'COMP_POINT\' in bash. Command is expected to print completion entries, one line at a time.
% cat foo-complete use Complete::Tcsh qw(parse_cmdline format_completion); use Complete::Util qw(complete_array_elem); my ($words, $cword) = AATT{ parse_cmdline() }; my $res = complete_array_elem(array=>[qw/--help --verbose --version/], word=>$words->[$cword]); print format_completion($res);
% complete foo \'p/*/`foo-complete`/\' % foo --v< Tab> --verbose --version
This module provides routines for you to be doing the above.
Also, unlike bash, currently tcsh does not allow delegating completion to a shell function.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch |