1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-09 00:56:17 +02:00
Commit Graph

11905 Commits

Author SHA1 Message Date
Matt Koscica dbefe08f3e github #87 (tweaked): update options tmux 3.4
Import completion updates from tmux.git, the revision used was
c67abcf8182b, and the updates were generated by Util/check-tmux-state.

check-tmux-state: changes to output parsing + variable declaration

parsing of `tmux show-options` is slightly more idiomatic (thanks to
@phy1729 for the syntax), and it now also ignores user-specified options
(which are prefixed with an @ symbol).

the lines defining and declaring supported_server_options were also
swapped to the correct order - `typeset` was being called after
supported_server_options was populated, contrary to all the other
supported_*/available_* arrays used in the same area of the file.
2022-11-17 20:47:15 +01:00
Wu Zhenyu ca87b7e43f github #95: Add completions for neomutt 2022-11-17 20:18:09 +01:00
Oliver Kiddle f0aa42e7e5 unposted (c.f. Denis Bitouzé: users/28405): handle also lualatex 2022-11-17 20:10:52 +01:00
Oliver Kiddle c4d557bb0a 50934: use OSC 52 escape sequence when copying to "* or "+ vi buffers 2022-11-17 20:05:12 +01:00
Bart Schaefer b1533066ca unposted (see 50930): note bug with suspending conditional expressions 2022-11-12 08:28:28 -08:00
Bart Schaefer 8839e969bf 50929: fix handling of ERR_RETURN bent by 50928. 2022-11-09 21:48:46 -08:00
Bart Schaefer 1ba8714a7a 50928: fix tests for 50897, mention behavior change in NEWS 2022-11-09 21:37:56 -08:00
Bart Schaefer 61610ea4bd 50922: fix additional cases of signals for current shell jobs on the right of a pipeline.
Backs out part of 188c5cd5 (workers/50874).  With this change, after a
new subshell is forked upon suspend of the right side of a pipeline, the
previous foreground subjob is resumed first and the new subshell remains
stopped until that job finishes.
2022-11-09 20:24:57 -08:00
Bart Schaefer d873ed6026 50897: nonzero status of complex commands should trigger ERR_EXIT 2022-11-08 20:36:49 -08:00
Peter Stephenson 298919f43a users/28338: command substitution with alias edge case.
See added regression test.
2022-11-08 14:12:01 +00:00
Bart Schaefer 188c5cd518 50874: fix handling of tty signals for jobs in the current shell when waiting for the right side of a pipeline.
Reverts 15bf8ace (workers/50134).  Thanks to Jun T. for debugging assistance.

Issues came down to two things:
1. update_job() may be called on a process group leader even when a
   signal was NOT sent to any process in that process group.  This
   caused jobs to be resumed or backgrounded incorrectly or in the
   wrong order.
2. When there is a current-shell complex command (in braces) on the
   right side of a pipeline, external processes within it have their
   own process groups, but a tty signal sent to such a process should
   be treated as if received by the whole complex command.

This fixes:
* Suspend/resume of a foreground pipeline within a shell function
* Interrupt or suspend/resume of processes in a pipeline ending in { ... }
* Interrupt of such a pipeline after exit of the last process in { ... }

These affected interactive shells only (MONITOR set plus tty signals).
2022-11-06 11:25:47 -08:00
Jun-ichi Takimoto f8d93888a8 50851: restore typtab when necessary
inittyptab() must be called when returning from a function with
"setopt localoptions MULTIBYTE|BANGHIST|SHSTDIN", and also in
function dosetopt() when setting these options (via $options, for
example). We intentionally did not take account of the options
EMACS/VI because these options are obsolete and their use is
not recommended.
2022-11-02 16:27:27 +09:00
Bart Schaefer 7a2e3b9039 unposted: incorrect email address 2022-10-31 16:51:07 -07:00
Bart Schaefer 159c892b9b 50855: Clarify how commands are hashed, and searched-for by "whence". 2022-10-31 16:50:16 -07:00
Peter Grayson 0a66d6f3ec 50844: Remove _stgit completion script
The StGit project ships its own zsh completion script which is more
complete and up-to-date than those shipped with zsh.

https://github.com/stacked-git/stgit/blob/master/completion/stgit.zsh

Also, the _stgit completions that ship with zsh, which dynamically parse
StGit's help output, will be broken by the upcoming StGit 2.0 release
due to changes in the help output.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
2022-10-31 08:56:47 +00:00
Axel Beckert b76dcecfe3 50840: Doc/Zsh/grammar.yo: Correct NO_MATCH to NOMATCH 2022-10-25 12:49:48 +02:00
Bart Schaefer 5b1c204c54 Unposted: Fix typo in comment 2022-10-23 16:28:14 -07:00
Bart Schaefer 6b5ee0c17c users/28243: update "typeset +" documentation 2022-10-23 16:25:04 -07:00
Bart Schaefer a7e4394d1b 50714: also complete in the 2nd argument of "git diff" anything that could
be in the 1st argument.

This probably shouldn't complete ranges but all other code is in common,
so leaving it to someone more familiar with _git to clean up.
2022-10-22 20:26:23 -07:00
Peter Stephenson b82e8e1035 50786: Make match etc. local when used in styles.
Avoids side effects of add-zle-hook-widget.
2022-10-17 16:21:01 +01:00
Wesley Schwengle 727b493e2b 50736: silence use-after-free warning (gcc-12.2) 2022-10-17 13:13:13 +09:00
Jun-ichi Takimoto b7f280ab59 50671: enable spell check in *.ztst by vim 2022-09-29 12:26:36 +09:00
Eric Cook c901c1e412 50695: Completion/Unix/Command/_mysql_utils add --protocol option 2022-09-28 17:59:48 -04:00
Bart Schaefer 0a69a2f6cb 50399: Completion/Base/Widget/_complete_debug
Properly local scope PS4 change
2022-09-28 17:11:08 -04:00
Jun-ichi Takimoto 33938ad489 50668: treat 8bit chars correctly when multibyte is unset
The problem was found in character range, but may have existed in other
occasions
2022-09-27 15:20:24 +09:00
Jun-ichi Takimoto 1e4c7bcae5 50662: unset LC_* for all the tests 2022-09-26 11:09:22 +09:00
Jun-ichi Takimoto 1b421e4978 50658 + test: Enable to switch between C/UTF-8 locales in PCRE 2022-09-26 10:52:50 +09:00
Julian Prein 6e827d8f9a 50648: Use $ZCALC_HISTORY where appropriate 2022-09-25 18:05:49 +01:00
Nicholas Vinson ab4d62eb97 50641: use 'int main()' in test C-codes in configure 2022-09-21 09:22:11 +09:00
Jun-ichi Takimoto 4fc5dc0292 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
Daniel Shahaf eb738c793a unposted: _imagemagick: Add *.svg and *.webp files.
As a comment just above the hunk indicates, many more formats could be added.
2022-08-28 16:45:53 +00:00
Jun-ichi Takimoto 7996fa561e Felipe Contreras: 50435+50436 (+50444): do not build anything
Use 'make -nqp' to ensure nothing is actually built by completion.
Also include some performance improvements, but it can be still
rather slow in a large project's source tree.
2022-08-05 22:53:31 +09:00
Jun-ichi Takimoto 8e1c6ed6bf 50421: add context as the 1st arg to _dispatch 2022-07-24 21:08:06 +09:00
Jun-ichi Takimoto ac6257f150 50418: use setenv(3)/getenv(3) on newer macOS 2022-07-24 20:41:20 +09:00
Bart Schaefer 13c6b64838 users/27852: local _compskip to avoid propagating any changes by _normal 2022-07-16 20:53:59 -07:00
Bart Schaefer cb59dfb3a6 50379/50380: fix off-by-one side-effect of workers/49906 that broke $(jobs -l) 2022-06-21 18:04:45 -07:00
Bart Schaefer f7441b4645 50368: adjust ztie'd bitflags so local variables cannot mess with database 2022-06-21 17:58:57 -07:00
Peter Stephenson 123497b78e 50372: remove Usenet references from FAQ 2022-06-16 17:25:01 +01:00
Jun-ichi Takimoto fc431b5956 50365: fix indent in FAQ (text version)
Lack of indent of the 1st line of a paragraph is fixed, but now two
or more consecutive blank lines will be copied to text output as is.
2022-06-14 01:55:27 +09:00
Bart Schaefer 61f35bb626 50355: documentation and return status consistency in zsh/system module 2022-06-11 15:02:46 -07:00
Jun-ichi Takimoto 6a6e358baf 50356: work around a yodl bug (mishandling of \'e)
the bug has been fixed at least in yodl-4.04.02
2022-06-11 14:09:02 +09:00
Bart Schaefer 285b6c2538 50363: avoid use of heap memory that depends on parameter scoping 2022-06-09 15:10:43 -07:00
Matthew Martin d4955bc0f9 50359: fix bad sticky-emulation in "functions -c" 2022-06-09 13:37:51 -07:00
Bart Schaefer d24ab95469 50351: "functions -c" can set signal traps 2022-06-09 13:30:55 -07:00
Jun-ichi Takimoto c36068357b 50342: fix test added by 50306 2022-06-09 15:08:39 +09:00
Bart Schaefer 734740a5ed 50341: disallow here-document markers containing newline 2022-06-08 20:48:42 -07:00
Bart Schaefer 52761c9418 50335: simplify "wait" usage, fix signal handling
- remove the preliminary "wait" for all the process
- remove "nomonitor" (because it was only needed for that "wait")
- explicitly adds traps to exit for tty-generated signals plus TERM
- capture the signal trap context and restore it in background jobs
- wrap in an "always" block to clean up local helper functions
- update comments to note another buglet and drop support for zsh 4.x.
2022-06-08 20:41:24 -07:00
Peter Stephenson b26b6b3fe0 Tweaks to MULTI_FUNC_DEF
Output multiple function definitions using "function" form.

Note exceptions to errors with NO_MULTI_FUNC_DEF
2022-06-07 10:02:14 +01:00
Bart Schaefer a99f96797f 50323: create helper for shadowing builtins or existing functions and use it when redefining compadd et al. 2022-06-04 14:19:42 -07:00
Bart Schaefer 3e3cfabcc7 50325: revert 38150 and fix in calling function cfp_matcher_range() instead 2022-06-03 20:08:15 -07:00