1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00
Commit graph

58 commits

Author SHA1 Message Date
Oliver Kiddle
82119d8d17 38904: fix return status in _normal and functions erroneously using it for default completion 2016-07-21 17:49:13 +02:00
Peter Stephenson
b7aecf6c8e Don't require MULTI_FUNCDEF in _main_complete.
Although it gets set there, _main_complete is parsed to the end first.
2015-06-27 17:50:57 +01:00
Barton E. Schaefer
a253ada08b 35163: move "show-ambiguity" style to _setup so that more precise context can be applied 2015-06-06 12:35:52 -07:00
Barton E. Schaefer
8254c9c071 users/20034: adjust PREFIX and SUFFIX for unambiguous_cursor on second completion attempt with GLOB_COMPLETE 2015-03-21 09:29:52 -07:00
Peter Stephenson
d067ebcacd 33876: etc.: Separate errors and keyboards interrupts
Combination of 12 commits from interrupt_abort branch.

Basic strategy is to introduce bits to errflag and to set and
reset them separately.

Remove interrupt status on return to main keymap.

Turn off ERRFLAG_INT for always block.

Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.

Add TRY_BLOCK_INTERRUPT

This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.

Ensure propagation of SIGINT from exited job.

If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.

Reset errflag before precmd()

Add always block in _main_completion to fix ZLS_COLORS

Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt.  However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
Barton E. Schaefer
5e9206061d 33901: fix warning message reference to funcstack (updates 33859) 2014-12-07 11:20:01 -08:00
Peter Stephenson
b4a198cdda 33859: Fix traps in completion
We need to use a function-style trap in order for the effect of the
interrupt to propagate back correctly.
2014-12-05 17:06:28 +00:00
Barton E. Schaefer
691547cda6 33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko in status message for INT/QUIT signals; check errflag in output loops
Two semi-related patches for keyboard interrupt handling in completion,
most importantly so that unexpectedly long completion listings can be
interrupted.
2014-10-29 08:45:57 -07:00
Peter Stephenson
cc6e9db29d 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
Oliver Kiddle
1f290a3e82 32439: add new show-ambiguity style 2014-03-03 12:08:45 +01:00
Jun T
7d7242405a 32435: improved quoting for ignore-line completion style 2014-02-26 20:39:11 +00:00
Barton E. Schaefer
779ad93490 32322: display a message when completion is interrupted from the keyboard 2014-01-30 08:25:06 -08:00
Peter Stephenson
432112c425 30081: make _main_complete independent of IGNORE_CLOSE_BRACES option 2012-01-05 19:59:42 +00:00
Bart Schaefer
3f98949ca8 30012: add $state_descr 2011-12-13 17:43:01 +00:00
Mikael Magnusson
4c3efc94cc 29338: fix pattern in _main_complete for insert-tab. 2011-05-24 01:09:46 +00:00
Peter Stephenson
8d00aca697 users/15621: compdef -p/-P <pat>=<service>
users/15622: use service with _pick_variant
2010-12-06 17:23:04 +00:00
Peter Stephenson
5d77927ffd 27911: no completion colouring with old lists when turned off 2010-04-27 08:49:11 +00:00
Peter Stephenson
5449458e5a users/14267: files added by ignore-line should be quoted 2009-07-30 19:01:56 +00:00
Peter Stephenson
1e7c14ee35 26801: add completion for calendar function
add tracking of precommand modifiers that are in effect
2009-04-01 10:57:10 +00:00
Peter Stephenson
1d025a2bb9 26746: tweak history modifier completion 2009-03-17 10:03:23 +00:00
Peter Stephenson
b0fde52d53 26744: completion of history modifiers in normal command line arguments 2009-03-16 18:29:38 +00:00
Peter Stephenson
181e491deb users/10989: add fake-always pattern that overrides ignored-patterns 2006-11-15 16:27:14 +00:00
Peter Stephenson
1bf6bbe0b5 20427: Fix problem with _oldlist and custom completer.
20339: show-completer style
2004-10-01 10:29:08 +00:00
Oliver Kiddle
ad25b67e3d 20254: restrict scope of the default tag-order to fix a problem with cdrecord
completion. Ideally the tag-order should go but _arguments currently needs it.
2004-08-11 11:57:04 +00:00
Peter Stephenson
03d14ff12e users/7467: quoted commands weren't found in dispatcher lokoup 2004-06-03 15:14:55 +00:00
Peter Stephenson
084cbf5ee0 zsh-users/7100: fix completion of =file when noequals is set 2004-03-02 12:52:02 +00:00
Peter Stephenson
c2ed9f96a7 18920: fix unset IFS betterer 2003-08-01 16:29:20 +00:00
Peter Stephenson
48205cc72f 18859: Allow the sort style to override sorting by setting explicitly to false. 2003-07-21 17:01:34 +00:00
Oliver Kiddle
a5f7097d9a 18472: spelling corrections 2003-04-25 11:18:50 +00:00
Oliver Kiddle
48df213153 18299: allow _next_tags to work with nested tag loops 2003-02-26 16:35:55 +00:00
Sven Wischnowsky
d28f67623f two new modes for menu selection: incremental search and interactive (17366) 2002-06-26 11:07:42 +00:00
Bart Schaefer
d20d427572 16849: shift off `-s' argument. 2002-03-17 18:03:06 +00:00
Sven Wischnowsky
45f9a36216 remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819) 2002-03-13 09:28:04 +00:00
Peter Stephenson
533cc753f7 unposted: usual fixups for .distfiles 2002-03-05 18:34:18 +00:00
Sven Wischnowsky
f56ba813bb allow different sets of completion definitions selected with option -T to compdef; use this for parameter values and redirections (16755) 2002-03-04 08:53:41 +00:00
Sven Wischnowsky
9b8176a659 make _message inhibit insertion of matches unless there are faked ones (16710) 2002-02-25 09:16:25 +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
77339cc21d add -x option (to be passed on to compadd) to _description and friends; make _message respect any -[12VJ] options it gets, adding the message to that group (16609) 2002-02-12 13:37:00 +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
f463b09b13 allow arguments to be given to functions used by compdef (actually, the strings are eval'uated, so this should be powerful enough) (16472) 2002-01-21 16:13:15 +00:00
Sven Wischnowsky
5a1065dc66 make insert-tab really default to `true' (15653) 2001-08-17 10:37:00 +00:00
Bart Schaefer
e8cb280d50 Fix "insert-tab pending" zstyle. 2001-06-20 17:42:15 +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
ff82191c26 empty description means: don't add a -X option (14252) 2001-05-08 08:46:59 +00:00
Sven Wischnowsky
cbba9da870 new or changed after move 2001-04-02 12:39:40 +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