1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 09:21:19 +02:00
Commit Graph

428 Commits

Author SHA1 Message Date
Sven Wischnowsky
3beeb8a6fd avoid reporting the same ->state more than once (11678) 2000-05-31 06:11:07 +00:00
Peter Stephenson
d7163e6369 _argument_sets removed from .distfile 2000-05-30 09:30:08 +00:00
Sven Wischnowsky
47c0bd0db1 fixes for _arguments without multiple sets; change completion test for empty actions (11647) 2000-05-30 07:49:00 +00:00
Bart Schaefer
61a2d24f54 11644: Use `print -s' in _complete_debug. 2000-05-30 03:57:39 +00:00
Bart Schaefer
ab0ec79c6b 11643: Updates for _rpm. 2000-05-30 03:54:35 +00:00
Bart Schaefer
76868bdc6a Add comment. 2000-05-29 20:00:38 +00:00
Sven Wischnowsky
acd0558e54 make _path_files use glob qualifiers from the line when doing pattern matching (11635) 2000-05-29 13:11:59 +00:00
Sven Wischnowsky
d22ee9a5ba keep information about things to complete in _arguments (11631) 2000-05-29 09:15:12 +00:00
Sven Wischnowsky
a2750a4eff fixes for _arguments with sets; make _zpty not use sets (11624) 2000-05-29 08:00:46 +00:00
Bart Schaefer
7a3ca7a673 11618: Fix bad shift. 2000-05-28 21:10:13 +00:00
Oliver Kiddle
24695d682f use of _arguments for completion of a couple more builtins (11615) 2000-05-28 19:40:22 +00:00
Clint Adams
5b463bddc6 11599: check for d&x bits on @INC directories in _perl_modules 2000-05-26 14:08:26 +00:00
Oliver Kiddle
b36b493313 Split _arguments calls into sets to avoid long mutex lists (11579) 2000-05-25 15:09:04 +00:00
Sven Wischnowsky
7fb99aadec beautify format of compdump file (11576) 2000-05-25 14:48:38 +00:00
Sven Wischnowsky
105456d250 fix for special-dirs when used with -g patterns (11570) 2000-05-25 12:01:37 +00:00
Sven Wischnowsky
6959ffd962 force listing in _complete_debug; make complist with list-scrolling stopt at the end of the list when prompt would scroll it out; fix _in_vared to handle `foo[bar]' (11565) 2000-05-25 07:58:44 +00:00
Sven Wischnowsky
8f7beea079 fix for comparguments to make -s have an effect again (11552) 2000-05-24 08:32:12 +00:00
Clint Adams
fae0b54f1c 11548: -h flag for ispell 2000-05-24 05:58:20 +00:00
Oliver Kiddle
b9195aa57d minor completion fixes (11541) 2000-05-23 18:06:32 +00:00
Oliver Kiddle
63b7b10355 Minor completion fixes (11541) 2000-05-23 18:03:12 +00:00
Oliver Kiddle
0735f0d889 Suffix handling improvements for url completion (11539) 2000-05-23 16:11:57 +00:00
Peter Stephenson
bfe6602d9e 11537: new _complete_tag function 2000-05-23 15:27:13 +00:00
Sven Wischnowsky
ee681a32ad use set -A' instead of eval' in more places (11525) 2000-05-23 08:54:30 +00:00
Oliver Kiddle
de2c2a89c6 Don't lose empty arguments (11517) 2000-05-22 18:15:53 +00:00
Peter Stephenson
bdfda774b7 11516: Completion/Core/compinstall: menu selection 2000-05-22 17:52:40 +00:00
Bart Schaefer
7d19431901 11515: Fix infinite loop. 2000-05-22 17:17:52 +00:00
Chmouel Boudjnah
bf40a2f40c Completion/Linux/_rpm: --buildarch is like --target 2000-05-22 14:11:34 +00:00
Sven Wischnowsky
30d8c23981 another fix for `select=long*' in menu style (11500) 2000-05-22 13:55:57 +00:00
Sven Wischnowsky
57658af8a5 fix for select-long-list in menu style (11497) 2000-05-22 12:22:48 +00:00
Sven Wischnowsky
fa50c70000 fix for clines in suffix (11496) 2000-05-22 12:14:37 +00:00
Sven Wischnowsky
91f40b975f be more careful when decided if to insert tabs instead of completing (11493) 2000-05-22 11:28:29 +00:00
Sven Wischnowsky
ce90081ea8 pat(-) in long-option patterns to say that argument should be completed only after the `='; merge _arguments and _argument_sets; slightly better test when not to complete options (11489) 2000-05-22 09:28:34 +00:00
Sven Wischnowsky
007cfdff55 fix for a-a-m-c in menu selection; scroll explanations onto screen again (11487) 2000-05-22 08:47:30 +00:00
Oliver Kiddle
f97eaa4579 Do a better job of completing suffixes in netscape remote commands (11471) 2000-05-19 18:44:21 +00:00
Peter Stephenson
8d17d2f02d 11467: [#<base>] syntax for output base
zsh-users/3071: compdump tweak to avoid // in path
2000-05-19 18:22:50 +00:00
Oliver Kiddle
e20600c8a4 Fix _su to use user's shell for completion after -c again 2000-05-19 16:19:39 +00:00
Bart Schaefer
aea69f6e64 11469: Locally unset the errexit option and ZERR trap. 2000-05-19 16:04:16 +00:00
Sven Wischnowsky
f9e65c2b1f don't use $match for something different than (#b)ackrefs (11464) 2000-05-19 08:24:16 +00:00
Sven Wischnowsky
191930e8fb fix for completion of `netscape -remote' (11460) 2000-05-18 11:04:34 +00:00
Sven Wischnowsky
ca670d4d27 allow _main_complete to call an arbitrary command given as arguments (11459) 2000-05-18 10:48:31 +00:00
Peter Stephenson
c515a58aca 11455: Completion/Core/_oldlist: old-menu defaults on 2000-05-18 08:59:29 +00:00
Sven Wischnowsky
7594cc1872 make _files remove backslashes in patterns (11453) 2000-05-18 07:18:57 +00:00
Peter Stephenson
3c77b96af5 11444: add old-list and old-menu to _zstyle 2000-05-17 15:54:38 +00:00
Sven Wischnowsky
f63d4066ba fix completion after tilde and equal sign inside quotes (11429) 2000-05-17 06:50:03 +00:00
Bart Schaefer
a04a3a9e65 Fix typos and remove RCS Id strings. 2000-05-16 16:21:33 +00:00
Tanaka Akira
26a467f406 11415: Completion/User/_cvs: follow the new matcher-list behaviour. 2000-05-16 16:04:04 +00:00
Sven Wischnowsky
d658d3e2bb fixed configuration of menu-selection with menu style; pseudo-context `-command-line-', handy for completion in vared (11408) 2000-05-16 11:44:57 +00:00
Sven Wischnowsky
95883d8b95 avoid tilde- and parameter-completion in quotes (11407) 2000-05-16 11:24:55 +00:00
Sven Wischnowsky
0129f41d80 make _arguments take the attempt to add matches as an indication not to do default option-completion (11406) 2000-05-16 11:15:24 +00:00
Sven Wischnowsky
aa17f0db6d fix scrolling in menu-selection with matches spanning multiple lines 2000-05-16 10:45:01 +00:00
Peter Stephenson
7a53d36f39 one hunk of 11381: typo in _vars_eq 2000-05-16 09:55:54 +00:00
Tanaka Akira
16ef2a7266 11396: Completion/User/_look: display a message when
an argument is empty.
2000-05-16 00:51:04 +00:00
Tanaka Akira
c5f1b07510 11394: Completion/User/_cvs: rewrite filename completion
functions.
2000-05-16 00:07:06 +00:00
Tanaka Akira
d1f844209e 11393: Completion/User/_diff_options: use `=-'. 2000-05-15 23:45:30 +00:00
Tanaka Akira
072be45ee5 11392: Completion/Core/_description: ignore-line fix. 2000-05-15 23:33:29 +00:00
Sven Wischnowsky
1dc5677a41 add _in_vared for completion inside vared; make insert-tab default to `false' there 2000-05-15 13:19:26 +00:00
Peter Stephenson
5ef2b518fd 11375: compinstall: menu style select=long and select=long-list 2000-05-15 12:51:59 +00:00
Sven Wischnowsky
3f630b6abf followup for 11364 (11367) 2000-05-15 10:45:24 +00:00
Sven Wischnowsky
6d4bdb661d fix for suffix-matching; better in-path completion in _path_files (11364) 2000-05-15 09:34:11 +00:00
Oliver Kiddle
6ff206e057 Add -L option to the hash builtin 2000-05-15 00:31:20 +00:00
Peter Stephenson
26cc1ad1df doc changes; typo in _jobs; integer builtin understands `-i base' 2000-05-14 22:08:41 +00:00
Sven Wischnowsky
a6ed22c585 fix for completing options with _arguments -s'; fix for _message to use builtin compadd' (11349) 2000-05-12 14:36:46 +00:00
Oliver Kiddle
56caa787a6 Use _arguments for hash completion and add + options for typeset (11347) 2000-05-12 13:16:52 +00:00
Bart Schaefer
1452bfe101 11332: Test descriptors correctly for redirect/restore of stderr; plus an
aesthetic tweak.
2000-05-12 02:31:05 +00:00
Oliver Kiddle
a39eb7948e Back out 11327 and make the correct fix in _groups (redirect ypcat to stderr) 2000-05-11 16:14:58 +00:00
Oliver Kiddle
cd65b9b4bb _call should pass on the return code from the called command (11327) 2000-05-11 15:32:35 +00:00
Sven Wischnowsky
567e221218 make _argument_sets add the options as defaults when there is nothing else to complete (11324) 2000-05-11 11:27:39 +00:00
Sven Wischnowsky
51511cd7c8 _files used alternative tag-order values even if not needed (11321) 2000-05-11 09:12:57 +00:00
Sven Wischnowsky
8e7e17237e allow internally-mutually exclusive sets in _argument_sets; fixes for _argument_sets and the C-code for it (11320) 2000-05-11 08:54:47 +00:00
Sven Wischnowsky
d3620a02df make ^G in menu-selection restore the old command line; add select=long* values for menu style to start menu-selection if list is too long for screen (11319) 2000-05-11 08:40:09 +00:00
Oliver Kiddle
16c04c29da Fix breakage from 11195 (11300) 2000-05-10 14:27:04 +00:00
Peter Stephenson
9a670c67eb 11287: Naoki Wakamatsu: compinstall spaces to be tab 2000-05-10 08:46:45 +00:00
Sven Wischnowsky
aa4a931544 update `%p' replacement in _files (11292) 2000-05-10 08:00:05 +00:00
Tanaka Akira
78e327861c revert 11280 2000-05-10 07:15:33 +00:00
Bart Schaefer
4c1d37d7d0 11288: Reopen stdin on /dev/null to avoid confusing programs that don't
expect it to be closed.
2000-05-10 04:55:10 +00:00
Oliver Kiddle
d624558051 Use _math for completing the let builtin 2000-05-09 17:16:08 +00:00
Oliver Kiddle
f9938ba951 complete using _arguments for typeset and its variants (11282) 2000-05-09 16:53:34 +00:00
Tanaka Akira
dff7eff11b 11280: Completion/User/_make: suppress an error with closed stdin
on OpenBSD.

11278: Completion/User/_ssh: disable forwarding to use ssh.
2000-05-09 12:13:38 +00:00
Sven Wischnowsky
8c6a5af791 give control over insertion of tab when no non-blank character before cursor; add insert-tab style (11274) 2000-05-09 11:04:44 +00:00
Sven Wischnowsky
8a5fb55595 option name clash in _arguments (11273) 2000-05-09 09:52:27 +00:00
Sven Wischnowsky
6626f6dc86 fix for _arguments without options and no more arguments to complete (11272) 2000-05-09 09:44:26 +00:00
Sven Wischnowsky
cfcb3202ef more problems with optional arguments in _arguments (11253) 2000-05-08 10:37:58 +00:00
Peter Stephenson
38bb84d975 11194, 11200, 11214 2000-05-08 08:58:37 +00:00
Sven Wischnowsky
bedd4cf2c5 make _expand call _complete when called from _expand_word; add ignore-line style to ignore words already on the line (11244) 2000-05-08 08:44:52 +00:00
Sven Wischnowsky
92637abbb8 misc. completion cleanups and changes (11242) 2000-05-08 08:16:32 +00:00
Bart Schaefer
c15091b7d1 11236: Handle tabs between options and their descriptions when parsing --help. 2000-05-06 18:48:26 +00:00
Tanaka Akira
bec1ee9e6a add _look. 2000-05-06 16:14:56 +00:00
Tanaka Akira
c1dc0ffe4f 11223: Completion/Base/_regex_arguments, Completion/Debian/_apt,
Completion/X/_xset, Completion/X/_xwit, Doc/Zsh/compsys.yo:
_regex_arguments use _alternative.
2000-05-06 07:59:52 +00:00
Tanaka Akira
b3e51a037e 11219: Completion/User/_cvs, Completion/User/_diff_options: add
option description to `_cvs' and fix typo in _diff_options.
2000-05-05 20:36:13 +00:00
Tanaka Akira
ea333ddca6 11213: Completion/User/_cvs: don't complete files which is
already on command line for `cvs add', `cvs remove' and `cvs commit'.
2000-05-05 16:17:38 +00:00
Tanaka Akira
c3f2434dfa 11204: Completion/User/_look: use more precise explanation and
complete an optional second argument.
2000-05-05 14:47:54 +00:00
Sven Wischnowsky
9f9b6e1655 completion function cleanup for _arguments' with the -C' option and using it's return value (11195) 2000-05-05 13:38:45 +00:00
Tanaka Akira
057e9700ec 11190: Completion/User/_look: new completion for look. 2000-05-05 11:33:28 +00:00
Sven Wischnowsky
e42717d18f make _message independent of when it is called (11188) 2000-05-05 11:21:50 +00:00
Oliver Kiddle
93fb9aaec5 Use one function for compression/decompression programs and new lzop completion 2000-05-05 10:08:25 +00:00
Tanaka Akira
6a93b85903 11166: Completion/Base/_regex_arguments: remove debugging code. 2000-05-04 20:46:57 +00:00
Tanaka Akira
3e7a2a41bc 11165: Completion/Base/_regex_arguments, Completion/Debian/_apt,
Completion/X/_xset, Completion/X/_xwit, Doc/Zsh/compsys.yo,
Src/Modules/zutil.c: _regex_arguments support tag stuff.
2000-05-04 20:16:09 +00:00
Tanaka Akira
672f5c459e 11157: Completion/Core/_requested: fail if _all_labels is failed. 2000-05-04 16:19:06 +00:00
Sven Wischnowsky
4414e16a6a don't list when all matches look the same; force-list style to give users control over this (11140) 2000-05-04 07:44:21 +00:00
Sven Wischnowsky
aa0381bd2b allow `-' in exclusion lists for _arguments, to avoid completing all options (11121) 2000-05-03 14:44:01 +00:00
Sven Wischnowsky
cdbbb405de Andrej: handle -t option in _zcompile (11067) 2000-05-03 12:26:20 +00:00
Sven Wischnowsky
0d6350d65a remove backslashes before $' in _expand when substitute' is unset; fix for clearing end-of-list lines in menu-selection (11110) 2000-05-03 11:52:00 +00:00
Tanaka Akira
d981fc1316 add _xauth. 2000-05-03 11:49:13 +00:00
Tanaka Akira
5e3e05a607 11109: Completion/X/_xauth: new completion for xauth. 2000-05-03 11:38:32 +00:00
Tanaka Akira
0a36137dda 11106: Completion/User/_mount: fix glob for device files. 2000-05-03 11:25:12 +00:00
Sven Wischnowsky
b5594215dd make sure that completion messages are displayed even when there are no matches (11092) 2000-05-03 08:35:33 +00:00
Bart Schaefer
966eca4ad8 11036, 11063, 11077: Always write the "read -q" prompt to shout; eliminate
some redundant close() calls; relocate a misplaced redirection.
2000-05-02 15:52:43 +00:00
Oliver Kiddle
f3be526791 Small fix to avoid using slashes in temporary file name (11065) 2000-05-02 11:56:27 +00:00
Sven Wischnowsky
997d40c05d add -x option to compadd to display message unconditionally 2000-05-02 10:30:41 +00:00
Sven Wischnowsky
2c7f678ff0 always use empty matcher-list style in _complete_help (11053) 2000-05-02 09:10:52 +00:00
Sven Wischnowsky
753cc6b22a completion cleanup, mostly _wanted and $expl (11049) 2000-05-02 08:23:31 +00:00
Sven Wischnowsky
3d088f16aa make completion-in-vared complete parameter values as default; cleanup for _path_files (11048) 2000-05-02 08:18:54 +00:00
Sven Wischnowsky
e102702cd5 completion doc fixes and cleanup; _sort_tags updated (11047) 2000-05-02 08:14:28 +00:00
Bart Schaefer
7e5ee56443 don't fail on nonexistent ~/.nedit file. 2000-05-01 18:14:08 +00:00
Oliver Kiddle
bfa1e27434 Use of _arguments in _bzip2 (11041) 2000-05-01 15:26:01 +00:00
Peter Stephenson
f9b13e01d8 11033: 3.1.7-pre-2 2000-04-30 21:04:54 +00:00
Clint Adams
04c1d78c5a completion for joe 2000-04-30 16:06:09 +00:00
Bart Schaefer
5c327339f5 11024: The _complete_debug widget enables and captures xtrace from completion. 2000-04-30 10:04:29 +00:00
Adam Spiers
0d437ea729 11017: Completion/Linux/_rpm: fixes for --rmsource and --recompile
options, and for breakage caused by 10772
2000-04-29 15:53:22 +00:00
Peter Stephenson
b7e5949279 11013: more compinstall fixes 2000-04-28 17:44:45 +00:00
Sven Wischnowsky
a3cf03751a Tanaka: printer-detection moved to new _printers; used by _enscript (11001) 2000-04-28 11:20:55 +00:00
Peter Stephenson
bcb9190ff9 10999: compinstall fixes 2000-04-28 09:31:54 +00:00
Bart Schaefer
05d09daba6 10980: Tanaka's enscript completion. 2000-04-28 00:59:40 +00:00
Peter Stephenson
5e328e37ec 10985: compinstall enhancements 2000-04-27 20:44:47 +00:00
Sven Wischnowsky
37d14cab88 new _history completer (10979) 2000-04-27 14:16:15 +00:00
Sven Wischnowsky
df82526ec8 use $words[1] to call make in _make and throw away stderr and use _call (10977) 2000-04-27 12:44:21 +00:00
Sven Wischnowsky
5d89ce8e65 ensure $PWD is prepended to cache-names for long options in _arguments (10974) 2000-04-27 12:07:35 +00:00
Sven Wischnowsky
a2365a9c6a fix for automatic option-argument completion with partially typed option in _arguments (10967) 2000-04-27 09:36:51 +00:00
Sven Wischnowsky
5d4139d421 document _wanted -C; fix for call to _wanted in _urls (10965) 2000-04-27 09:24:37 +00:00
Sven Wischnowsky
ad31ce0db8 renamed parameters for menu selection to MENUSELECT, MENUPROMPT and MENUSCROLL; no special value for LISTMAX to turn on list scrolling, this is done by setting LISTPROMPT now; default values for LISTPROMPT and MENUPROMPT when set but empty (10959) 2000-04-27 08:21:10 +00:00
Adam Spiers
d00d0f0efa added warning to _perl_modules for when perl not found on path (10949) 2000-04-27 00:05:53 +00:00
Sven Wischnowsky
07dd916621 ensure options are set as expected in _history_complete_word and _bash_completions (10933) 2000-04-26 13:13:52 +00:00
Sven Wischnowsky
3743621b21 new file 2000-04-26 08:39:24 +00:00
Sven Wischnowsky
43cd27bb7d *** empty log message *** 2000-04-26 08:38:51 +00:00
Sven Wischnowsky
96a30526c2 better perl module completion from Adam (10892) 2000-04-26 08:36:43 +00:00
Sven Wischnowsky
0c4eb61e90 new completion for GNU zip from Tanaka (10890) 2000-04-26 08:34:13 +00:00
Sven Wischnowsky
f336784846 new completion function for xset from Tanaka (10885) 2000-04-26 08:31:20 +00:00
Sven Wischnowsky
ddb16a1b2b allow to anchor on gaps between strings in matching control specs (10926) 2000-04-26 06:54:26 +00:00
Sven Wischnowsky
18c11b0758 better default value for list-prompt style (10923) 2000-04-26 06:26:49 +00:00
Sven Wischnowsky
bfa4f17652 file-sort made $fignore fail (10922) 2000-04-26 06:12:25 +00:00
Sven Wischnowsky
d3c918b863 re-calculate number of line with mark when needed; make default prompts more consistent (10916) 2000-04-25 12:19:45 +00:00
Sven Wischnowsky
2f90974c38 small fix for _requested to be able to use _all_labels from within it (10910) 2000-04-25 11:00:06 +00:00
Sven Wischnowsky
6623bb41b9 report prefix/suffix of parameter expansion in IPREFIX/ISUFFIX; make _expand use them to be able to expand $foo (10909) 2000-04-25 10:28:11 +00:00
Sven Wischnowsky
d49da60670 make _arguments use more than one action when appropriate; add _argument_sets to complete different sets of arguments and options for the same command (10908) 2000-04-25 09:48:08 +00:00
Bart Schaefer
fc56c62312 Things that are in the ChangeLog but that somehow didn't get changed. 2000-04-25 04:50:52 +00:00
Oliver Kiddle
3e77ff98c4 Add new completions for AIX commands 2000-04-20 10:47:00 +00:00
Sven Wischnowsky
4debe47da5 new completions for FreeBSD commands (10861) 2000-04-20 09:45:04 +00:00
Sven Wischnowsky
c9bedcd989 default values for styles in _expand_word, listing expansions with ^Xd, _expand uses add-space style (10854) 2000-04-20 08:04:56 +00:00
Oliver Kiddle
a903dcba4f Add completion for file descriptors 2000-04-20 00:48:27 +00:00
Oliver Kiddle
2203c91cf1 10833: new print completion and complete nothing for clear and logname 2000-04-19 14:48:48 +00:00