1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00
Commit graph

5851 commits

Author SHA1 Message Date
Jun T
cbf6f144a9 31357: _cp: add support for Mac OS X
If not GNU nor darwin, assume POSIX.
2013-04-29 17:11:05 +02:00
Peter Stephenson
8ab3a7b0e6 31356: typo in new _comp_locale noted by Bart 2013-04-29 15:07:30 +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
Ramkumar Ramachandra
2ea9cd4775 31288: _git: fix shortlog completer
Currently, __git-shortlog () says that 'git shortlog' can only accept
commits as arguments (probably because the official documentation says
this).  This is entirely untrue: shortlog can accept
commit-range-or-file, just like log can.  Fix the completer by copying
out segments from the __git-log () function.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-25 14:36:08 +02:00
Ramkumar Ramachandra
cbdedcfbfe 31289: _git: branch.*.pushremote, remote.pushdefault
The configuration variables branch.*.pushremote and remote.pushdefault
are relatively new, and are currently not completed by ZSH.  Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-21 12:12:44 +02:00
Ramkumar Ramachandra
d1a3075293 31286: _git: add a couple of browsers
Add google-chrome/chromium to the list of builtinbrowsers in
__git_browsers ().

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-21 12:12:43 +02:00
Torstein Hegge
cc7437bf2f 31159: git: Pass prefix filter to ls-files even if it matches no files
When a branch or tag name is completed with zsh in a large git repo, the
completion is slow if the given prefix doesn't match a file or directory in
the current working directory. Testing with linux.git, which contains release
tags like v3.9 and a directory virt/:

  git log v<tab>

takes about 0.5 seconds, while

  git log v3<tab>

takes about 25 seconds.

(Timed using zsh 4.3.17, on a fairly slow cpu. zsh from git appears to be
quite a bit faster, but the difference between completing v and v3 is still
large.)

The difference between the two is that v<tab> passes the result of v* to git
ls-files while v3<tab> determines that v3* matches no files, and passes an
empty prefix to git ls-files. So git ls-files lists all files in the repo
and passes that on to _multi_parts.

Making git do the expansion of the * after the prefix lets git ls-files v3*
return an empty list, making _multi_parts job easier.

This does not affect the behavior of git log <tab>, but improves the
performance of partial tag and branch tab-completion in the common case where
file names and tag/branch names don't overlap.
2013-04-20 22:29:02 +02:00
Bart Schaefer
fa7c51971d 31272: Avoid double free, get_compctl should not free its arguments. 2013-04-20 08:40:18 -07:00
Jun T
452aa5157a 31281: _du: add support for Mac OS X 2013-04-20 11:56:04 +02:00
Peter Stephenson
7514fe4a66 Daniel Friesel: 31265: improved option handling for devtodo. 2013-04-16 09:46:46 +01:00
Peter Stephenson
b79156ab60 unposted: make git ignore PDF and PS versions of intro file 2013-04-13 20:22:36 +01:00
Peter Stephenson
67a4be36c6 31263 (but changed * to - for consitency):
suppress texinfo warning by giving item an argument
2013-04-12 23:01:25 +01:00
Peter Stephenson
b174a0df05 31261: updates needed with latest texinfo 2013-04-12 22:47:22 +01:00
Peter Stephenson
424ff5644b users/17754: failing to retie an array
and colon-separated scalar shouldn't be a fatal error
2013-04-10 18:14:41 +01:00
Peter Stephenson
369dc3a107 31246: make a separate patch level header for releases 2013-04-09 20:21:57 +01:00
Peter Stephenson
18bba82101 unposted: fix some .distfiles which mention files that have gone 2013-04-08 20:23:42 +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
Frank Terbeck
e619a7353a 31222: Stop {up,down}-line-or-beginning-search from triggering warn_create_global
This is a followup to 30995 taking Peter's suggestions from 30997 into
account.
2013-04-05 21:05:54 +02:00
Frank Terbeck
abb32da0e7 31221: Handle zero defined aliases better 2013-04-05 20:19:33 +02:00
Frank Terbeck
dd638aea93 31175: Add documentation for the new -i and -f options of vared 2013-04-05 17:23:46 +02:00
Frank Terbeck
daf4f19c3f 31172: Let vared define custom init and finish hooks
Using this, you can do things like this in a more straight-forward
manner:

foo-init() { CURSOR=0; }
zle -N foo-init
foo=$'Some longer\nbuffer with\nmultiple lines.'

vared -i foo-init foo
2013-04-05 17:23:45 +02:00
Frank Terbeck
6654b87b45 31174: zle: Make sure state changes are refreshed after init hook
If `zrefresh' is not called _after_ the zle-line-init hook, any changes
made to the editor's state (be it changes to $CURSOR or $BUFFER or
called widgets like `clear-screen') will only be picked up after the
first character is typed into the editor.
2013-04-05 17:23:45 +02:00
Peter Stephenson
0c32aa6274 31203: add new etags completion. 2013-04-04 16:02:52 +01:00
Frank Terbeck
648ab2c53d Add ChangeLog entry for previous commit 2013-04-03 22:17:07 +02:00
Peter Stephenson
b6f704a642 Jun. T: typo in vi-goto-mark 2013-04-02 16:20:28 +00:00
Mikael Magnusson
7c50da8394 31182: _awk: Allow sticked arguments 2013-03-29 09:46:18 +00:00
Peter Stephenson
275ba0fdca Han Pingtian: 31167 (with tweak): limit use of colons for recognising
remote path in ssh completion
2013-03-20 20:33:45 +00:00
Bart Schaefer
0c226a6282 31158: following a wildcard with a repetition produces a bad pattern error 2013-03-19 15:05:35 +00:00
Peter Stephenson
146374a2af improved math context completion: functions 2013-03-17 20:53:44 +00:00
Peter Stephenson
ab8fe84a8c 31155: minor extra zcalc features and documentation 2013-03-17 20:52:55 +00:00
Peter Stephenson
136cc1e1b7 31154: make zcalc understand continuation lines with a backslash 2013-03-15 20:15:10 +00: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
Mikael Magnusson
1d3d92a0c9 31140: avoid crash when hitting recursion limit 2013-03-13 19:54:20 +00:00
Mikael Magnusson
dcbeba9889 unposted: adjust another mention of psvar 2013-03-13 19:49:02 +00:00
Peter Stephenson
a4b590a2ee based on 31144 etc.: all entries of psvar can now be shown in prompts 2013-03-13 18:47:55 +00:00
Peter Stephenson
fb3ad98f71 31141: Tighten NO_CLOBBER restrictions on {fd} syntax
to apply only if $fd is exactly an fd and nothing else.
2013-03-10 21:45:04 +00:00
Mikael Magnusson
44907223ff 31136: vcs_info: just set parameters instead of passing over a pipe 2013-03-10 13:18:32 +00:00
Mikael Magnusson
0c8625299a 30639: Add support for showing the current action is cherry-pick to vcs_info git backend 2013-03-10 12:47:39 +00:00
Mikael Magnusson
ba88c42a5b 30490: _java: -keystore takes a file argument, so complete files 2013-03-10 12:38:18 +00:00
Mikael Magnusson
8a9b141652 30496: Parse argument to %F and %K as prompt sequences 2013-03-10 12:33:04 +00:00
Peter Stephenson
26694406f2 users/17666: zcalc -f sets FORCE_FLOAT 2013-03-05 20:06:59 +00:00
Peter Stephenson
3def943d04 users/17665: add FORCE_FLOAT option 2013-03-05 20:04:53 +00:00
Oliver Kiddle
ac22eab0d9 31077: update for new options in GNU sort 2013-02-27 22:17:29 +00:00
Oliver Kiddle
c2e00298c2 c.f. 31071: remove duplicate _osc and rename _ps to avoid name clash 2013-02-27 21:43:15 +00:00
Peter Stephenson
a45b45eeab 31061: "functions" completion takes account of options already
on the command line
2013-02-22 21:58:16 +00:00
Peter Stephenson
feb6b8b7b1 31061: "functions" completion takes account of options already
on the command line
2013-02-22 21:58:16 +00:00
Peter Stephenson
555b95c5f3 31060:"+" before a flag for "functions" or
"autoload" should suppress display of function body.
2013-02-22 20:26:32 +00:00
Oliver Kiddle
a409dbf74c 31058: add completion of options from newer versions of some commands 2013-02-21 10:49:22 +00:00
Peter Stephenson
2698b61837 31055: missing $ in compaudit search of /proc file system 2013-02-19 19:32:38 +00:00
Oliver Kiddle
b6544d1ef3 31041: add support for testing line editor widgets from the test suite 2013-02-12 10:55:32 +00:00