1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-07 23:51:14 +02:00
Commit graph

7625 commits

Author SHA1 Message Date
Peter Stephenson
73ececfd01 31830: New feature for zshaddhistory hooks.
If the first non-zero return status is 2, save the line on the
internal history list, but don't write it out.
2013-10-17 10:14:25 +01:00
Peter Stephenson
a8f736b4cf Users/18033: Documentation for exit and ERR_EXIT.
Notes about interaction with asynchronous jobs such as process
substitution and multios.
2013-10-16 20:55:48 +01:00
Peter Stephenson
441c19c161 31872: zshaddhistory hook example needs options.
Only works with INCAPPENDHISTORY or SHAREHISTORY set.
2013-10-16 09:49:55 +01:00
Peter Stephenson
f6967bb745 Fix trivial typo in zshaddhistory doc. 2013-10-15 18:02:09 +01:00
Bart Schaefer
332924513b Merge branch 'master' of git://git.code.sf.net/p/zsh/code 2013-10-13 10:59:52 -07:00
Barton E. Schaefer
d5ba3ed245 31818: fix completion for zsh in _sh, and document the _arguments behavior that made the fix necessary
To avoid side effects, reposition the _arguments call in _sh for the zsh
special case. Document the side effects so avoided, and clean up the
_arguments documentation a bit along the way.
2013-10-12 09:19:24 -07:00
Mikael Magnusson
3057036472 Update ChangeLog with previous commits 2013-10-11 14:58:41 +02:00
Mikael Magnusson
38adc17336 31806: _enable _disable: Workaround special characters in alias and function names breaking _arguments syntax 2013-10-11 14:57:57 +02:00
Mikael Magnusson
6f921b91f4 31805: Update _enable and _disable for -p, fix related typo in docs 2013-10-11 14:57:57 +02:00
Mikael Magnusson
fa03332635 31805: Add $patchars and $dis_patchars to zsh/parameter module 2013-10-11 14:57:57 +02:00
Peter Stephenson
d0fe73c5fb 31815: another fix for INCAPPENDHISTORY change.
We need to save immediately if something is pushed on the history stack
to ensure we use the right file before popping.
2013-10-11 11:13:03 +01:00
Bart Schaefer
5faab39a7e Merge branch 'master' of git://git.code.sf.net/p/zsh/code 2013-10-10 09:54:00 -07:00
Peter Stephenson
c35a561a9c 31810: tests for simple XTRACE output from conditions 2013-10-10 17:45:42 +01:00
Peter Stephenson
68a9bab11d 31809: Make whitespace clear in trace output for patterns. 2013-10-10 17:12:50 +01:00
Eric Cook
dc272d0d14 31801: missing local declaration for variables in completion 2013-10-08 20:47:51 +01:00
Barton E. Schaefer
8ffdf161c7 31797: to match documentation, avoid expanding history when there is neither a
word nor an event designator

There are still a few cases where expansion is attempted even though the
documentation indicates it will not be, but in most of those cases the
expansion will fail.  The now-fixed case would fall back to default
expansion of the previous command.
2013-10-08 07:21:29 -07:00
Bart Schaefer
b077d6ee9c unposted: fix typo 2013-10-07 12:53:56 -07:00
Peter Stephenson
6f195241f3 31794: further refinement to INCAPPENDHISTORY change.
With SHAREHISTORY we should make sure the code behaves as it always
did, because it takes care about locking a file once for reading
and writing.
2013-10-07 13:01:26 +01:00
Peter Stephenson
9345e57859 31793: Fix problem with non-interactive history.
Modify 31789 so it doesn't try to save history from hbegin()
in that case.
2013-10-07 11:43:55 +01:00
Wayne Davison
7e4fd18519 Add new options for rsync 3.1.0. 2013-10-06 16:53:21 -07:00
Peter Stephenson
5236425865 users:18023: Add PIPEFAIL option 2013-10-06 21:35:27 +01:00
Han Pingtian
16ff79a885 31789: Save history for INCAPPENDHISTORY later.
This improves the timing recorded in the history.
2013-10-05 22:03:43 +01:00
Barton E. Schaefer
75fdec17b1 31784: better line width calculation for completion listings
When deciding whether there is enough horizontal space to show completion
descriptions for each match in a listing, treat the separator as part of
the description rather than as part of the match, and account for lines
that have already wrapped due to very long matches.
2013-10-03 15:59:52 -07:00
Barton E. Schaefer
ea30fdaf25 31781: "compdescribe -i" clears the completion list column padding width 2013-10-03 14:52:54 -07:00
Barton E. Schaefer
ae92cadc75 31772: queue_signals() to prevent re-entry into endparamscope(). 2013-09-26 21:27:27 -07:00
Barton E. Schaefer
98b0828c63 31770: memmove() instead of memcpy() for overlapping regions. 2013-09-26 21:24:58 -07:00
Peter Stephenson
0ed3c5ccd0 31765: If zle starts in viins mark as insertion.
This allows undo to work on everything entered.
2013-09-25 18:42:59 +01:00
Peter Stephenson
60debf388f 31764: Dewreakify havoc caused by pattern disables on glob qualifiers.
Don't use the zpc_specials array before it's defined, it's rude.
2013-09-23 21:02:31 +01:00
m0viefreak
8a70a98577 31754: _git: git rm: make git rm --cached work as intended
While limiting the completion to __git_changed-in-index_files
makes perfect sense for "git diff", it is wrong to use for
"git rm", because it prevents it from completing files present in
HEAD. Giving --cached to git rm is supposed to
"just remove it from the index, keep the working tree copy"
and is in no way related to the file needing to be
modified in the index in the first place.
2013-09-22 14:01:16 +02:00
Øystein Walle
2025b05bcf 31752: _git: change completion text for consistency 2013-09-22 14:01:15 +02:00
m0viefreak
128de883bd 31753: _git: correct some "undocumented" options
diff options:
  --cumulative is deprecated --> remove
  -G / -S: reword -S to emphase the difference to -G

revision options:
  --abbrev: reword, to emphase the --abbrev-commit requirement
2013-09-22 14:01:15 +02:00
Øystein Walle
cf0eae5d96 31751: _git: remove TODOs of actually documented options
No functional changes.
2013-09-22 14:01:14 +02:00
Øystein Walle
ab05a3d6d4 31749: _git: fix some typos in description texts 2013-09-22 14:01:13 +02:00
m0viefreak
735e7becb9 31748: _git: support completing remote branches without <remote>/ prefix
this is used in git 1.8's
git checkout <branch>
as a shorthand for
git checkout -b <branch> --track <remote>/<branch>
in case <branch> exists on exactly one remote and is not a local branch
2013-09-22 14:01:12 +02:00
m0viefreak
e45f685d4a 31746: _git: reword _git-config TODO
Support for merge drivers, filter drivers, and diff drivers is
missing.
2013-09-22 14:01:12 +02:00
Øystein Walle
5ec6a1510a 31750: _git: add new configuration options to match latest git v1.8.3 2013-09-22 14:01:11 +02:00
Øystein Walle
6c4c11929c 31747: _git: completion updates to match latest git v1.8.3 part 2 2013-09-22 14:01:10 +02:00
m0viefreak
f20ba1a51e 31755: _git: completion updates to match latest git v1.8.3 2013-09-22 14:01:09 +02:00
m0viefreak
06d58592ab 31745: _git: correctly use __git_guard_number in some cases
The space is relevant to make the help text work as intended.
2013-09-22 14:01:08 +02:00
m0viefreak
ef4157fac4 31744: _git: make git submodule <cmd> completion work
The -A parameter in the main completion stopped completion
in the subcommands from working. Remove it.
2013-09-22 14:01:08 +02:00
m0viefreak
2813d8aa98 31743: _git: fix usage of ->int: for some entries in _git-config 2013-09-22 14:01:07 +02:00
m0viefreak
5f427b8245 31741: _git: fix a wrong variable in __git_config_values
This probably was a copy/paste mistake.
2013-09-22 14:01:06 +02:00
Barton E. Schaefer
27f9c515ff unposted: improve an error message. 2013-09-21 16:39:25 -07:00
Barton E. Schaefer
61deff76f2 31737: same loop counter fix in get_cadef as get_cvdef. 2013-09-19 07:55:53 -07:00
Axel Beckert
844e569b63 31735: fix off-by-one in completion utility cache code.
Was causing crashes in complex completions, particularly with taskwarrior
2013-09-19 09:45:45 +01:00
Luka Perkov
075ad840d6 31726: _git: add few more arguments for cherry-pick and revert
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-09-14 11:21:34 +02:00
Luka Perkov
99e3aa58da 31723: _systemd: add more system commands
While at it move suspend command so the order of the
sytem commands equals the one in the systemd help.

Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-09-14 11:21:34 +02:00
Barton E. Schaefer
012668e14e 31714: handle ".." properly when $PWD or the path prefix traverses a symbolic link. 2013-09-10 08:14:37 -07:00
Peter Stephenson
cc83fd9916 conflict resolution 2013-09-08 21:14:00 +01:00
Peter Stephenson
061e809502 31711: add execute-never style for MIME function system.
Allows alien file systems to be marked as not having executable fiels
2013-09-08 21:12:13 +01:00