1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-26 18:01:03 +02:00
Commit graph

260 commits

Author SHA1 Message Date
Oliver Kiddle
ed89700265 17503: fix various typos, spelling mistakes and poor wordings in the docs 2002-08-05 12:33:27 +00:00
Sven Wischnowsky
053629183d add new sepcial context -assign-parameter- for completing the parameter in an assignment (17387) 2002-07-01 08:25:15 +00:00
Sven Wischnowsky
d28f67623f two new modes for menu selection: incremental search and interactive (17366) 2002-06-26 11:07:42 +00:00
Sven Wischnowsky
70120f22ee rename max-match-length style to max-matches-width (17213) 2002-05-23 12:16:42 +00:00
Sven Wischnowsky
b0e4b61a82 allow users to give the maximum number of display-columns the matches should take up via the style currently named max-match-length (17147) 2002-05-14 08:01:12 +00:00
Sven Wischnowsky
1acda13c70 fix doc for _describe, mention -t option (17146) 2002-05-14 07:54:23 +00:00
Andrey Borzenkov
42080a7fb9 17080: tag-order style usage 2002-05-08 09:11:28 +00:00
Oliver Kiddle
41eb475f9b 16923: add insert style for inserting matches instead of adding them as a match 2002-04-04 10:45:59 +00:00
Oliver Kiddle
ac88d2bbef 16913: fix completion after compdef -a and correct typos 2002-03-27 16:10:07 +00:00
Oliver Kiddle
6f1bb6147a alter _generic example to be more robust 2002-03-27 14:36:12 +00:00
Bart Schaefer
35352d833b Add missing close-paren 2002-03-17 17:14:09 +00:00
Oliver Kiddle
79323d6d41 16842: resolve name clash for nc between netcat and the nedit client for
completion and add _pick_variant to resolve program variants in general
2002-03-15 16:26:08 +00:00
Sven Wischnowsky
45f9a36216 remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819) 2002-03-13 09:28:04 +00:00
Sven Wischnowsky
f56ba813bb allow different sets of completion definitions selected with option -T to compdef; use this for parameter values and redirections (16755) 2002-03-04 08:53:41 +00:00
Sven Wischnowsky
8dcd8e54c5 make _guard use _mesage -e'; make _message -e' use $curtag as a default; change uses of _guard (16708) 2002-02-25 09:09:31 +00:00
Sven Wischnowsky
becf65dd7f allow an argument containing only a single colon as a separator between options to _arguments and specs (16669) 2002-02-18 14:36:01 +00:00
Bart Schaefer
d4a5b9916f Add a special-dirs example. 2002-02-12 17:25:18 +00:00
Sven Wischnowsky
77339cc21d add -x option (to be passed on to compadd) to _description and friends; make _message respect any -[12VJ] options it gets, adding the message to that group (16609) 2002-02-12 13:37:00 +00:00
Bart Schaefer
a11b60569b 16419: Improve _arguments syntax summary. 2002-01-26 21:08:26 +00:00
Sven Wischnowsky
3807c902a2 add new generic fake style and changes to the C-code for that (different implementation of compadd -x) (16483) 2002-01-22 10:22:47 +00:00
Sven Wischnowsky
f463b09b13 allow arguments to be given to functions used by compdef (actually, the strings are eval'uated, so this should be powerful enough) (16472) 2002-01-21 16:13:15 +00:00
Sven Wischnowsky
5659f442c0 allow manual pages to be shown separated by section with new separate-sections style (16426) 2002-01-10 11:00:05 +00:00
Oliver Kiddle
95abfc0e2a 16398: updated zstyle completion and related cleanup 2002-01-04 12:09:29 +00:00
Clint Adams
175ae571f3 16006: use styles for mail directory, pine directory, and muttrc. 2001-10-10 20:10:44 +00:00
Sven Wischnowsky
933813e971 change file completion default to offer globbed files and directories on first try (15995) 2001-10-09 12:56:02 +00:00
Sven Wischnowsky
22d506ed6b make expand style (file completion) work again; no more special behaviour with menu completion; try to make docs clearer (15944) 2001-10-05 11:18:36 +00:00
Adam Spiers
a4ba95139d unposted: Add missing docs for cache-policy style. 2001-08-15 13:50:02 +00:00
Sven Wischnowsky
7e23143359 follow-up to 15588; add -w option to _values (look at all words); change _dd back (15597) 2001-08-08 07:20:56 +00:00
Oliver Kiddle
9c5a1ba117 correction (unposted) 2001-08-06 15:56:23 +00:00
Sven Wischnowsky
c83d16f8ee another fix for 15477 (separator strings); add list-separator style (15484) 2001-07-25 12:18:23 +00:00
Sven Wischnowsky
8c1b953b5a add list-grouped option to make options and such be grouped together if they have the same description; matches with line-display strings can be hidden; hi and du capabalities in complist are only used if set by the user (15407) 2001-07-18 13:10:07 +00:00
Sven Wischnowsky
72b56dc458 add preserve-prefix style to keep pathname prefix unchanged (15400) 2001-07-17 09:04:29 +00:00
Sven Wischnowsky
78087d2e8d (14736) 2001-06-06 09:50:39 +00:00
Oliver Kiddle
63a32f3c34 correct alphabetical order in lists of styles, tags, functions and modules 2001-05-31 11:58:40 +00:00
Oliver Kiddle
56528ccb66 spelling corrections 2001-05-29 17:54:08 +00:00
Clint Adams
da9fa61207 14509: ZLS_COLOURS/ZLS_COLORS consistency 2001-05-28 16:01:01 +00:00
Sven Wischnowsky
e859ee1a4b add description of how to add a auto-removable suffix when using a ->state action with _values (14279) 2001-05-09 08:55:58 +00:00
Sven Wischnowsky
83032fe876 add -S option to specify separator between values and their arguments; make _values add the value-separator as a suffix for most types of actions (14257) 2001-05-08 12:24:21 +00:00
Sven Wischnowsky
ff82191c26 empty description means: don't add a -X option (14252) 2001-05-08 08:46:59 +00:00
Sven Wischnowsky
6f2112f23a try to improve testing for suffix style in _expand; make _path_files fail to complete words like ...<pat>..<param-subst>... (14133) 2001-04-27 09:12:33 +00:00
Sven Wischnowsky
b4b6d57e2c 14117 2001-04-26 14:40:11 +00:00
Sven Wischnowsky
727912d1cb handle sub-sub-directories of $_compdir as in the CVS-layout (14107) 2001-04-26 13:03:24 +00:00
Sven Wischnowsky
aa99b19c08 rename -W option to -w, add new -W option which makes _arguments complete options even after options that get their argument in the same word; new _guard function for conditionally displaying messages (14105) 2001-04-26 12:13:36 +00:00
Sven Wischnowsky
163b0101ed add -W option to _arguments, which allows to complete options after options that take an argument in the next word (13902) 2001-04-04 11:29:19 +00:00
Sven Wischnowsky
3d7263ff67 after-move cleanup 2001-04-02 13:04:04 +00:00
Oliver Kiddle
b9c58a73ac various doc fixes and minor completion function changes, most of which
are to use the -A "-*" and -S options to _arguments (13863)
2001-04-01 16:19:15 +00:00
Sven Wischnowsky
8d610f7724 more cleanup; simplify the stop and liststyles; try to make it obey whatever _main_complete says should be done (menu-wise) (13815) 2001-03-28 12:17:12 +00:00
Sven Wischnowsky
6a62ae3564 replace path' with more general urls' style (13814) 2001-03-28 11:26:05 +00:00
Sven Wischnowsky
e48f71e216 make _arguments return 300 only if given the -R option (13790) 2001-03-27 13:03:49 +00:00
Sven Wischnowsky
ea08ba3cea _pids shouldn't start menu completion if the current word starts with a hyphen; typo fix in compsys.yo (13763) 2001-03-26 08:27:03 +00:00
Sven Wischnowsky
6fda33d3ab fix 2001-03-23 12:52:39 +00:00
Sven Wischnowsky
9ef6eed52a add commands and call-command styles; mention some of the more expensive things about completion setup in the docs (13727) 2001-03-23 12:44:21 +00:00
Oliver Kiddle
f18221fbb0 spelling corrections (13610) 2001-03-12 17:39:22 +00:00
Andrey Borzenkov
eeebe3e4ec 13544, 13568 (Peter): + syntax for matchers in matcher-list to augment
previous list
2001-03-06 07:47:26 +00:00
Sven Wischnowsky
3e6563dd03 new _expand_aliases to, well, expand aliases (13566) 2001-03-05 13:18:59 +00:00
Sven Wischnowsky
ca585f812b add `services', allowing easier re-use of (parts of) completion functions (13346) 2001-01-15 09:11:31 +00:00
Sven Wischnowsky
e0dc80e0e5 aloow value `pattern' for insert-unambiguous style to preserve patterns in the original string; add list-suffixes style to make file completion list path suffixes if possible; slightly improved completion of pathnames with multiple pattern-components (13128) 2000-11-08 09:20:42 +00:00
Sven Wischnowsky
865f3961b7 change some tags used in filename completion: no tag for file-sort, fake-files and ignore-parents, paths for accept-exact (13037) 2000-10-23 08:07:32 +00:00
Sven Wischnowsky
f23b23e8a3 remove possibility for func() entries in tag-order style, can be done using zstyle -e (12974) 2000-10-12 08:28:26 +00:00
Sven Wischnowsky
17e2003c5c rename fake style to fake-files (12973) 2000-10-12 07:08:43 +00:00
Sven Wischnowsky
adf7965951 add _all_matcher completer and supporting C-code for adding a special match representing all other matches; remove completions style from _expand(|_word) (12960) 2000-10-11 12:19:23 +00:00
Sven Wischnowsky
7b35c8639c *** empty log message *** 2000-10-10 14:12:41 +00:00
Sven Wischnowsky
62df18f0d8 cleanup (12896) 2000-10-05 08:41:35 +00:00
Sven Wischnowsky
0f2250de44 complete after autoloaded directories (a rather ugly hack); remove old code in _files (comma separated patterns); improve docs for fake style and for comma separated qualifier lists (12892) 2000-10-05 07:31:00 +00:00
Bart Schaefer
430e294795 Fiddle with _expand_word and its doc. 2000-09-21 05:16:21 +00:00
Bart Schaefer
dc1f7c5a34 Create "User Contributions" doc and make some assoctiated changes. 2000-09-04 21:10:29 +00:00
Bart Schaefer
968c9f5f99 12716: Document and index REPLY/reply paramters properly. 2000-08-29 06:35:39 +00:00
Sven Wischnowsky
0352b80797 call ps only once and be more intelligent when finding the PIDs (12640) 2000-08-15 09:31:18 +00:00
Oliver Kiddle
29255612ee Minor documentation fixes (12585) 2000-08-10 23:06:42 +00:00
Oliver Kiddle
5851a32681 add -g option to _parameters to restrict type of parameters completed (12583) 2000-08-10 21:22:25 +00:00
Adam Spiers
fd15ea0fb5 12486: new completion caching layer 2000-08-02 13:45:51 +00:00
Sven Wischnowsky
b2aebcad02 if compcontext is an assoc, the keys are the completions and the values are their descriptions (12483) 2000-08-02 10:36:19 +00:00
Sven Wischnowsky
cd2984fb66 make $compcontext more powerful and easier to use for simple cases 2000-08-01 07:19:15 +00:00
Sven Wischnowsky
a2f2ae4f5a clarify manual for menu style; select= and yes= may be given both a number and one of the long* values at the same time (12438) 2000-07-31 08:06:37 +00:00
Sven Wischnowsky
3343c75efd fix a bug that started menu selection too often; fix bug for `yes=long' and document it (12405) 2000-07-27 10:59:43 +00:00
Bart Schaefer
04aaf1cd7f Move compinit security checks into compaudit. 2000-07-26 08:54:58 +00:00
Sven Wischnowsky
046f5da3aa fix for list-prompt docs (12229) 2000-07-12 10:36:22 +00:00
Oliver Kiddle
b0337944b4 mention more standard tags in documentation and fix some typos (12177) 2000-07-05 21:05:57 +00:00
Peter Stephenson
044e8e054c 12140: make key rebinding for _expand complter easier 2000-07-03 14:00:44 +00:00
Sven Wischnowsky
0ddb4fb835 change format style with warnings tag, don't add descriptions as matches; make a-a-i-n-h in menu selection work even without matches (12134) 2000-07-03 08:05:27 +00:00
Sven Wischnowsky
d01795be2a reverse meaning of yes=num again (12122) 2000-06-29 09:32:04 +00:00
Sven Wischnowsky
d15f36ab5b change suffix style to still do expansion if the suffix contains something to expand (12115) 2000-06-29 07:10:31 +00:00
Sven Wischnowsky
4e2e7f292f even more fun with the menu style (no=num, yes=long-list, reverse meaning of yes=num) (12114) 2000-06-29 07:04:17 +00:00
Sven Wischnowsky
fde669f76d misc 2000-06-28 09:08:03 +00:00
Bart Schaefer
f889ebfaa3 12086: Alphabetize. 2000-06-28 04:09:56 +00:00
Sven Wischnowsky
9eca7fc726 menu style accepts yes=x to start menu completion if there are at least x matches (3219) 2000-06-27 15:05:33 +00:00
Sven Wischnowsky
07aec026b6 document _use_lo (12082) 2000-06-27 13:22:53 +00:00
Sven Wischnowsky
b9a533f382 allow subscripts for compadd -[ak]; new style for history completion; better list-colors handling (12029) 2000-06-22 08:42:36 +00:00
Sven Wischnowsky
cd335e489a *** empty log message *** 2000-06-20 07:16:27 +00:00
Sven Wischnowsky
c071087d1f _arguments: small fix for -s and new `!...' for things not to complete (but to understand) (11985) 2000-06-19 13:09:06 +00:00
Sven Wischnowsky
a295e82c1e allow _expand to expand braces; better detection of braces to complete in C (11973) 2000-06-19 09:55:31 +00:00
Sven Wischnowsky
2769b19881 improve filename completion; use accept-exact for in-path completion; new fake style (11971) 2000-06-19 09:32:30 +00:00
Sven Wischnowsky
4299878002 restore ZLS_COLORS when possible; better group-name handling in ZLS_COLORS (3188) 2000-06-19 08:47:43 +00:00
Sven Wischnowsky
ae2b3953df enhance ignore-line to ignore all/current/other word(s) (11938) 2000-06-16 07:38:59 +00:00
Sven Wischnowsky
0b892d4492 zstyle -e option; change math-styles to boolean ones; change defaults for _expand styles (11937) 2000-06-16 07:31:09 +00:00
Sven Wischnowsky
818cba3dbf make _files try each pattern only once (and stop after `*') (11915) 2000-06-15 09:06:21 +00:00
Sven Wischnowsky
9310826027 make -A take a pattern as argument to match non-arguments; allow single-letter option strings to have multiple arguments; fix to allow option completion with multiple sets (?) 2000-06-13 12:14:32 +00:00
Sven Wischnowsky
bde4cfde51 new _generic widget to call completion with $WIDGET in function field of context (?) 2000-06-13 11:55:06 +00:00
Sven Wischnowsky
a707108a75 allow insert-tab to contain `pending[=num]' to handle the case when there is pending input (?) 2000-06-13 11:45:26 +00:00
Sven Wischnowsky
428abf6455 new style `suffix'; use accept-exact style in _expand (?) 2000-06-13 11:26:07 +00:00
Sven Wischnowsky
0526e9b5c7 trying to improve _expand; new keep-prefix style, add-space gives more control (11815) 2000-06-08 08:39:50 +00:00
Sven Wischnowsky
08ddb2593b doc fix, missing `)' (11638) 2000-05-29 14:48:38 +00:00
Sven Wischnowsky
fb9ec18e9a make handling of default tag clearer in the docs (3101) 2000-05-29 12:52:20 +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
53573eaffb 11554: Rearrange _arguments doc some more. 2000-05-24 09:14:34 +00:00
Peter Stephenson
72639fca30 11542: Doc/Zsh/compsys.yo: more wording `improvements' 2000-05-23 19:25:49 +00:00
Peter Stephenson
bfe6602d9e 11537: new _complete_tag function 2000-05-23 15:27:13 +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
Bart Schaefer
d28807ea39 11477: Alphabetize itemized lists. 2000-05-20 18:18:08 +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
Sven Wischnowsky
781a5bd4b1 small doc fix; make compcall autoload compctl module (11457) 2000-05-18 09:22:31 +00:00
Peter Stephenson
53f2284045 11448: doc changes 2000-05-17 21:28:30 +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
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
26cc1ad1df doc changes; typo in _jobs; integer builtin understands `-i base' 2000-05-14 22:08:41 +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
ed8b82b9b1 Spelling corrections in the docs (11315) 2000-05-11 00:01:03 +00:00
Sven Wischnowsky
2da726eaf1 more fixes for _arguments and its docs (11298) 2000-05-10 11:53:05 +00:00
Sven Wischnowsky
0f7d06b4e5 misc. _arguments fixes 2000-05-10 09:22:49 +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
125dc0d4f2 new -A and -S options to _arguments; -opt=-' specs for options whose argument has to come after the =' (11270) 2000-05-09 09:05:34 +00:00
Oliver Kiddle
e5eb094bf3 minor doc fixes (11268) 2000-05-08 18:14:46 +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
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
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
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
43e44f06b7 more doc fixes (11094) 2000-05-03 08:46:52 +00:00
Sven Wischnowsky
48cd3184fb two more doc fixes (11060) 2000-05-02 11:20:10 +00:00
Sven Wischnowsky
e102702cd5 completion doc fixes and cleanup; _sort_tags updated (11047) 2000-05-02 08:14:28 +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
cb9408982f 11019: fix bug in _description example 2000-04-29 22:09:04 +00:00
Sven Wischnowsky
36023fdada move compctl docs behind compsys, mention `zcompile -z' in compsys (11008) 2000-04-28 13:20:11 +00:00
Sven Wischnowsky
37d14cab88 new _history completer (10979) 2000-04-27 14:16:15 +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
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
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
Sven Wischnowsky
6a7c002a7c default for list-prompt style, %[MLP] use fixed-width strings, %[mlp] use variable-width strings (10816) 2000-04-19 06:49:36 +00:00
Sven Wischnowsky
fe65ab1dd8 completion list scrolling cleanup; *STATUS renamed to *PROMPT, styles for new used parameters, use local keymap when waiting at list-prompt (10801) 2000-04-18 07:36:55 +00:00
Sven Wischnowsky
1fb481b8c2 better completion after `=', everywhere (10780) 2000-04-17 08:22:44 +00:00
Sven Wischnowsky
b692ed1b9d remove the pids' tag, use processes' instead (10733) 2000-04-13 11:05:15 +00:00
Sven Wischnowsky
4a3b94ca40 allow brace expansion on patterns for file-patterns and tag-order (10695) 2000-04-12 12:35:38 +00:00
Sven Wischnowsky
fac3086d97 _wanted now tests both tags and labels; change places where _wanted was called without a command; allow multiple patterns per string in file-patterns; update _next_tags to work with labels (10632) 2000-04-11 07:57:56 +00:00
Bart Schaefer
37012f06a7 10628: Check for GNU make using "_call version ..." as was done for GNU diff. 2000-04-10 23:40:43 +00:00
Bart Schaefer
f7a6aa096a 10606: Fix thinko in 10598. 2000-04-10 06:04:43 +00:00
Bart Schaefer
bdcd688f8d 10598: Fix typo; reformat styles documentation for readability. 2000-04-09 20:56:52 +00:00
Peter Stephenson
e376f614ca compinstall update; 3.1.6-dev-22 2000-04-09 18:26:57 +00:00