1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 19:20:53 +02:00
Commit graph

335 commits

Author SHA1 Message Date
Barton E. Schaefer
5caf317c3a unposted (cf. 34218): : remove -m from zmodload calls 2015-01-10 18:06:43 -08:00
Barton E. Schaefer
199581f780 34202: safe tempfile creation part 3 -- use zf_ln instead of mv 2015-01-10 10:32:31 -08:00
Barton E. Schaefer
33b3958064 34068: create tempfiles without forking, and safe temp directory creation 2014-12-28 00:49:08 -08:00
Barton E. Schaefer
200accac63 34067: safe tempfile creation, part 1 2014-12-27 23:59:29 -08: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
Oliver Kiddle
ee38545c62 users/19365: completer for current directory of other shell processes 2014-11-25 20:03:53 +01: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
Oliver Kiddle
03241e50b0 33438: use the new way of splitting strings with a dynamic separator
from 33423 and quote separators where needed
2014-10-13 11:13:55 +02:00
Barton E. Schaefer
22c4ea424c 33403: be conservative about redirecting _call_program stderr, the caller may have already done so 2014-10-09 17:54:47 -07:00
Barton E. Schaefer
57252dc1e0 33320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completion
add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line.
2014-10-02 08:39:43 -07:00
Barton E. Schaefer
5a2668a6ac 33223: discard stderr except when _complete_debug is in progress. 2014-09-23 20:31:31 -07:00
Barton E. Schaefer
e1ba30afae 33205: keep array of completions and array of display strings in sync when filtering for matches 2014-09-19 19:42:45 -07:00
Barton E. Schaefer
6d9635b0bd 33088: indentation in $PS4 2014-09-03 00:24:29 -07:00
Barton E. Schaefer
e01739d2b7 33069: remove internal quoting before lookup when expanding aliases in an unquoted word 2014-08-30 14:09:23 -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
469ee6daef 32997: new utility function for separated lists 2014-08-14 19:00:04 +02:00
Peter Stephenson
f8ae47f29b unposted: updates for 5.0.5-dev-1 and subsequent 5.0.6 release 2014-08-10 17:49:55 +01:00
Oliver Kiddle
7d301a527e 32441: add completer for file extensions 2014-03-03 16:50:14 +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
Oliver Kiddle
7c31413278 users/18498: observe add-space style in _expand_alias so suffix can be disabled 2014-02-25 09:02:19 +01:00
Barton E. Schaefer
779ad93490 32322: display a message when completion is interrupted from the keyboard 2014-01-30 08:25:06 -08:00
Barton E. Schaefer
9e4468d38d 32186: fix bad backreference; handle glob patterns with backslashed quotes 2013-12-28 00:30:17 -08:00
Barton E. Schaefer
8a35ec4eef 31205: Do not display "(eval)" as a tag context 2013-06-10 00:18:52 -07:00
Peter Stephenson
60e41f9fc8 31369: set locale for completion if locale command is not usable 2013-05-04 16:07:34 +01:00
Peter Stephenson
8cdb57b3b7 31355: _comp_locale tries to sanitise locales but keep CTYPE;
use this for subversion completion.
2013-04-29 10:08:07 +01:00
Bart Schaefer
b4b02fbc8a 31234: use an "always" block instead of "trap" to clean up various function
overrides
2013-04-07 13:37:25 -07:00
Peter Stephenson
a69f05b4ce 31151: Pavol Juhas: complete (C etc) tags better
when file system is not case sensitive.
2013-03-14 19:34:32 +00:00
Peter Stephenson
7152094541 Missing .distfiles entries 2012-12-16 18:48:35 +00:00
Oliver Kiddle
a8ffff2cb7 users/17382: complete URLs for vim and make _remote_files more
consistent with _files
2012-11-07 20:59:09 +00:00
Peter Stephenson
d3891edfca users/12713: returning REPLY to _user_expand sets description for expansion 2012-09-03 11:12:15 +00: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
Simon Ruderich
d374f2b180 29918: Completion: Add new _remote_files() helper and use it to reduce code duplication. 2011-12-09 22:39:08 +00:00
Peter Stephenson
8dc39360c9 29820: _pick_variant -b to match builtin 2011-10-14 19:01:41 +00:00
Peter Stephenson
771b059a52 29635: Improve _complete_debug syntax and handling of fd's 2011-08-03 09:36:49 +00:00
Mikael Magnusson
3214cf0a74 29384: Add _comp_caller_options 2011-05-27 14:36:33 +00:00
Mikael Magnusson
4c3efc94cc 29338: fix pattern in _main_complete for insert-tab. 2011-05-24 01:09:46 +00:00
Mikael Magnusson
72cb7cfc6f 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
Peter Stephenson
246bcd10a7 Mikael: 28531: typos 2010-12-16 13:55:35 +00:00
Peter Stephenson
72d1045da5 unposted: remove users/15622 _pick_variant change 2010-12-07 15:10:48 +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
Bart Schaefer
059c8dede6 28186: replace (...|...) pattern-match with a loop over the alternatives to
avoid issues with pattern-quoting each alternative.
2010-08-22 15:54:36 +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
1b68e0ea00 Mikael: 27797: delimit arguments to compadd in _expand_alias 2010-03-15 21:17:50 +00:00
Peter Stephenson
5b80d50ad3 27233: improved _values handling of optional arguments
mount -o loop= argument is optional
2009-08-28 15:10:27 +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
e70b53a127 26861 from Greg plus 26863: global parameters in _read_comp 2009-04-21 16:04:34 +00:00