1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
Commit Graph

345 Commits

Author SHA1 Message Date
Sven Wischnowsky
e1708022d2 fixlet for 15477, don't let it remove consecutive dummy matches (15482) 2001-07-25 10:45:59 +00:00
Sven Wischnowsky
eba59194d7 make display for groups in _describe nicer; improve packing with list_packed; leave space for type character (list_types) only in groups with at least one file name (15477) 2001-07-25 08:52:34 +00:00
Sven Wischnowsky
79dbcc8382 don't use compsuffix when it might be freed; use the right variable in that loop there, dammit (15433) 2001-07-20 10:54:38 +00:00
Sven Wischnowsky
facff10b11 yet another followup to 15497; make _describe filter out non-matching strings before calling compdescribe, otherwise some matches will be hiddens (15415) 2001-07-19 08:40:36 +00:00
Sven Wischnowsky
6a3e89d539 fix for 15407; there may be sets without matches (15409) 2001-07-18 13:52:53 +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
bd629defe8 (15357) 2001-07-10 09:25:43 +00:00
Bart Schaefer
22faf1fa4b Suppress XTRACE during user-defined widgets. 2001-07-08 00:32:12 +00:00
Sven Wischnowsky
51503a87a2 (only the patch to compmatch.c from the mail); improve merging cline lists coming from different IPREFIX/PREFIX combinations and such by avoiding to generate cline structs for empty parts after a match spec anchor cline struct (15123) 2001-06-27 13:18:38 +00:00
Sven Wischnowsky
e067118efc fix for finding the first ambiguous path component in compfiles (3946) 2001-06-26 09:05:10 +00:00
Sven Wischnowsky
bbd2a98f41 make expand-word not always restore the command line (3940) 2001-06-25 09:32:21 +00:00
Bart Schaefer
2e4a17b32f Change magic-space to respect !". 2001-06-24 03:42:09 +00:00
Bart Schaefer
0672033cfc Compiler warnings. 2001-06-19 15:46:53 +00:00
Sven Wischnowsky
a5a5aa4e3e fixes for display bugs for completion lists (cursor left one line to far up or down) (14903) 2001-06-13 14:03:44 +00:00
Sven Wischnowsky
71a9847d48 fix for comparguments (completing after single letter options that get their argument in the next word); make _values ignore some of the standard option it may get; make _mount use _dir_list in some places and improve that; `document' comparguments and compvalues with some comments in computil.c (14897) 2001-06-13 11:05:51 +00:00
Sven Wischnowsky
9cc9cc9466 (14841) 2001-06-11 11:46:23 +00:00
Sven Wischnowsky
0ce4b800a3 fix for exclusion of normal arguments (14630) 2001-06-01 08:53:50 +00:00
Sven Wischnowsky
171855e2e2 fix tag-order problem with _arguments (completion after an option that gets an argument in the same word); and a fix for completion after -ab, where -a gets an argument in the next word and -b gets one in the same word (14607) 2001-05-31 12:38:34 +00:00
Sven Wischnowsky
1b2d095217 fix two memory leaks (at least I hope they are fixed) and some out-of-bound array accesses, plus some defensive programming for heap allocated param structs (14605) 2001-05-31 09:43:59 +00:00
Clint Adams
ac4d669afb 145??: fix thinko 2001-05-29 21:41:53 +00:00
Clint Adams
e56c42c9fe 145??: repeat last vi history search if search string is blank 2001-05-29 20:20:34 +00:00
Sven Wischnowsky
1d5fbf228d fix for cursor positioning with that -y option of compctl (display strings) (14507) 2001-05-28 11:42:00 +00:00
Wayne Davison
f18dca3266 Fixed acceptandinfernexthistory() to work when called repeatedly.
Also changed it to not accept the line if the infer fails.  Ignore
transient edits in the history when searching for an inference and
grabbing the next line (affecting acceptandinfernexthistory(),
infernexthistory(), and acceptlineanddownhistory()).
2001-05-26 20:57:16 +00:00
Bart Schaefer
071b084ea8 Signal queuing tweak. 2001-05-17 15:56:12 +00:00
Sven Wischnowsky
8e20d1da63 more fixage for expansion: just convert the command line to the original when expansion shouldn't or couldn't do something sensible on the line (14359) 2001-05-16 10:27:06 +00:00
Sven Wischnowsky
dc9d78c659 (14350) 2001-05-15 13:52:22 +00:00
Sven Wischnowsky
2c38f5bba1 barf if a empty string is given as one of the separators for _values (14293) 2001-05-10 08:52:30 +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
a3e01003c8 print space/backspace when reacing the last column while printing descriptions and the like to avoid a cursor positioning bug depending on the kind of terminal (autowrap) (14251) 2001-05-08 08:14:33 +00:00
Bart Schaefer
5aa1c04fd6 Prevent "no multi-letter values" error on values of '\:' and '' in compvalues(). 2001-05-06 22:37:51 +00:00
Sven Wischnowsky
1e79a3424f 14214 2001-05-03 07:13:37 +00:00
Sven Wischnowsky
ca29f22a86 remove quotes when looking at arguments in comparguments (14198) 2001-05-02 09:23:07 +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
f18218f2ad fix a sizeof() to strlen() 2001-04-25 09:05:10 +00:00
Peter Stephenson
95733c61c2 bindkey -rp removes prefix bindings; bindkey -p bugfix 2001-04-19 19:43:45 +00:00
Sven Wischnowsky
e4e2e4f916 use the right path patterns for completion functions 2001-04-19 10:39:45 +00:00
Sven Wischnowsky
a924eeba12 only use the exclusion lists of options that are not currently being completed, but keep options from being completed more than once (13999) 2001-04-17 09:52:32 +00:00
Sven Wischnowsky
6150ef8696 (13892) fixes for fpaths and completion matching 2001-04-03 11:25:11 +00:00
Sven Wischnowsky
3d7263ff67 after-move cleanup 2001-04-02 13:04:04 +00:00
Sven Wischnowsky
c05a2d2093 make _arguments -S' still complete long options after --<TAB>'; fix for cursor positioning with partial word match specs (13868) 2001-04-02 09:05:47 +00:00
Peter Stephenson
19a8356ff1 Add `bindkey -p' 2001-03-28 16:54:21 +00:00
Sven Wischnowsky
6d72dca54f try to make _h_c_w smarter at the beginning and end of the list; avoid list-beeping if the old completion list is re-used (3752) 2001-03-27 09:14:50 +00:00
Sven Wischnowsky
5687662ec1 handle colons in xor lists (13770) 2001-03-26 10:02:23 +00:00
Sven Wischnowsky
4e994fddce avoid adding empty strings to the kill ring (13767) 2001-03-26 08:58:33 +00:00
Sven Wischnowsky
d83665b7cf fix default colour for directories (3674) 2001-03-15 09:55:32 +00:00
Peter Stephenson
2d442fff86 13633: don't use termcap cursor keys if single key which is already bound 2001-03-14 12:20:17 +00:00
Peter Stephenson
c925a15aa7 13611, 13615: Bind cursor keys using termcap, including in viins. 2001-03-13 15:32:41 +00:00
Sven Wischnowsky
c8f2e51007 another fix for completion matching, CLF_MISS in the wrong cline struct (13575) 2001-03-06 11:31:20 +00:00
Sven Wischnowsky
eb41692bc5 fix for matching control, try harder to merge separately completed parts to avoid losing user-typed characters (13565) 2001-03-05 10:48:10 +00:00
Sven Wischnowsky
061c1ce912 add `aliases' option to be able to disable alias expansion (13554) 2001-02-28 09:12:54 +00:00
Sven Wischnowsky
193846af84 fix for mergin two CLF_MID entries in cline lists (with two equal prefixes it thought there were characters missing) (13388) 2001-01-25 15:16:27 +00:00
Sven Wischnowsky
bdaa4f4c05 *** empty log message *** 2001-01-22 12:03:55 +00:00
Sven Wischnowsky
c06782d95b *** empty log message *** 2001-01-18 14:41:40 +00:00
Sven Wischnowsky
757168e2c8 remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365) 2001-01-16 13:44:18 +00:00
Sven Wischnowsky
052316fea3 fix for ol' compctl when completing hash keys (13364) 2001-01-16 12:39:21 +00:00
Sven Wischnowsky
4a39b5d9c5 two more fixes for completion matching and reporting interesting positions (13349) 2001-01-15 10:44:14 +00:00
Sven Wischnowsky
a11115ecee fix for 13339 (report each position only once) and fixlet for matching: a case where missing characters weren't remembered (13343) 2001-01-12 13:50:13 +00:00
Sven Wischnowsky
2a78c24842 *** empty log message *** 2001-01-11 10:06:40 +00:00
Sven Wischnowsky
9af83c6c2a fix cursor positioning with partial-word match specs using `**' (13336) 2001-01-10 09:24:45 +00:00
Sven Wischnowsky
4a376d7250 fix for listpacked for matches as long as screen is wide (minus added spaces); more security when freeing matches: make sure current menu match pointer isn't used afterwards (13331) 2001-01-08 15:25:01 +00:00
Bart Schaefer
bf23eb259c Back out 13285. 2000-12-18 02:14:57 +00:00
Clint Adams
fe8a55b640 13285: use vi-up and -down in vicmd mode 2000-12-16 16:25:41 +00:00
Peter Stephenson
a59b51006b Function installation information now in config.modules 2000-11-30 18:36:21 +00:00
Peter Stephenson
49a1ad7516 13194: change in module configuration system 2000-11-26 20:01:01 +00:00
Peter Stephenson
c292a3ae50 Sven: 13108: Handle traps synchronously
pws: 13109, 13111: clear up zle display when output produced in trap.
2000-11-11 19:50:27 +00:00
Sven Wischnowsky
6db6cde964 re-display list for cleanup only if we were in menu selection (13084) 2000-10-25 10:52:25 +00:00
Sven Wischnowsky
9e44b5ea29 add a counter for invalidatelist() to allow finding out if there is a new list (13082) 2000-10-25 08:18:43 +00:00
Sven Wischnowsky
ead3cee30d avoid printing file type characters in completion lists for matches ending in a slash (13071) 2000-10-24 07:50:24 +00:00
Bart Schaefer
de595fbc90 Fix "vared -e". 2000-10-22 02:34:16 +00:00
Bart Schaefer
9bf7fb75c5 Fix "vared -h" in shell scripts. 2000-10-21 03:15:36 +00:00
Sven Wischnowsky
8ec18a622c *** empty log message *** 2000-10-17 14:04:13 +00:00
Sven Wischnowsky
bb1fabf3ff two completion matching fixes; wrong (path) prefix matching (removed path components) and reverse order of sub-strings in match-strings (12995) 2000-10-13 08:44:57 +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
5d8adbee07 make user defined completion widgets leave menu selection without accepting the currently selected match (12959) 2000-10-11 10:57:40 +00:00
Sven Wischnowsky
bd4490b966 *** empty log message *** 2000-10-10 13:37:30 +00:00
Sven Wischnowsky
7bb0338a78 follow-up to 12930, make it first try exact character matches, but enable it to go back to try match specs if it fails after accepting such character matches (12941) 2000-10-10 08:36:32 +00:00
Sven Wischnowsky
3f63f13610 prefer exact character matches over match specs (so that nom' can match nomatch') (12930) 2000-10-09 12:50:20 +00:00
Sven Wischnowsky
a93e62c630 comparguments: don't use rest-argument-specification if it was inactivated (12897) 2000-10-05 08:55:35 +00:00
Sven Wischnowsky
6c4dfc3228 don't stop parsing too early when completing inside a command substitution (12885) 2000-10-04 13:54:00 +00:00
Sven Wischnowsky
213a453d08 don't forget a displayed list when starting menu completion (12884) 2000-10-04 13:24:45 +00:00
Clint Adams
8e628ac624 unposted: remove unused variable declaration from ztat() 2000-10-01 23:43:55 +00:00
Clint Adams
f42bd3a3f9 12863: remove ztrdupstrip, use VARARR in ztat 2000-09-27 19:31:44 +00:00
Clint Adams
2a625db39d 12859: dynamically-allocate buffer in ztat(), ztrdupstring() 2000-09-22 22:16:15 +00:00
Peter Stephenson
942009eb9f 12719: quoting arrays in vared with real backslashes 2000-08-29 20:27:47 +00:00
Sven Wischnowsky
f4f38507e5 fix for unbalanced calls to {push,pop}heap in docomplete()/get_comp_string() (12717) 2000-08-29 08:20:59 +00:00
Bart Schaefer
7a38b670a7 12621: Avoid bad free. 2000-08-14 16:54:04 +00:00
Sven Wischnowsky
90c6d73b56 make all builtins in computil test if they were called from a completion function (12610) 2000-08-14 08:16:45 +00:00
Sven Wischnowsky
4f13bbd654 fixes for completion in math contexts (12592) 2000-08-11 12:19:35 +00:00
Sven Wischnowsky
3bca186819 handle the right option in strings with multiple single-letter options (and correctly handle its argument) (12567) 2000-08-08 12:11:42 +00:00
Sven Wischnowsky
5c90cf1a51 more fixes for completion of special characters (quoting) (12565) 2000-08-08 10:32:47 +00:00
Sven Wischnowsky
a23d39ce38 make binding of ^D be used in first column if ignoreeof is set and ^D is bound to a shell function widget (12494) 2000-08-03 07:51:53 +00:00
Peter Stephenson
4f1aa826f5 Andrej: Dynamic loading on cygwin 2000-08-02 18:01:51 +00:00
Peter Stephenson
0aee5e1bb4 12414: vared quotes separators when editing arrays 2000-07-27 17:48:47 +00:00
Sven Wischnowsky
d3ceb5e0eb compdescribe shouldn't use the sets after failed initialisation 2000-07-27 08:32:02 +00:00
Wayne Davison
90fdda1c33 Call hend() with a NULL arg. 2000-07-19 21:10:18 +00:00
Sven Wischnowsky
e4c9131b83 a bit of security for a VARARR() (12314) 2000-07-19 14:04:57 +00:00
Sven Wischnowsky
67f16de104 don't let duplicate matches keep us from recognising exact matches if they produce the same string on the line (12297) 2000-07-18 08:37:14 +00:00
Sven Wischnowsky
d666896fa3 don't treat non-option arguments as options (12266) 2000-07-17 08:05:56 +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
Sven Wischnowsky
663ecf8e12 fix zle widget -n num with num>9 (12238) 2000-07-13 09:11:54 +00:00
Oliver Kiddle
708dc69d38 AIX dependency fixes 2000-07-04 15:04:17 +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
806e8aa6af quote brace-strings (12113) 2000-06-29 06:59:00 +00:00
Sven Wischnowsky
04bf39bf2e fix for list-colors handling (12107) 2000-06-28 13:59:21 +00:00
Sven Wischnowsky
0334b4df7c make a-a-i-n-h in menu selection work with one match; better undo behaviour for menu selection (12093) 2000-06-28 07:29:59 +00:00
Sven Wischnowsky
3ff5a17d8c remove compfmt; a bit of explanation for compfiles and compgroups (12068) 2000-06-26 08:36:42 +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
4d656bfb0e missing allocation of list for option arguments (12066) 2000-06-26 08:10:33 +00:00
Sven Wischnowsky
37b5477437 *** empty log message *** 2000-06-22 09:42:10 +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
cde71bb1a5 make undo break out of menu selection if nothing to undo inside it (11992) 2000-06-19 14:51:06 +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
11ec14c3b3 more careful when optimising patterns in compfiles (11981) 2000-06-19 11:43:12 +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
1416862b63 allow completion after `a{{b,c},'; fix for closing brace re-insertion when completing from both ends (CLF_MID) (11939) 2000-06-16 07:52:05 +00:00
Sven Wischnowsky
f04b4c74a7 more security in completion matching (11924) 2000-06-15 09:41:47 +00:00
Sven Wischnowsky
dc102b8130 fix for _arguments, it took non-option strings as options (11910) 2000-06-15 08:09:09 +00:00
Sven Wischnowsky
53f5cc9465 better fix for menu selection on dumb terminal (11885?) 2000-06-14 06:54:44 +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
a2417f6863 fix for longer capability strings (sunsite still not responding, sigh) 2000-06-13 10:49:18 +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
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