1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 01:11:37 +02:00
Commit Graph

173 Commits

Author SHA1 Message Date
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
Bart Schaefer
bae526275a Alexandre: Fix colored listings crash (article number attribution may be
wrong in ChangeLog).
2000-06-11 08:15:27 +00:00
Bart Schaefer
060ac27a17 11850: Fix crash in menu-select on dumb terminals. Also, a ChangeLog entry
for PWS's 11842.
2000-06-10 17:30:22 +00:00
Sven Wischnowsky
4997db3470 fix for menu-completion when another completion came right after it (11836) 2000-06-09 11:14:34 +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
a95d051826 more anchor matching fixes (11817) 2000-06-08 09:25:24 +00:00
Sven Wischnowsky
2e1c0ec483 make C-code expansion add a space only when more than one word was generated (11814) 2000-06-08 07:20:31 +00:00
Sven Wischnowsky
b0b33a41a1 try to get the tests for `strings long enough' right in anchor matching code (11796) 2000-06-07 13:25:32 +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
9ac1ee5703 hopefully more consistent beeping with menu-selection (11794) 2000-06-07 08:39:56 +00:00
Sven Wischnowsky
f94e5d78b0 some more memory leak fixes (11745) 2000-06-05 07:57:27 +00:00
Bart Schaefer
4c2601e753 Felix, 11734: Memory leak and doc error. 2000-06-03 16:37:24 +00:00
Sven Wischnowsky
ed708a901b fix some memory leaks (thanks, Felix) (11722) 2000-06-02 08:09:26 +00:00
Wayne Davison
91d5f73434 Changed the array "len" to be "end" -- a 1-relative index of the last
item (or you can think of it as pointing one past the last item).
2000-06-02 01:54:16 +00:00
Bart Schaefer
15a6466044 Disable vared only for interactive shells where ZLE has been explicitly
disabled, but also for any shell running in an emacs buffer.
2000-06-01 15:22:15 +00:00
Sven Wischnowsky
5a4253f42e allow display of only messages via $compstate[list]=messages (11688) 2000-05-31 09:56:12 +00:00
Peter Stephenson
7bf294f2b8 Wayne: pattern.c unitialised var
Zero-length arrays now possible with $array[1,0]
2000-05-31 08:56:23 +00:00
Sven Wischnowsky
d5b6d1f40c move to last cursor after not asking a second time if list should be shown (11682) 2000-05-31 06:31:22 +00:00
Sven Wischnowsky
fb6bcb7364 fix for ignore-line style (11679) 2000-05-31 06:13:50 +00:00
Sven Wischnowsky
24520730a6 bogus uninitialised variable warning 2000-05-30 10:54:22 +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
8564aa5c0d Wayne: Fix two history bugs that were causing the
failure of `print -s'.
2000-05-30 03:43:27 +00:00
Sven Wischnowsky
cd38cd40f7 matching bugs with patterns with two anchors (11634) 2000-05-29 12:42:59 +00:00
Sven Wischnowsky
a2750a4eff fixes for _arguments with sets; make _zpty not use sets (11624) 2000-05-29 08:00:46 +00:00
Sven Wischnowsky
972fe43f51 disable vared if zle is not enabled (11566) 2000-05-26 07:03:43 +00:00
Sven Wischnowsky
c99a94e365 better cursor-movement in menu-selection (11569) 2000-05-25 11:33:13 +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
Sven Wischnowsky
22c3204495 add -[ak] options to compadd (11533) 2000-05-23 14:23:16 +00:00
Sven Wischnowsky
7f9f81f3e2 save and restore more variables in bufferwords(); move gotword() into core (11523) 2000-05-23 08:20:56 +00:00
Sven Wischnowsky
01bd1c61ae make sure wouldinstab is set before calling docomplete() (11503) 2000-05-22 14:50:07 +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
Sven Wischnowsky
7672efed2e fix for unambiguous string insertion (11466) 2000-05-19 08:33:06 +00:00
Sven Wischnowsky
781a5bd4b1 small doc fix; make compcall autoload compctl module (11457) 2000-05-18 09:22:31 +00:00
Sven Wischnowsky
05d3c175a5 add Felix' completion matching test; some fixes for bugs shown by it (11439) 2000-05-17 11:59:32 +00:00
Sven Wischnowsky
aa17f0db6d fix scrolling in menu-selection with matches spanning multiple lines 2000-05-16 10:45:01 +00:00
Sven Wischnowsky
57ed8b5441 make menu-select accept the match when typing a non-special character (11401) 2000-05-16 08:05:15 +00:00
Sven Wischnowsky
8272394e7e extra paranoia for empty prefix/suffix in completion matching (11374) 2000-05-15 11:55:38 +00:00
Sven Wischnowsky
db95186da5 fix for completion of string with single quote (11365) 2000-05-15 09:54:46 +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
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
Sven Wischnowsky
984bae21ba fixes for completion matching (11346) 2000-05-12 11:52:30 +00:00
Sven Wischnowsky
6472a2b7bc fix for compadd -x when there are no matches (11335) 2000-05-12 07:03:41 +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
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
8272e68ecc AIX dependency fix 2000-05-10 15:01:19 +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
5b5c0e8fc9 fix for `-+opt' with mutex list (11294) 2000-05-10 08:20:40 +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
Sven Wischnowsky
cfcb3202ef more problems with optional arguments in _arguments (11253) 2000-05-08 10:37:58 +00:00
Sven Wischnowsky
029483745b better cursor positioning in words with multiple ambiguous word parts (11248) 2000-05-08 09:29:22 +00:00
Sven Wischnowsky
92637abbb8 misc. completion cleanups and changes (11242) 2000-05-08 08:16:32 +00:00
Sven Wischnowsky
04118530d4 some more memory initialisation after allocation; shouldn't possibly have done any harm (11193) 2000-05-05 12:06:21 +00:00
Sven Wischnowsky
c05f118fc2 fix for completion arguments of options, don't use all of them at once (11172) 2000-05-05 07:37:17 +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
70e5b622ff new (z) parameter flag to do shell-word splitting on the value (11113) 2000-05-03 12:21:55 +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
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
Sven Wischnowsky
997d40c05d add -x option to compadd to display message unconditionally 2000-05-02 10:30:41 +00:00
Sven Wischnowsky
d67ca6872e fix for _arguments, use on-line-argument-numbers only for normal arguments, not for arguments of options (11052) 2000-05-02 08:56:28 +00:00
Oliver Kiddle
ddd8614e51 AIX dependency fixes 2000-04-30 17:58:35 +00:00
Sven Wischnowsky
5a3fe9220d misplaced cursor with partial-word matching (11007) 2000-04-28 12:42:24 +00:00
Sven Wischnowsky
b577adea40 fix for reporting multiple actions in comparguments, options with non-optional arguments (11003) 2000-04-28 11:16:52 +00:00
Sven Wischnowsky
b19f915a4f avoid wrapping around both horizontally and vertically at the same time (10992) 2000-04-28 07:39:08 +00:00
Sven Wischnowsky
a35472cb31 better wrap around for cursor movement widgets; avoid flicker when leaving menu-selection (10978) 2000-04-27 13:40:52 +00:00
Sven Wischnowsky
eb2bfcd555 fix for parse error with left-anchored patterns (10963) 2000-04-27 09:04:32 +00:00
Sven Wischnowsky
77f5b71cec make menu-selection handle undefined-key (10961) 2000-04-27 08:55:06 +00:00
Sven Wischnowsky
8974ab59c0 *** empty log message *** 2000-04-27 08:23:33 +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
ddb16a1b2b allow to anchor on gaps between strings in matching control specs (10926) 2000-04-26 06:54:26 +00:00
Sven Wischnowsky
9ecbacab6b faster test for `*'-patterns in matching control; prefer direct character matches over match specs in recursive invocations of match_str() (10925) 2000-04-26 06:45:50 +00:00
Sven Wischnowsky
67fd3b73ca fix for matching control; improve merging cline lists (10924) 2000-04-26 06:34:10 +00:00
Sven Wischnowsky
bc21696b63 don't show empty hidden matches even in menu-selection (10917) 2000-04-25 13:54:09 +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
6e99acad52 forgotten fix for _arguments using multiple actions (10915) 2000-04-25 11:49:10 +00:00
Sven Wischnowsky
f5dcbf9f19 don't always ignore backslashes in paths when testing file type (10912) 2000-04-25 11:17:24 +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
Sven Wischnowsky
b572f0295c fix off-by-one error in scrolled menu-selections (10868) 2000-04-20 11:03:15 +00:00
Sven Wischnowsky
ad0c81a554 ensure zsh/compctl (ick!) module is loaded when zle is loaded from init file but zsh/complete isn't (10828) 2000-04-19 13:42:51 +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
145e7ee76f join_clines() tested the wrong variable (10798) 2000-04-18 07:07:30 +00:00
Sven Wischnowsky
30a98cc4d6 scrolling in completion lists and menu-selection, version1 2000-04-17 11:17:10 +00:00
Sven Wischnowsky
fcca6c721c fix for exclusion lists for -+o specifications 2000-04-17 08:53:37 +00:00
Sven Wischnowsky
cd45aa331d make _tags use C-code for braces in tag-order values; and misc. stuff (10775) 2000-04-17 08:04:42 +00:00
Sven Wischnowsky
8c474bbcd4 fix for partial word completion with empty parts and common suffix (10774) 2000-04-17 07:56:25 +00:00
Sven Wischnowsky
2ef4fd884c comment the `#if's for group numbers in $compstate[insert] (10725) 2000-04-13 08:09:13 +00:00
Sven Wischnowsky
a8400e82b1 display number of matches again when asking if a completion list should be shown (only when not zero) (10724) 2000-04-13 08:05:57 +00:00
Sven Wischnowsky
47e4c7b8c1 forgot one #if for commenting out the group-stuff for $compstate[insert] 2000-04-12 13:08:08 +00:00
Sven Wischnowsky
5ac242f449 comment out the code to allow $compstate[insert] to select the group (10690) 2000-04-12 09:12:15 +00:00
Sven Wischnowsky
5de80f85b4 display number of lines instead of number of matches when asking whether to show completion lists (10686) 2000-04-12 08:31:55 +00:00