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

238 Commits

Author SHA1 Message Date
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
e14a02f440 simplify setting standard completion system options using $_comp_options (13036) 2000-10-19 08:58:17 +00:00
Peter Stephenson
4c2807e313 3.1.6-dev-7 2000-10-17 12:55:41 +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
e1fb97ee44 follow-up to 12942, only a missing redirection (12948) 2000-10-10 15:06:30 +00:00
Sven Wischnowsky
7b35c8639c *** empty log message *** 2000-10-10 14:12:41 +00:00
Sven Wischnowsky
ae4ba457c4 temporarily remove global aliases to avoid error message inside the evals (12942) 2000-10-10 09:00:15 +00:00
Sven Wischnowsky
cb4bb129dd more option setting cleanup; remove some unnecessary setopts, remove N qualifiers (12917) 2000-10-06 13:01:51 +00:00
Bart Schaefer
2f2a33b2ea Other places where `unsetopt cshnullglob' is needed. 2000-10-06 05:18:25 +00:00
Sven Wischnowsky
eabddcb9cd unset cshnullglob (12899) 2000-10-05 13:50:54 +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
Sven Wischnowsky
4f13bbd654 fixes for completion in math contexts (12592) 2000-08-11 12:19:35 +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
Sven Wischnowsky
5c90cf1a51 more fixes for completion of special characters (quoting) (12565) 2000-08-08 10:32:47 +00:00
Sven Wischnowsky
55b07cb525 quoting 2000-08-03 13:35:43 +00:00
Sven Wischnowsky
7bf1f0292d one more problem with quoting of glob characters in filename completion (12496) 2000-08-03 11:12:30 +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
Peter Stephenson
4f9ff8206b Add compaudit to .distfiles; 3.1.9-dev-4 2000-07-31 09:34: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
Sven Wischnowsky
97a345de50 don't hide possible completions if there is only one and at the same time messages are shown (12394) 2000-07-27 07:25:07 +00:00
Bart Schaefer
f303f2ea63 Belatedly fold in 12162, to replace command subst with eval. 2000-07-26 09:16:13 +00:00
Bart Schaefer
04aaf1cd7f Move compinit security checks into compaudit. 2000-07-26 08:54:58 +00:00
Sven Wischnowsky
0e8c318b8e optimisations for _multi_parts (12354) 2000-07-24 12:52:41 +00:00
Sven Wischnowsky
b46926af8d fix for _arguments with single-letter options: recognize option-strings with multiple options; in _main_complete stop trying completers when one called _message, don't display warnings in such cases (12241) 2000-07-13 11:03:59 +00:00
Peter Stephenson
4f9a7e27d4 12231: fix compinstall list-prompt setting 2000-07-12 11:04:07 +00:00
Peter Stephenson
cc2213b340 12227: select-prompt handled by compinstall 2000-07-12 10:19:59 +00:00
Sven Wischnowsky
8e2fa4d9b2 don't start menu selection with only select=long (12226) 2000-07-12 09:25:18 +00:00
Sven Wischnowsky
961876dca4 avoid insertion of `+' before ~1/<TAB>; don't use undeclared local $tmp (12208) 2000-07-10 08:03:36 +00:00
Bart Schaefer
e1fe756d14 12160: Cause compdump to fail early if it won't be able to write the file. 2000-07-04 16:16:34 +00:00
Sven Wischnowsky
41404fb6c7 add some $(print...)s because of possible math-parse errors (12156) 2000-07-04 08:07:24 +00:00
Bart Schaefer
6f8986d370 12148: Don't merge display-ordering glob flags into the parens of $(...). 2000-07-03 17:45:46 +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
Bart Schaefer
4ed8c26c50 12133: Protect completion system from stray error output and assorted fatal
errors when expanding strings taken from the command line.
2000-07-02 17:21:54 +00:00
Sven Wischnowsky
d01795be2a reverse meaning of yes=num again (12122) 2000-06-29 09:32:04 +00:00
Sven Wischnowsky
a9d46be89d try to return the right value (12119) 2000-06-29 08:20:32 +00:00
Sven Wischnowsky
4bf681950b don't expand partially typed parameter expansions (12118) 2000-06-29 08:09:45 +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
806e8aa6af quote brace-strings (12113) 2000-06-29 06:59:00 +00:00
Sven Wischnowsky
4c7469778a make _complete return the right value (12109) 2000-06-28 14:27:25 +00:00
Sven Wischnowsky
04bf39bf2e fix for list-colors handling (12107) 2000-06-28 13:59:21 +00:00
Sven Wischnowsky
45a6914ed7 reset _comp_mesg (saying whether there were messages) appropriately (12105) 2000-06-28 09:42:50 +00:00
Sven Wischnowsky
f4a09871b0 make _oldlist not use the dummy match added for the warning (12099) 2000-06-28 09:04:02 +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
Peter Stephenson
29030cc13b 12076: better saving in file in compinstall 2000-06-26 16:17:52 +00:00
Sven Wischnowsky
b4f914f784 fix for completer lookup in _ignored (12070) 2000-06-26 09:36:12 +00:00
Sven Wischnowsky
470515922c typo in _history; missing free()s in zle_tricky.c (12067) 2000-06-26 08:20:33 +00:00
Sven Wischnowsky
f45c9cb8f2 compinit some more (12043) 2000-06-23 08:05:41 +00:00
Sven Wischnowsky
806220d4ff even more compiinit stuff, change prompt, search for insecure parent dirs (12041) 2000-06-23 07:10:40 +00:00
Sven Wischnowsky
6218b6dc19 followup to compinit-security patch (12033) 2000-06-22 11:09:17 +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
1c710d4627 make history completion use I{PREF,SUF}FIX (12011) 2000-06-21 08:05:28 +00:00
Sven Wischnowsky
fb7bc3a9c7 a bit of security for compinit (avoid using things writable by others); avoid handling files with the same name twice; remove compconf (11998) 2000-06-20 07:15:38 +00:00
Sven Wischnowsky
083befef2b new match spec characters bBeE, match only word/line not both (11977) 2000-06-19 10:48:21 +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
Clint Adams
bfaf5478a3 11966: double brackets around comparison to prevent 'command not found: no' 2000-06-18 14:16:24 +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
Oliver Kiddle
545c064770 Handle new suffix style with arrays (11903) 2000-06-14 16:12:13 +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
cedd1006e6 fixes for calling compfiles, for completing words with special characters; make compfiles optimisations work with globcomplete and simple match (sunsite isn't responding) 2000-06-13 09:05:35 +00:00
Sven Wischnowsky
427b4b74f2 improve _path_files, move some code into C, try to optimise glob patterns and immediately accept exact directory matches (11833) 2000-06-09 07:49:44 +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
25ca4f8792 optimise command lookup in old and new completion (user/3124) 2000-06-07 11:21:42 +00:00
Sven Wischnowsky
423543d389 make _expand ignore empty expansions (11777) 2000-06-06 13:04:10 +00:00
Sven Wischnowsky
24559bb1f6 fix for _path_files and globcomplete, better test if word contains wildcards (11776) 2000-06-06 12:19:33 +00:00
Sven Wischnowsky
5a4253f42e allow display of only messages via $compstate[list]=messages (11688) 2000-05-31 09:56:12 +00:00
Sven Wischnowsky
fd25b24df6 use compadd -[ak] (11549) 2000-05-31 09:38:25 +00:00
Sven Wischnowsky
fe8490dcf0 allow using menu-select for compdef -k (i.e.: autoload zsh/complist in such cases) (11686) 2000-05-31 09:23:28 +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
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
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
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
007cfdff55 fix for a-a-m-c in menu selection; scroll explanations onto screen again (11487) 2000-05-22 08:47:30 +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
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
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
Sven Wischnowsky
f63d4066ba fix completion after tilde and equal sign inside quotes (11429) 2000-05-17 06:50:03 +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
aa17f0db6d fix scrolling in menu-selection with matches spanning multiple lines 2000-05-16 10:45:01 +00:00