1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 08:30:54 +02:00
Commit graph

142 commits

Author SHA1 Message Date
Peter Stephenson
9cfdf38906 24127: bug in matcher specs with left anchor and partial words 2007-11-28 21:14:14 +00:00
Peter Stephenson
4d52b7ebe6 23670: rationalise some linked list functions 2007-06-27 13:56:10 +00:00
Peter Stephenson
553e011320 23118: improve sorting to make it work with locales 2007-01-21 22:47:36 +00:00
Peter Stephenson
94bdf92a06 23097: splitting of $'...' strings in completion 2007-01-08 22:05:54 +00:00
Peter Stephenson
1cac90759a 23036: three more fixes for completion using $'...' 2006-12-08 18:52:04 +00:00
Peter Stephenson
34381548da Incomplete improvements for $'...' in completion 2006-12-03 21:07:17 +00:00
Peter Stephenson
289b14113b 22819: improved internal use of string quotation,
plus completion bug fix with RCQUOTES
2006-10-05 21:53:26 +00:00
Peter Stephenson
f5bbc619bd 22565: Fix bug after failed menucompletion with accept-and-menu-complete? 2006-07-30 19:58:31 +00:00
Peter Stephenson
4a67f24798 22544: Improve use of ztype tests for multibyte characters. Add
POSIX_IDENTIFIERS option to control allowability of multibyte
alphanumeric characters in parameter and module names.
2006-07-10 13:08:22 +00:00
Peter Stephenson
e17fc50793 22328, modified: add -o option to compadd
add _list_files helper to handle new file-list style for _path_files
2006-03-07 12:50:56 +00:00
Wayne Davison
4b9d1c4f5c Optimized away a recently-added call to strlen(). 2006-02-20 05:51:49 +00:00
Wayne Davison
6c31a7dc68 Made the realocation of the line buffer in add_match_data() use a
little more optimal size.  Also tweaked the code just a little.
2006-02-19 22:57:56 +00:00
Wayne Davison
1e2f61f116 The code in add_match_data() that looks for invalid characters
now properly parses the string as metafied.
2006-02-18 18:39:38 +00:00
Wayne Davison
a6658fb9f6 Made add_match_data() look for invalid multibyte chars in the
names and substitute $'\123' sequences for them.
2006-02-13 11:03:59 +00:00
Wayne Davison
e79af955f0 Got rid of some unsigned-char/char pointer casts. 2005-11-15 08:44:17 +00:00
Peter Stephenson
3c37057c34 21871: replace INULL() by inull() 2005-10-13 16:30:13 +00:00
Andrey Borzenkov
a6ebb7bfc3 21664: unmetafy ztat() argument 2005-08-18 18:19:29 +00:00
Andrey Borzenkov
11b0963bdc 21642: remove redundant checks 2005-08-16 17:25:48 +00:00
Wayne Davison
fb047b6ffa Moved declaration of char pointer var to comply with
restrictions of standard C.
2005-08-16 01:59:43 +00:00
Clint Adams
3c92ad4b90 21631: make sure an unmetafied string is passed to ztat to determine file type. 2005-08-16 00:51:57 +00:00
Andrey Borzenkov
17e1a3cd0c 21627: fix recursive ZLE from completion call 2005-08-15 18:16:04 +00:00
Peter Stephenson
2a888b3d5a c.f. 21590: metafy_line()/unmetafy_line() now support wide characters 2005-08-10 10:56:40 +00:00
Peter Stephenson
24699f961d 21045: fix some uses of Meta characters in completion 2005-03-21 18:49:04 +00:00
Peter Stephenson
88a37cc187 c.f. 20675: improve zle as a basis for Unicode.
unposted: update version to 4.2.3-dev-1
2005-01-14 13:04:47 +00:00
Bart Schaefer
33686bdc98 fix "compadd -k assoc1 assoc2" 2004-11-05 16:19:19 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Wayne Davison
b5d7902c20 Silenced three signed/unsigned comparison compiler warnings. 2004-05-28 19:23:47 +00:00
Peter Stephenson
815bc92148 a la 19209: zcalloc -> zshcalloc 2003-10-29 19:17:30 +00:00
Peter Stephenson
b38f3c9a17 18938: Export some data symbols. 2003-08-11 10:45:08 +00:00
Sven Wischnowsky
c2dd10edc9 in menu selection, use copies of comp{pre,suf}fix to make sure they exist; fix display problem with non-empty iprefix (17403) 2002-07-04 09:29:20 +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
5a89ede77b fix for file-type-tests in nested quotes and don't count space file-type-character (17195) 2002-05-21 08:07:51 +00:00
Sven Wischnowsky
654c4ab4ff fix for completion in nested quotes where the sub-word ends in a backslash (17192) 2002-05-21 07:47:34 +00:00
Sven Wischnowsky
cd50acd08d follow-up to 17135, backslash-quoted backslashes in double quotes weren't right, yet (17163) 2002-05-15 07:40:33 +00:00
Sven Wischnowsky
0cfe1b30be fix for unquoting with `compset -q' with singly and doubly quoted strings (17135) 2002-05-13 09:31:59 +00:00
Sven Wischnowsky
10490ec499 add $redirections array to completion system parameters, containing information about all redirections on the line; make this and compstate[redirect] contain the file descriptor number (16751) 2002-03-01 10:41:59 +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
fa509f5219 fix group handling nothing should now possibly be added to the wrong group again (16668) 2002-02-18 14:30:46 +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
ba968d10de make sure auto menu isn't started accidentially when bashautolist is set (16408) 2002-01-07 14:43:40 +00:00
Sven Wischnowsky
dc472db5f0 hide all but one match with the same string in the list even for unsorted groups (15991) 2001-10-09 09:50:12 +00:00
Sven Wischnowsky
647674f6ab undo most of 15650, do that in shell code (15669) 2001-08-20 13:13:49 +00:00
Sven Wischnowsky
66576ecbf8 15650 2001-08-17 09:25:21 +00:00
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
bd629defe8 (15357) 2001-07-10 09:25:43 +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
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
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
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
213a453d08 don't forget a displayed list when starting menu completion (12884) 2000-10-04 13:24:45 +00:00
Sven Wischnowsky
4f13bbd654 fixes for completion in math contexts (12592) 2000-08-11 12:19:35 +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
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
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
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
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
4997db3470 fix for menu-completion when another completion came right after it (11836) 2000-06-09 11:14:34 +00:00
Sven Wischnowsky
9ac1ee5703 hopefully more consistent beeping with menu-selection (11794) 2000-06-07 08:39:56 +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
Sven Wischnowsky
5a4253f42e allow display of only messages via $compstate[list]=messages (11688) 2000-05-31 09:56:12 +00:00
Sven Wischnowsky
fb6bcb7364 fix for ignore-line style (11679) 2000-05-31 06:13:50 +00:00
Sven Wischnowsky
cd38cd40f7 matching bugs with patterns with two anchors (11634) 2000-05-29 12:42:59 +00:00
Sven Wischnowsky
22c3204495 add -[ak] options to compadd (11533) 2000-05-23 14:23:16 +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
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
8272394e7e extra paranoia for empty prefix/suffix in completion matching (11374) 2000-05-15 11:55:38 +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
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
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
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
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
b5594215dd make sure that completion messages are displayed even when there are no matches (11092) 2000-05-03 08:35:33 +00:00
Sven Wischnowsky
997d40c05d add -x option to compadd to display message unconditionally 2000-05-02 10:30:41 +00:00
Oliver Kiddle
ddd8614e51 AIX dependency fixes 2000-04-30 17:58:35 +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
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
30a98cc4d6 scrolling in completion lists and menu-selection, version1 2000-04-17 11:17:10 +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
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
0713dfcd1a fix for bashautolist+automenu (10609) 2000-04-10 08:06:38 +00:00
Sven Wischnowsky
87b625f15f make _next_tags be usable with menu-completion 2000-04-04 11:26:26 +00:00
Sven Wischnowsky
7b016b8cd8 Copy QIPREFIX/QISUFFIX. 2000-04-04 09:52:56 +00:00
Peter Stephenson
4852545255 Updated from list as far as 10376 2000-04-01 20:49:47 +00:00
Tanaka Akira
82e6f2438e Initial revision 1999-11-01 09:37:26 +00:00