1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 12:11:26 +01:00
Commit graph

284 commits

Author SHA1 Message Date
Sven Wischnowsky
bd629defe8 (15357) 2001-07-10 09:25:43 +00:00
Bart Schaefer
ef89be124d Fix handling of interrupt in two completion widgets. 2001-06-21 10:05:19 +00:00
Bart Schaefer
e8cb280d50 Fix "insert-tab pending" zstyle. 2001-06-20 17:42:15 +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
a7340e627b two fixes: try all actions that have to be tried (but only once), execute actions if we aren't after an option already (in the same word) (14733) 2001-06-06 09:31:54 +00:00
Oliver Kiddle
a594e4eb04 work around ${(@P)1[3,-1]} not working as expected (14658) 2001-06-01 14:29:11 +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
ae5e34db25 (14602) 2001-05-31 08:18:36 +00:00
Sven Wischnowsky
1a55d53621 always use supplied matchers (14599) 2001-05-31 07:17:03 +00:00
Sven Wischnowsky
b6cf214d81 some cleanup (14558) 2001-05-30 07:31:13 +00:00
Oliver Kiddle
56528ccb66 spelling corrections 2001-05-29 17:54:08 +00:00
Sven Wischnowsky
4a7abbfdd6 use `eval $_comp_setup' in all entry points of the completion system to not only set up the options, but also redirect stdin and ignore trap handlers for ZERR (14530) 2001-05-29 11:59:50 +00:00
Clint Adams
da9fa61207 14509: ZLS_COLOURS/ZLS_COLORS consistency 2001-05-28 16:01:01 +00:00
Oliver Kiddle
0a159d0f73 fix to include + options in tag order (14416) 2001-05-21 16:15:59 +00:00
Sven Wischnowsky
dc9d78c659 (14350) 2001-05-15 13:52:22 +00:00
Peter Stephenson
ea03bf1ae5 14330: handle quotes better in _most_recent_file 2001-05-14 13:44:13 +00:00
Oliver Kiddle
e364fb2139 insert redirection operators when expanding after one (14281) 2001-05-09 12:06:10 +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
47d8fd9b6c missing star in suffix-style test pattern (14197) 2001-05-02 08:58:55 +00:00
Sven Wischnowsky
6757c3c734 fixelt for the test for the suffix style; if word contains only a tilde, don't try to expand it (14160) 2001-04-30 11:09:49 +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
Bart Schaefer
a509b259f8 Use trap for unfunction compadd in _approximate. 2001-04-27 03:20:59 +00:00
Sven Wischnowsky
b4b6d57e2c 14117 2001-04-26 14:40:11 +00:00
Oliver Kiddle
efe55f77a3 new vnc completion and use _guard for pine completion (14112) 2001-04-26 14:00:45 +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
105009726b make keep-prefix keep everything up to the first component with a parameter expansion, not only if that is at the beginning of the string (14092) 2001-04-26 07:02:47 +00:00
Oliver Kiddle
d7417bdc0e add completion for common MUAs and a couple of minor fixes (13982) 2001-04-13 18:42:13 +00:00
Clint Adams
62e9af7ce6 13909: bad tilde files in some .distfiles 2001-04-05 13:44:58 +00:00
Sven Wischnowsky
bbbf07a3e7 complete only those single letter options with the right prefix character (13908) 2001-04-05 12:12:45 +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
cbba9da870 new or changed after move 2001-04-02 12:39:40 +00:00
Sven Wischnowsky
354cc487ff changed after moving functions 2001-04-02 12:35:52 +00:00
Sven Wischnowsky
2b0618ccc9 moved to Completion/Zsh/Command/_precommand 2001-04-02 11:25:19 +00:00
Sven Wischnowsky
92c9f4faf2 moved to Completion/Zsh/Context/_value 2001-04-02 11:24:58 +00:00
Sven Wischnowsky
2cb2aa16d0 moved to Completion/Zsh/Context/_tilde 2001-04-02 11:24:41 +00:00
Sven Wischnowsky
0eca06e0c5 moved to Completion/Zsh/Context/_subscript 2001-04-02 11:24:25 +00:00
Sven Wischnowsky
2ecbada32d moved to Completion/Zsh/Context/_redirect 2001-04-02 11:24:10 +00:00
Sven Wischnowsky
763d5287c5 moved to Completion/Zsh/Context/_parameter 2001-04-02 11:23:55 +00:00
Sven Wischnowsky
6b88d1aaf2 moved to Completion/Zsh/Context/_math 2001-04-02 11:23:38 +00:00
Sven Wischnowsky
1bb11adee9 moved to Completion/Zsh/Context/_in_vared 2001-04-02 11:23:21 +00:00
Sven Wischnowsky
0fa297ae8d moved to Completion/Zsh/Context/_first 2001-04-02 11:23:04 +00:00
Sven Wischnowsky
3522f637da moved to Completion/Zsh/Context/_equal 2001-04-02 11:22:47 +00:00
Sven Wischnowsky
e7e55a73c1 moved to Completion/Zsh/Context/_default 2001-04-02 11:22:30 +00:00
Sven Wischnowsky
1a13dc1fb1 moved to Completion/Zsh/Context/_condition 2001-04-02 11:22:13 +00:00
Sven Wischnowsky
f36fa38951 moved to Completion/Zsh/Context/_brace_parameter 2001-04-02 11:21:56 +00:00
Sven Wischnowsky
062fe4c5e8 moved to Completion/Zsh/Type/_jobs 2001-04-02 11:17:40 +00:00
Sven Wischnowsky
f7678f5289 moved to Completion/Zsh/Type/_command_names 2001-04-02 11:17:23 +00:00
Sven Wischnowsky
9d06486d2a moved from Completion/Commands/_read_comp 2001-04-02 11:17:07 +00:00
Sven Wischnowsky
5e65b4d25a moved from Completion/Commands/_next_tags 2001-04-02 11:16:51 +00:00
Sven Wischnowsky
d8920f5a91 moved from Completion/Commands/_most_recent_file 2001-04-02 11:16:36 +00:00
Sven Wischnowsky
88c8be9f58 moved from Completion/Commands/_history_complete_word 2001-04-02 11:16:19 +00:00
Sven Wischnowsky
86904a9ace moved from Completion/Commands/_generic 2001-04-02 11:16:02 +00:00
Sven Wischnowsky
3b97ef45e5 moved from Completion/Commands/_expand_word 2001-04-02 11:15:46 +00:00
Sven Wischnowsky
3f7c2e2590 moved from Completion/Commands/_correct_word 2001-04-02 11:15:29 +00:00
Sven Wischnowsky
402a9c0ab1 moved from Completion/Commands/_correct_filename 2001-04-02 11:15:14 +00:00
Sven Wischnowsky
a4eb388467 moved from Completion/Commands/_complete_tag 2001-04-02 11:14:57 +00:00
Sven Wischnowsky
f5ff83fe0b moved from Completion/Commands/_complete_help 2001-04-02 11:14:40 +00:00
Sven Wischnowsky
f46287bb82 moved from Completion/Commands/_complete_debug 2001-04-02 11:14:23 +00:00
Sven Wischnowsky
041958250d moved from Completion/Commands/_bash_completions 2001-04-02 11:14:07 +00:00
Sven Wischnowsky
06e7790548 moved from Completion/Core/_call 2001-04-02 11:13:47 +00:00
Sven Wischnowsky
9e1b944434 moved from Completion/Core/_funcall 2001-04-02 11:13:30 +00:00
Sven Wischnowsky
126524eab1 moved from Completion/Core/_sep_parts 2001-04-02 11:13:13 +00:00
Sven Wischnowsky
b7d3bd942a moved from Completion/Core/_multi_parts 2001-04-02 11:12:56 +00:00
Sven Wischnowsky
0fd7abd5f9 moved from Completion/Core/_alternative 2001-04-02 11:12:39 +00:00
Sven Wischnowsky
0c3c55faef moved from Completion/Builtins/_nothing 2001-04-02 11:12:23 +00:00
Sven Wischnowsky
d3fd46c424 moved from Completion/Base/_values 2001-04-02 11:12:08 +00:00
Sven Wischnowsky
d6b352ada9 moved to Completion/Base/Utility/_values 2001-04-02 11:12:00 +00:00
Sven Wischnowsky
02dfe1ae91 moved from Completion/Base/_sub_commands 2001-04-02 11:11:52 +00:00
Sven Wischnowsky
25b0e48139 moved to Completion/Base/Utility/_sub_commands 2001-04-02 11:11:45 +00:00
Sven Wischnowsky
3a4ef1f0db moved from Completion/Base/_store_cache 2001-04-02 11:11:36 +00:00
Sven Wischnowsky
7df6561d50 moved to Completion/Base/Utility/_store_cache 2001-04-02 11:11:28 +00:00
Sven Wischnowsky
63a8ab3ca8 moved from Completion/Base/_retrieve_cache 2001-04-02 11:11:20 +00:00
Sven Wischnowsky
662f9450fe moved to Completion/Base/Utility/_retrieve_cache 2001-04-02 11:11:12 +00:00
Sven Wischnowsky
e38ec6c614 moved from Completion/Base/_regex_arguments 2001-04-02 11:11:01 +00:00
Sven Wischnowsky
ccd3124f9a moved to Completion/Base/Utility/_regex_arguments 2001-04-02 11:10:53 +00:00
Sven Wischnowsky
4dd6dce505 moved from Completion/Base/_describe 2001-04-02 11:10:44 +00:00
Sven Wischnowsky
71f2dbfad7 moved to Completion/Base/Utility/_describe 2001-04-02 11:10:36 +00:00
Sven Wischnowsky
bf2a1aca90 moved from Completion/Core/_compalso 2001-04-02 11:10:27 +00:00
Sven Wischnowsky
f0506139f8 moved from Completion/Base/_combination 2001-04-02 11:10:08 +00:00
Sven Wischnowsky
1282ff3a2d moved to Completion/Base/Utility/_combination 2001-04-02 11:10:00 +00:00
Sven Wischnowsky
a5509ebb04 moved from Completion/Base/_cache_invalid 2001-04-02 11:09:51 +00:00
Sven Wischnowsky
917188675a moved to Completion/Base/Utility/_cache_invalid 2001-04-02 11:09:43 +00:00
Sven Wischnowsky
3a6cc96ce6 moved from Completion/Base/_arguments 2001-04-02 11:09:34 +00:00
Sven Wischnowsky
fd0f0d4598 moved to Completion/Base/Utility/_arguments 2001-04-02 11:09:26 +00:00
Sven Wischnowsky
1d860e140e moved from Completion/Base/_arg_compile 2001-04-02 11:09:17 +00:00
Sven Wischnowsky
c48b35b727 moved to Completion/Base/Utility/_arg_compile 2001-04-02 11:09:09 +00:00
Sven Wischnowsky
a067f38ad1 moved from Completion/Core/_prefix 2001-04-02 11:08:54 +00:00
Sven Wischnowsky
ad74f96ef0 moved from Completion/Core/_oldlist 2001-04-02 11:08:37 +00:00
Sven Wischnowsky
382d03c17d moved from Completion/Core/_menu 2001-04-02 11:08:19 +00:00
Sven Wischnowsky
d73d9e9f7c moved from Completion/Core/_match 2001-04-02 11:08:02 +00:00
Sven Wischnowsky
0aa7811fb7 moved from Completion/Core/_list 2001-04-02 11:07:45 +00:00
Sven Wischnowsky
8b2902b97b moved from Completion/Core/_ignored 2001-04-02 11:07:28 +00:00
Sven Wischnowsky
e4ca49fe01 moved from Completion/Core/_history 2001-04-02 11:07:11 +00:00
Sven Wischnowsky
cbbb15dc98 moved from Completion/Core/_expand_alias 2001-04-02 11:06:52 +00:00
Sven Wischnowsky
c1d508d834 moved from Completion/Core/_expand 2001-04-02 11:06:35 +00:00
Sven Wischnowsky
0fc23d16fd moved from Completion/Core/_correct 2001-04-02 11:06:18 +00:00
Sven Wischnowsky
502746c133 moved from Completion/Core/_complete 2001-04-02 11:06:01 +00:00
Sven Wischnowsky
59e5ef46d2 moved from Completion/Core/_approximate 2001-04-02 11:05:44 +00:00
Sven Wischnowsky
4d58238a0a moved from Completion/Core/_all_matches 2001-04-02 11:05:27 +00:00
Sven Wischnowsky
1e361dac9c moved from Completion/Core/_wanted 2001-04-02 11:05:04 +00:00
Sven Wischnowsky
4285f0578a moved from Completion/Core/_tags 2001-04-02 11:04:49 +00:00
Sven Wischnowsky
4c9dc4a461 moved from Completion/Core/_setup 2001-04-02 11:04:32 +00:00
Sven Wischnowsky
a9fe340666 moved from Completion/Core/_requested 2001-04-02 11:04:20 +00:00
Sven Wischnowsky
f02dc0a88a moved from Completion/Core/_normal 2001-04-02 11:04:04 +00:00
Sven Wischnowsky
ad00c93296 moved from Completion/Core/_next_label 2001-04-02 11:03:49 +00:00
Sven Wischnowsky
b8fd517172 moved from Completion/Core/_message 2001-04-02 11:03:34 +00:00
Sven Wischnowsky
932f096df9 moved from Completion/Core/_main_complete 2001-04-02 11:03:18 +00:00
Sven Wischnowsky
422579b1e7 moved from Completion/Core/_description 2001-04-02 11:03:01 +00:00
Sven Wischnowsky
c789f5dbdb moved from Completion/Core/_all_labels 2001-04-02 11:02:44 +00:00
Sven Wischnowsky
975b4c58d3 don't add options as completions if a `->state' action was used and we are directly after the option (in the same word) (13809) 2001-03-28 09:50:36 +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
aa9c315cc8 comment out looking up the prefix-needed style when completing directory stack entries; make _tilde use _popd, finally (13789) 2001-03-27 12:22:53 +00:00
Oliver Kiddle
e264c1bee1 Various new, improved, fixed or updated functions (13600) 2001-03-11 22:53:41 +00:00
Peter Stephenson
f46ad1753b Dist more files 2001-03-08 12:03:33 +00:00
Sven Wischnowsky
183f6b06d0 some small functions for completing sub-commands (generic function, init scripts, apachectl) (13536) 2001-02-26 15:05:37 +00:00
Sven Wischnowsky
b9f6bdf162 add fake-parameters style to allow completing parameters which are not yet set (12946) 2000-10-10 14:12:21 +00:00
Oliver Kiddle
5b04efd73c add -g option to _parameters to restrict type of parameters completed (12583) 2000-08-10 21:12:03 +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
eabfc368bd prefer user-defined specs over ones derived from --help output (12475) 2000-08-02 09:09:54 +00:00
Sven Wischnowsky
81fc1bf26c fix for automatically recognised options, don't expect an argument after each of them (12462) 2000-08-01 11:20:59 +00:00
Sven Wischnowsky
3896f72f4d make $compcontext more powerful and easier to use for simple cases (12449) 2000-08-01 07:18:43 +00:00
Sven Wischnowsky
e7f9104711 make _arguments --' use specs after the --' even for options not described in the help output to get arguments (12378) 2000-07-26 08:44:13 +00:00
Sven Wischnowsky
f90992ec31 allow _value:<assoc> functions to override completion for all keys of an assoc (3337) 2000-07-26 08:16:39 +00:00
Sven Wischnowsky
fd25b24df6 use compadd -[ak] (11549) 2000-05-31 09:38:25 +00:00
Sven Wischnowsky
3beeb8a6fd avoid reporting the same ->state more than once (11678) 2000-05-31 06:11:07 +00:00
Peter Stephenson
d7163e6369 _argument_sets removed from .distfile 2000-05-30 09:30:08 +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
Sven Wischnowsky
d22ee9a5ba keep information about things to complete in _arguments (11631) 2000-05-29 09:15:12 +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
7a3ca7a673 11618: Fix bad shift. 2000-05-28 21:10: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
ee681a32ad use set -A' instead of eval' in more places (11525) 2000-05-23 08:54:30 +00:00
Bart Schaefer
7d19431901 11515: Fix infinite loop. 2000-05-22 17:17:52 +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
f9e65c2b1f don't use $match for something different than (#b)ackrefs (11464) 2000-05-19 08:24:16 +00:00
Sven Wischnowsky
95883d8b95 avoid tilde- and parameter-completion in quotes (11407) 2000-05-16 11:24:55 +00:00
Sven Wischnowsky
0129f41d80 make _arguments take the attempt to add matches as an indication not to do default option-completion (11406) 2000-05-16 11:15:24 +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
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
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
Oliver Kiddle
d624558051 Use _math for completing the let builtin 2000-05-09 17:16:08 +00:00
Sven Wischnowsky
8a5fb55595 option name clash in _arguments (11273) 2000-05-09 09:52:27 +00:00
Sven Wischnowsky
6626f6dc86 fix for _arguments without options and no more arguments to complete (11272) 2000-05-09 09:44:26 +00:00
Sven Wischnowsky
cfcb3202ef more problems with optional arguments in _arguments (11253) 2000-05-08 10:37:58 +00:00
Peter Stephenson
38bb84d975 11194, 11200, 11214 2000-05-08 08:58:37 +00:00