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

9595 commits

Author SHA1 Message Date
Matthew Martin
48c31e21d3 39208: Update flags 2016-09-07 23:19:01 +02:00
Matthew Martin
1f429c0668 39223: Introduce addflags function to reduce redundancy 2016-09-07 23:18:46 +02:00
Oliver Kiddle
5d24f6d9aa 39193 (cf. Yoshio Hanawa: 39192): don't pass options from after -- on to compadd 2016-09-07 23:18:26 +02:00
Peter Stephenson
ef862262e7 39185: Only set word begin for completion word if not alias.
This is consistent with other ZLE code in lex.c and fixes a crash
in some completions involving aliases, e.g. if uncompleted quotes.
2016-09-07 18:51:01 +01:00
Matthew Martin
c001d1f2a2 39221: update rm completion for BSD 2016-09-07 14:22:28 +01:00
Peter Stephenson
c47c35cacc 39218: Fix module feature enables with math functions.
If they were present parameters were miscounted.
2016-09-07 11:50:00 +01:00
Peter Stephenson
8d18872817 39217: fix error name generation with GCC.
Adapt the same trick as in zsh.mdd to ensure we don't get
preprocessor lines in the output.
2016-09-07 11:50:00 +01:00
m0viefreak
2d5dd74732 38153: change the way long options are examined for "=" signs to more accurately identify options that take arguments
Note in workers/39135:
The pattern in 266/268 appears to match the '=' sign even though it's in the
second colon-separated field, where it doesn't denote a mandatory argument.
I'm guessing the pattern match on lines 266/268 should be fixed ...

This commit alters those patterns in what is hoped to be the desired way.
2016-09-06 22:35:26 -07:00
Daniel Shahaf
30bb9fe7b7 39174: _ssh: Fix completion of ProxyCommand option.
The incumbent code would discard the first word of the value of the
ProxyCommand option.  Stop doing so.  With that removed the remaining
two lines were equivalent to _cmdstring, so just call it directly.
2016-09-06 23:49:07 +00:00
Daniel Shahaf
73c0e8d4e6 39173: _arguments: Escape colons and backslashes in $opt_args unambiguously. 2016-09-06 23:48:10 +00:00
Daniel Shahaf
831a336c49 39171: _libvirt: Apply $opt_args-unescaping.
This causes the value of $conn_opt in the code not to have a backslash
in front of the colon.
2016-09-06 23:41:00 +00:00
Daniel Shahaf
9a722df3a6 unposted: _libvirt: Escape $words elements to avoid their interpretation as a pattern against $_cache_virsh_cmds. 2016-09-06 14:54:05 +00:00
Marko Myllynen
3768fcc28a unposted: Fix leakage of $word (after 39179). 2016-09-06 09:10:58 +00:00
Peter Stephenson
fe3a63fa6c 39181: Add PM_SINGLE and use for compstate.
This flags that compstate (or any other special) can only have
a single instance and an attempt to create a new one is an error.
Given the very fiddly semantics of compstate any other usage
seems pointless.

No investigation yet of other variables that could use this.

Note it's still possible to hide such variables; only instances
that keep the special nature are affected.
2016-09-06 09:42:33 +01:00
Marko Myllynen
33a8a6f86c 39179 (plus tweak): More _libvirt (virsh) completion tweaks 2016-09-06 00:13:42 +00:00
Teubel György
fde365ea8b 39167: Make $ENV handling more like POSIX 2016-09-05 21:03:12 +01:00
Daniel Shahaf
02bb3de257 unposted: internals: Document zshcompwid(1) parameter implementations. 2016-09-04 21:15:46 +00:00
Marko Myllynen
5b4cbcc842 39158: cleanup following review comments of _libvirt function 2016-09-03 12:41:22 +02:00
Oliver Kiddle
48c20d74a7 39165: update options to correspond to latest versions of software in various functions 2016-09-03 12:31:22 +02:00
Daniel Shahaf
972423629f unposted: _postfix_queue_id: Unbreak completion of short queue ids of held/active messages, broken in 39108. 2016-09-02 19:20:56 +00:00
Daniel Shahaf
8bb531990e 39154: _files: -/ with list-dirs-first resulted in a bad pattern, thus aborting completion partway. 2016-09-02 18:23:55 +00:00
Marko Myllynen
4547897976 39118: (almost) complete virsh completions 2016-08-31 16:34:41 +02:00
Peter Stephenson
8e329ccb0a 39141: Use zsh instead of sh in SHLVL test.
This removes ambiguous behaviour of sh which may or may not
increment SHLVL.
2016-08-31 11:31:55 +01:00
Stephane Chazelas
8ce98c75f5 39125: More care needed decrementing SHLVL on exec.
Not needed in subshell.
2016-08-31 10:21:00 +01:00
Barton E. Schaefer
70166178bd 39131: return on error needs to be at the outer scope. 2016-08-30 20:31:21 -07:00
Daniel Shahaf
c2592b4f72 39122: __git_recent_branches: Silence warning on an edge case.
(The warning was correct; there is no functional change, though.)
2016-08-31 02:23:39 +00:00
Daniel Shahaf
4ce0b1c098 39108 (tweaked): _postfix: Support $enable_long_queue_ids.
Note that this not only adds a second compadd invocation but also adds a space
to the first compadd invocation, to prevent the start of a new-style queue id
from matching as an old-style queue id.
2016-08-30 01:58:59 +00:00
Daniel Shahaf
d916ba1a00 39110: _postfix: Complete 'postconf'. 2016-08-30 01:57:55 +00:00
Daniel Shahaf
823bb6fe85 39107: _postfix: Complete 'postqueue'. Also minor tweaks to 'postsuper'. 2016-08-30 01:57:55 +00:00
Daniel Shahaf
1712c62633 39109: _postfix: Use mailq to obtain queue id's.
'mailq' is usually in */bin (as opposed to */sbin) and so is more likely
to be in $PATH.
2016-08-30 01:57:54 +00:00
Barton E. Schaefer
fa48711e31 39115: repair forced joining when (@) and (j) are used together 2016-08-29 08:34:03 -07:00
Mikael Magnusson
44a820f1c5 39112: _x_utils: Use state_descr 2016-08-29 15:57:36 +02:00
Daniel Shahaf
1f00f68367 39105: _hashed_absolute_command_paths: Make the display string the basename.
This makes better use of terminal real estate.
2016-08-27 18:13:27 +00:00
Daniel Shahaf
b62d9eb63e 39103: _typed-in_absolute_command_paths: Better handle non-empty arguments that don't start with a slash. 2016-08-27 18:12:01 +00:00
Daniel Shahaf
aa041f7a5a 39070: umount: Complete /f/b<TAB> → /foo/bar (for absolute path arguments only, for now) 2016-08-27 18:12:01 +00:00
Barton E. Schaefer
b312abc93b 39104: do not hash relative paths in findcmd() 2016-08-26 15:05:15 -07:00
Daniel Shahaf
317c96b64f 39102: __git_recent_branches: Optimise.
This improves performance from 0.6s to 0.04s (+93%) on one of Daniel Hahler's repositories.
2016-08-25 18:12:41 +00:00
Daniel Shahaf
4d995160e4 39094: _git-config: When an option is unknown, complete its value to the set value. 2016-08-24 21:15:00 +00:00
Jun-ichi Takimoto
acad0620ef 39087: fix 'conditionally uninitialized' variables 2016-08-23 18:18:50 +09:00
Jun-ichi Takimoto
d1d79796fb 39086: declare file local variables as 'static' 2016-08-23 18:14:18 +09:00
Oliver Kiddle
18aa25c75d unposted (c.f. Mikael: 39078): fix for git blame terms 2016-08-22 11:54:04 +02:00
Daniel Shahaf
c8b228b1ea unposted: _git-config: sendemail.smtpserver: Correct tags. 2016-08-22 03:38:12 +00:00
Daniel Shahaf
7154052ebe 39046 + 39061: New :P history modifier. 2016-08-22 03:34:30 +00:00
Jun-ichi Takimoto
4b2810ab2d 39064: use scalbn() instead of scalb() (mathfunc.c) 2016-08-20 23:52:01 +09:00
Daniel Shahaf
1c6d3e3f04 39074: _ip-neighbour: Fix typo in 'lladdr'. 2016-08-20 03:01:46 +00:00
Oliver Kiddle
31dc8b52b5 39072: minor tweaks 2016-08-19 19:11:07 +02:00
Oliver Kiddle
4200466217 39071: update completion functions for changes in Solaris 11.3 2016-08-19 19:06:37 +02:00
Oliver Kiddle
580698bc71 39067: update options to correspond to latest versions of software in various functions 2016-08-19 18:00:07 +02:00
Daniel Shahaf
283357dcab unposted: _canonical_paths: Port docstring changes from 39044. 2016-08-18 16:59:09 +00:00
Daniel Shahaf
0aa6bfd831 39044 (in part, see thread): Document _canonical_paths in the manual, too.
This mostly copy-pastes the source code comments and adds markup, however, the
positional arguments are now annotated optional, and a ')' was added.
2016-08-18 16:55:45 +00:00