1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-12 17:11:25 +02:00
Commit graph

9387 commits

Author SHA1 Message Date
Daniel Shahaf
9f70404714 38182: _git: Invoke reflog completion from the 'complete commit objects' codepath.
The reflog will only be used if the user has typed as "@" by hand.
2016-03-21 16:12:15 +00:00
Daniel Shahaf
ce4c9eafc4 38181: _git reflog: Complete '@{N}' instead of 'HEAD@{N}'.
The «HEAD@{...}» syntax is no longer completed, since it's not easily possible
to support both syntaxes (workers/34768).
2016-03-21 16:12:13 +00:00
Daniel Shahaf
67136df0bf 38180: _git: Improve reflog completion.
Currently, only used by «git reflog delete <TAB>».
2016-03-21 16:12:10 +00:00
m0viefreak
cbc44bd64a 38145: ZLE parameters for isearch and completion suffixes 2016-03-21 09:43:29 +00:00
Mikael Magnusson
ee2f0dbed1 38187: _adb: Just check current dir instead of recursively
Thanks to LambdaComplex in IRC for help with troubleshooting.
2016-03-19 19:08:11 +01:00
Mikael Magnusson
7ad041c9e9 38186: _adb: fix remote file completion + various fixes 2016-03-19 13:41:27 +01:00
Daniel Shahaf
43e595712c unposted: Document run-help-* helper functions. 2016-03-18 21:22:59 +00:00
Mikael Magnusson
bc0c3caf60 38179: _adb: Fix completion by mostly reverting 35531 2016-03-18 17:23:37 +01:00
Frank Terbeck
5deb57714f 38161: _tmux: Use a colon to terminate options to _arguments itself
In users/21384 it was reported that

  % tmux new-session -<tab>

...does not offer -A as a candidate for completion even though the
option is listed in the involved helper function _tmux-new-session().

-A is actually an option the _arguments function uses itself. The
documentation states:

    To avoid ambiguity, all options to _arguments itself may
    be separated from the spec forms by a single colon.

This commit changes each _arguments call to include the optional
colon, so problems like this are prevented now and hopefully in
the future.
2016-03-16 00:38:37 +01:00
Daniel Shahaf
bd06982b23 38155: docs: compsys: Clarify documentation of the 'filter' style. 2016-03-15 00:12:04 +00:00
m0viefreak
a1f45b3346 38151: _git: fix tag name of remote branches 2016-03-15 00:07:18 +00:00
m0viefreak
666a7f5845 38148: _git: reflog: complete references next to commands
'git reflog show' is the default subcommand, so

  git reflog <tab>

should complete subcommands and references.
2016-03-15 00:07:15 +00:00
Daniel Shahaf
c82ce14950 38135: internal: bin_compadd: Add a few comments. 2016-03-11 22:19:09 +00:00
Daniel Shahaf
527badc237 38129: _git: Fix __git_ignore_line's treatment of shell and pattern metacaracters.
Builds upon a patch by Jun T.

Also upgrade/fix __git_pattern_escape.
2016-03-11 22:19:04 +00:00
Daniel Shahaf
98fcdb0861 38128: _git: Fix completion of diffs against the index when treeish isn't shell-safe
This affects 'git diff --cached -- <TAB>' and 'git reset $treeish <TAB>'.
2016-03-10 23:18:36 +00:00
Daniel Shahaf
be41c522f2 38123 (after 38074): _git reset $treeish: complete only staged files 2016-03-10 23:18:15 +00:00
Daniel Shahaf
3d9479274e unposted: ChangeLog: credit Martijn Dekker for workers/38039 (POSIXy 'set +o') 2016-03-09 23:32:01 +00:00
Daniel Shahaf
33bd9136d6 38120: _git: Document the internal helper function __git_ignore_line. 2016-03-09 14:08:49 +00:00
Peter Stephenson
f4dfca490c 38114: Fix hang using ^Z with command subst.
In subshells started to perform substitutions disable signals
that require interactive handling.
2016-03-09 09:51:14 +00:00
Jun-ichi Takimoto
4b6a79887d unposted: update .gitignore for 38108 2016-03-09 10:28:25 +09:00
Jun-ichi Takimoto
db42e7c504 38108: enable to create both zsh_{a4,us}.pdf
Default paper size is taken from LC_PAPER.
Stop to check for pdfetex (obsolete and redundant).
2016-03-08 21:42:21 +09:00
Jun-ichi Takimoto
983060d5d1 38074: _git reset HEAD: complete only staged files 2016-03-08 21:21:44 +09:00
Oliver Kiddle
8c29b34032 38043: allow any completion widget to cycle matches for menu completion to fix reverse menu completion 2016-03-07 13:15:40 +01:00
Peter Stephenson
28c46c1bfb 38111: Remove redundant return values in parsing.
Return values from par_list() and par_list1() are no longer used.
2016-03-07 10:49:35 +00:00
Peter Stephenson
dc2397f754 users/21352: ensure $'' doesn't get elided.
Assign nulstring to it if empty.  Test for all forms of quotation
marks.
2016-03-07 09:44:54 +00:00
Peter Stephenson
17fb014dc7 38094: Fix POSIX EXIT traps defined in function.
These aren't local, so set the local level to 0; else they can get
overridden incorrectly.
2016-03-07 09:42:21 +00:00
Barton E. Schaefer
bc958ab275 38106: if...then if...else should be a parse error. 2016-03-06 15:10:27 -08:00
Greg Klanderman
440c6beec0 38086: shuffle init code to localize a global, add $ZSH_ARGZERO, refine $ZSH_SCRIPT
(also a couple of ChangeLog typos corrected -- Bart)
2016-03-06 09:53:40 -08:00
Baruch Siach
77e55b1ea3 38084: Use previously located pcre-config for libs 2016-03-04 12:02:18 +00:00
Barton E. Schaefer
564fb25e82 38048: fix "zle redisplay" when called while a listing is below the prompt 2016-03-03 13:03:40 -08:00
Barton E. Schaefer
6756870a92 38039: POSIXy behavior for "set +o" 2016-03-03 13:01:08 -08:00
Stephane Chazelas
f7d5ff31ce 38020: fix problems with $SECONDS.
Fractions of a second were not handled correctly.
2016-02-26 11:12:32 +00:00
Peter Stephenson
c55d855171 38024: Improve POSIX and native EXIT traps compatibility.
Allow a nested function trap to leave save and restore a POSIX
trap.

Still fails if the POSIX trap was defined in a function.
2016-02-25 14:20:26 +00:00
Daniel Shahaf
3195003cde unposted: Fix typos in ChangeLog. 2016-02-19 09:34:00 +00:00
Daniel Shahaf
1d3a540139 unposted: developer documentation: Clarify the term "variant". 2016-02-19 09:31:41 +00:00
Barton E. Schaefer
c3f4d18e4f 38001: clear-screen re-expands prompts 2016-02-17 20:04:25 -08:00
Barton E. Schaefer
b7b3ae311d 37988: $0 becomes read-only under POSIXARGZERO 2016-02-17 20:04:25 -08:00
Peter Stephenson
ab74c86edb 37999: Sticky behaviour of EXIT traps.
They now have POSIX or non-POSIX behaviour based on the setting
of POSIX_TRAPS where the trap was defined, rather than where the
trap would (or would not) be executed.

Tweaks possible.
2016-02-17 10:40:55 +00:00
Daniel Shahaf
f96a016728 users/21256 + workers/37965: New math functions min(), max(), sum(), provided by a new autoloadable function 'zmathfunc'. 2016-02-16 10:52:27 +00:00
Eric Cook
40b3d2a1f6 37975: Completion/Unix/Command/_php: remove _arguments' -A option 2016-02-15 22:13:35 -05:00
Barton E. Schaefer
ac5d83bf56 37898: fix typo in completer menu 2016-02-14 13:13:06 -08:00
Barton E. Schaefer
e3188ff0e8 37898: complete gcc linker options 2016-02-14 13:11:20 -08:00
Barton E. Schaefer
485cbbb6cc 37972: Redirect stderr to /dev/null in cases where ${~param} might generate errors 2016-02-14 13:10:06 -08:00
Barton E. Schaefer
e54578ff74 37971: fix potential issues when interacting with user-defined widgets
Cf. users/21284: Eric Freese
2016-02-14 11:35:18 -08:00
Barton E. Schaefer
f07a1bd009 37961: fix crash on bad memory access
In interactive menuselection, use of "compadd -x" (e.g. the "warnings"
zstyle) may have replaced the completion list, so skip highlighting of
the current selection until a subsequent keystroke has regenerated the
original listing
2016-02-14 11:13:17 -08:00
Barton E. Schaefer
1b923f69c7 37927: recreate local keymaps as necessary in case the user has deleted them 2016-02-13 12:51:12 -08:00
Eric Cook
9cc6ebe7a2 37913: add additional completers and _zpool improvement 2016-02-11 22:53:16 -05:00
Peter Stephenson
6d82ce161a 37946: make rm * warnings more informative.
Now count files that would be deleted up to 100.
2016-02-11 15:23:57 +00:00
Peter Stephenson
10cf74deee Missed ChangeLog entry for 37895 2016-02-10 19:43:42 +00:00
Peter Stephenson
db3f2d253c 37893: document typeset -U behaviour for PATH-style variables 2016-02-09 16:03:36 +00:00