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

8021 commits

Author SHA1 Message Date
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
Oliver Kiddle
079540cc78 users/18485: add .. as an auto-removable suffix in git revision ranges 2014-02-25 08:59:20 +01:00
Hong Xu
e5b55ebf45 Fix outdated npm completion 2014-02-24 09:32:01 +00:00
Sebastien Alaiwan
afe7ff6b5d 32642: improve bzr completion with directory path 2014-02-24 09:30:04 +00:00
Barton E. Schaefer
7e04c1a53d 32427: avoid busy loop on closed descriptors for "zle -F" handlers
Also assure the handlers are called on error conditions and document the
extra argument that is passed in the error case.
2014-02-23 18:14:12 -08:00
Peter Stephenson
73db206838 32414: improved error message for missing delimiters.
For glob qualifiers "u" and "g".
2014-02-19 15:34:17 +00:00
Eric Cook
be47852679 new forms of completion for btrfs 2014-02-18 20:02:49 +00:00
Eric Cook
b9f10722ac updated subcommand completion for btrfs 2014-02-18 19:59:57 +00:00
Eric Cook
55232af891 minor typo in btrfs completion 2014-02-18 19:58:46 +00:00
Eric Cook
5a8de9087d remove hard tabs from btrfs completion 2014-02-18 19:57:26 +00:00
m0viefreak
cf02c2f0f3 prefer col -bx to colcrt in helpfiles 2014-02-18 19:54:46 +00:00
m0viefreak
bc160bc585 remove old example from helpfiles:
code is integrated with distribution
2014-02-18 19:52:18 +00:00
m0viefreak
8ffbfc050f use env to find perl for helpfiles 2014-02-18 19:50:08 +00:00
m0viefreak
71d3065950 update zshcontrib for latest helpfiles 2014-02-18 19:48:30 +00:00
m0viefreak
b97808fba2 32398: _git: completion updates up to latest git v1.9.0
- cherry-pick: allow commit ranges to be specified
- push: option is called --set-upstream and not --set-upstream-to
- status: offer -b,--branch when --porcelain or -z are given
  --porcelain and -z don't show the branch info by default, so it
  is needed to offer --branch for those options, too.
- checkout: add '--detach' option
- checkout: offer '-l' option when '--orphan' was given
- show-ref: update wording of --head and --heads according to man-page
- config: update default value for color.ui
  color-bool was changed to accept a default value as $parts[5]
- add support for 'cygstart' as a valid builtin browser on cygwin
- rebase: add suuport for --autostash and config.autostash
- update builtin browser list
- grep: add --{no,}textconv
- check-ignore: add --no-index
- update-ref: add --stdin -z
- add -C
- pull: add support for --rebase=preserve
- config: add support for http.*. options
- blame: -L can be given multiple times
- config: add support for http.savecookies
- push: add support for --force-with-lease
- diff: --diff-filter: allow lower-case variants (all-but ... specs)
- config: add support for 'fetch.prune' and 'remote.*.prune'
- check-ignore: -z: update message, check-attr: add -z
- config: add diff.orderfile
- revision options: add --exclude
- revision options: add --ignore-missing
- revision options: add --bisect
- rev-parse: add --stuck-long
- merge-base: add --fork-point
- config: implement submodule.*.update completion
- send-email: add --smtp-ssl-cert-path and config options
2014-02-18 12:22:21 +01:00
m0viefreak
f8e874ef9d 32397: _git: fix __git_submodules to only use the actual name of the submodule
The output of 'submodule status' is

Xsha1 name (describe)

X being one of -,+,U,[space]

We are only interested in the name part and not the whole line.

Fix the parameter expansions accordingly.
2014-02-18 12:22:21 +01:00
m0viefreak
139ee0e351 32395: _git: diff: refactor and fix wrong completions
Before this, there were several cases where the completion
would offer the wrong things:

$ git diff branch -- <tab>

would try to complete "changed in workdir files", but needs to
complete all "tree files in HEAD".

$ git diff --cached -- file1 file2 <tab>
would try to complete "changed in workdir files" but needs to
complete "changed in index files".

...

After this change all possible combinations are taken into
account and completion should work properly.
2014-02-18 12:22:16 +01:00
m0viefreak
946a99a0b3 32396: _git: fix __git_committish_range_{first,last} and __git_is_committish_range
- Ranges with 3 dots would always fail, because the non-greedy
  expansion  %..(.|)* in __git_committish_range_first would only
  remove '..' and never three dots. 'a...b' would end up in 'a.'.
  Use ${${1%..*}%.} instead.
- Use a similar approach for __git_committish_range_last.
- Wrap them in another expansion to replace empty results with 'HEAD'.
  Git man-page states omitted range ending are being replaced with
  HEAD. This rule has to be followed to make completions like
  'git log foo.. -- <tab>' work properly.
- Add an additional check to make sure none of the extracted first/last
  parts contain additional '..' in invalied ranges such as 'a..b..c'.
  This gets rid of the 'TODO:' and ideally saves a few unneded
  calls to git rev-parse.
2014-02-18 12:19:23 +01:00
Barton E. Schaefer
76ab661df3 unposted: document interactions of "fc -R" etc. with "fc -l" and $HISTCMD 2014-02-17 09:57:05 -08:00
Barton E. Schaefer
956d35ef12 32388: zparseopts -K preserves individual associative array elements 2014-02-15 13:49:26 -08:00
Barton E. Schaefer
ae0b56cdda 32389 (with Jun Takimoto): additional PTY and keybinding adjustments 2014-02-15 13:45:35 -08:00
Oliver Kiddle
90916c4e08 32361: don't reset lastline before completion 2014-02-14 22:51:33 +01:00
Barton E. Schaefer
7274ea8c49 Fix character transposition typo 2014-02-13 08:25:09 -08:00
Barton E. Schaefer
5c89c4ca9c 32377: change keybindings and PTY control for vi-mode tests to make them more reliable 2014-02-13 08:23:32 -08:00
Barton E. Schaefer
ba58bfe4bf 32365: another stab at the heuristic for initializing rprompt_indent 2014-02-08 14:49:39 -08:00
Martin Vaeth
045b2418bd 32356: fix a typo 2014-02-07 09:17:11 +00:00
luc
1af0d64552 18406: New completion for system_profiler 2014-02-06 09:40:36 +00:00
Oliver Kiddle
137b15a447 32355: document and test vi mode undo changes 2014-02-05 23:18:26 +01:00
Oliver Kiddle
e1bc9d0a44 32342: fix overstrike for vi mode and use varying vi commands at line start 2014-02-05 21:55:18 +01:00
Oliver Kiddle
2cd3b9ab74 32334 (modified so KEEPSUFFIX is unchanged for vi-cmd-mode; based on
Jun T: 32324, 32330), 32347, Jun T: 32344, 32349:
add split-undo zle widget for configurable breaks in undo sequence
2014-02-05 21:45:19 +01:00
Barton E. Schaefer
36ce87d367 Minor indexing changes to generate more consistent page layouts 2014-02-02 14:16:01 -08:00
Barton E. Schaefer
71b235bfa7 32341: heuristic initialization of ZLE_RPROMPT_INDENT 2014-02-02 14:07:23 -08:00
Barton E. Schaefer
620b915c4e Fix leading whitespace in a comment 2014-02-02 13:37:36 -08:00
Barton E. Schaefer
3882c30f80 32340: improve error messages for "read -c" / "read -l" 2014-02-02 13:28:41 -08:00
Barton E. Schaefer
ff201da515 32338: create empty help.txt so lack of helpfiles does not break the build 2014-02-02 13:19:25 -08:00
Barton E. Schaefer
f3e7cfe47c 32337: change initialization of some special parameters for emulation compatibility 2014-02-02 13:16:16 -08:00
Oliver Kiddle
a8c4ed64ee 32314: merge undo events corresponding to vi change in the vi-cmd-mode widget so undo from insert mode is useful again 2014-01-31 14:03:47 +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
Jun T
1531d0463c 32300: new od completion 2014-01-30 15:53:47 +00:00
Christian Hesse
0ab7834a15 32316: complete new ssh key type 2014-01-29 09:24:54 +00:00
Barton E. Schaefer
8d3d34cfa4 Merge branch 'master' of git://git.code.sf.net/p/zsh/code
Conflicts:
	ChangeLog
2014-01-28 19:13:39 -08:00
Peter Stephenson
584ea88811 32303: simplistic completion after $x: 2014-01-28 19:14:30 +00:00
Peter Stephenson
c56f5aed59 32308: Improve initialising of vi change.
Better handling when entering viins on entry to editor.
Slightly changed since post to use vi command a.
2014-01-28 16:12:41 +00:00
Barton E. Schaefer
a2098b0b26 users/18368: compromise to restore partial path completion inadvertently removed by 31159 2014-01-27 21:54:13 -08:00
Peter Stephenson
a0c9da72f2 unposted: update 31983 to suppress stdout from cmp, too.
Gets rid of unnecessary messages building patchlevel.h.
2014-01-27 15:42:48 +00:00
Bart Schaefer
1fc259363f use LPAR() instead of parens in sqrt example 2014-01-23 14:39:34 -08:00
Peter Stephenson
22b8fd6da9 32299: add use of underscores on arithmetic output for spacing 2014-01-23 10:32:59 +00:00
Barton E. Schaefer
6c603a4127 unposted: reformulate 32285 to lift the fheap->sp test out of the loop, improve commentary 2014-01-22 21:47:29 -08:00
Barton E. Schaefer
3e06aeabd8 32294: prevent buffer overflow when scanning very long directory paths for symbolic links 2014-01-19 19:39:31 -08:00
Barton E. Schaefer
4777c07c8e users/18335: avoid passing to "functions" those typeset options that it does not accept 2014-01-19 17:38:15 -08:00