1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-15 13:34:18 +01:00
Commit Graph

8182 Commits

Author SHA1 Message Date
Peter Stephenson
a3cc409b9b unposted but c.f. 33723: typo in FAQ
sed argument had unterminated substitution.
2014-11-20 17:12:15 +00:00
Peter Stephenson
fe17d3c113 users/19404: Login shells may not be interactive
Update the FAQ to point this out after years of neglect.
2014-11-19 15:51:20 +00:00
Peter Stephenson
dded99b085 33679: Note on patter s in case statements
They work exactly like groups in other patterns, despite contrary
indications.
2014-11-19 15:48:58 +00:00
Oliver Kiddle
0a4223d908 unposted: reindent large block 2014-11-17 23:03:10 +01:00
Oliver Kiddle
d29e02c1a3 33704: keybindings, documentation, tests and minor
fixes for vim style visual selection changes
2014-11-17 23:01:00 +01:00
Oliver Kiddle
36878852ef 33636: add support for a linewise visual selection mode 2014-11-17 22:50:34 +01:00
Oliver Kiddle
492b6cec28 33635: adapt region to function as vim style visual selection mode 2014-11-17 22:47:59 +01:00
Oliver Kiddle
0ea8f28e7b 33700: new widget for put in vim style visual selection mode 2014-11-17 16:32:04 +01:00
Oliver Kiddle
c95c2ac838 33699: support short delays in zle tests where we
need KEYTIMEOUT to elapse
2014-11-17 16:29:10 +01:00
Oliver Kiddle
25cc978a99 33633: support vim style text objects 2014-11-17 00:49:32 +01:00
Oliver Kiddle
15fc2cd4f0 33632: use viopp and visual local keymaps if they exist 2014-11-17 00:49:31 +01:00
Oliver Kiddle
1e934556f7 33697: new vim style vi-backward-word-end widgets 2014-11-15 21:33:32 +01:00
Oliver Kiddle
13f3eec61d 33696: simple up/down line widgets that don't go through history lines 2014-11-15 21:31:29 +01:00
Oliver Kiddle
f26abf3a17 33695: fix various vi-indent problems and vi-swap-case on a blank line 2014-11-15 21:27:44 +01:00
Artur Penttinen
8505837f89 19371 plus tweak: run-help helper for ip 2014-11-13 20:25:00 +00:00
Peter Stephenson
c01a178ece Marc Finet: problems with working directory rationalisation.
Ensure the length of the directory is kept up to date.

Abort following symlinks as soon as there's an error.
2014-11-13 19:44:01 +00:00
Barton E. Schaefer
c1d9623d2e 33686: set PS1 before pattern-matching for it
If run as a privleged user, the default PS1 does not contain "%", so
don't use the default PS1 when expecting to match "%" in the output.
2014-11-13 09:27:14 -08:00
Barton E. Schaefer
53344183e1 33656: different algorithm for "whence -am" to produce results more consistent with "whence -m"
This uses the scanmatchtable routine to collect the names that match the
input pattern, then uses the original -a path search loop to generate
the output, to avoid duplicating test conditions and output formats.
2014-11-13 09:20:46 -08:00
Oliver Kiddle
99382e689d 33669: allow an empty line to be yanked with yy
This  by allocating 1 byte instead of 0 for the empty buffer.
2014-11-13 09:58:34 +01:00
Peter Stephenson
e33411990e AUTO_CD behaviour depends on SHIN_STDIN, document 2014-11-11 19:51:05 +00:00
Jun T
c9804bebd8 33599: workaround zpty issue that causes vi test
cases to fail on MacOS and FreeBSD
2014-11-09 22:06:52 +01:00
clutton
d6252ce011 33640: look in /boot/modules instead of /modules for third-party modules 2014-11-09 21:59:16 +01:00
Oliver Kiddle
31df6c4d32 33643: elaborate documentation of the PRIVILEGED option 2014-11-09 17:53:25 +01:00
Oliver Kiddle
f01188ec2a 33639: fix bug with vi operators on a blank line
and with backward bracket matching
2014-11-09 17:51:26 +01:00
Oliver Kiddle
82aa706cbf 33659: use --dump-options to get most of the gpg options to complete 2014-11-09 17:19:37 +01:00
Peter Stephenson
65f56b5656 33655: remove overlap of node flags 2014-11-08 21:59:58 +00:00
Peter Stephenson
0ccbc3873f Handle -a option to whence in combination with -m. 2014-11-08 20:49:07 +00:00
Barton E. Schaefer
63f3030aaa 33648: _gpg completes for gpg2 as well 2014-11-08 12:23:29 -08:00
Oliver Kiddle
36b8f83319 33624: keep region active when widget fails 2014-11-07 11:29:13 +01:00
Mikael Magnusson
a9004ce32f 33607: Fix some minor problems in zattr module
Remove the listattr call in zgetattr, it only caused no error to be output
when trying to retrieve an xattr from a file with no xattrs. When a file
had xattrs, it would just add an extra syscall for no good reason.

Always set an array parameter in zlistattr, this makes the returned value
much easier to use; in fact the _zattr completer didn't account for this
and zlistattr foo <tab> on a file with only one attribute did not work.

Almost all of the patch is only reindent, the only modification that's
not a pure deletions is:
 -        ret = 1 + (attr_len > val_len || attr_len < 0);
 +        ret = 1 + ((val_len > 0 && attr_len > val_len) || attr_len < 0);
which makes sure we return the correct error in the new path due to the
removed listattr call. (If val_len is -1 due to no attribute existing,
it doesn't mean the user should retry the call because the attribute
grew in size).
2014-11-07 11:10:30 +01:00
Barton E. Schaefer
7abd611a23 33614 (based on RedHat BZ-978613): signal safety when updating global state in execshfunc() 2014-11-06 10:50:20 -08:00
Oliver Kiddle
c7ff843ecf 33604: fix change merging for vi mode where a change has just been undone 2014-11-05 22:50:48 +01:00
Oliver Kiddle
4b66ec003f 33596: make local keymap keybinding hide global keymap
binding that is a prefix of the local binding
2014-11-04 14:08:20 +01:00
Oliver Kiddle
73ca153159 33593: support numeric argument to vi-join 2014-11-03 00:36:00 +01:00
Oliver Kiddle
4d89ec25f1 33575: reset vi change start position if text is inserted
before it or on history movement
2014-11-03 00:31:57 +01:00
Peter Stephenson
023c2236e1 Treat exec from subshell as if forked
This removes weird behaviour when optimising the last command.
In particular SHLVL is correct from a subshell executed as the last
command.
2014-11-02 15:29:06 +00:00
Oliver Kiddle
6a29f66f8a unposted: quash compiler warning 2014-10-31 18:00:05 +01:00
Oliver Kiddle
1d261ef53a correct cursor position in test 2014-10-31 13:38:32 +01:00
Peter Stephenson
1e14fd57a8 unposted: Add /.project to .gitignore for use by GitEye 2014-10-31 10:28:37 +00:00
Peter Stephenson
ef4fb421f5 33582: don't include tcp.mdh in zftp.c.
It's a private module definition header that doesn't need
to be exposed.
2014-10-31 10:23:29 +00:00
Jérémie Roquet
52d37d7ff4 Take more care with errors from setuid().
This is to ensure the user is aware of errors unsetting the
PRIVELEGED option.
2014-10-31 10:02:36 +00:00
Oliver Kiddle
fd302c9837 33570, 33576: make killring/yank-pop work in vi mode after
vi-put-before and vi-put-after
2014-10-30 21:52:36 +01:00
Barton E. Schaefer
9d2cfa7af6 Merge branch 'master' of git://git.code.sf.net/p/zsh/code
Conflicts:
	ChangeLog
2014-10-29 08:49:33 -07:00
Jun T
d36421d376 33566: quash null pointer constant compiler warning 2014-10-29 08:48:17 -07:00
Barton E. Schaefer
691547cda6 33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko in status message for INT/QUIT signals; check errflag in output loops
Two semi-related patches for keyboard interrupt handling in completion,
most importantly so that unexpectedly long completion listings can be
interrupted.
2014-10-29 08:45:57 -07:00
Oliver Kiddle
16cfa78aa9 33528: take notice of last column position when using vi-yank
and an upward cursor movement
2014-10-29 13:34:37 +01:00
Mikael Magnusson
ed90154e58 33562: Fix thinko in previous commit 2014-10-27 20:54:20 +01:00
Mikael Magnusson
ded97b8ed9 33561: The time builtin forgot to unmetafy TIMEFMT 2014-10-27 20:46:48 +01:00
Peter Stephenson
0412c0baaa 33564: care with monitor option in test 2014-10-26 21:24:23 +00:00
Peter Stephenson
9a551ca859 33542: test logic for waiting for already exited processes 2014-10-26 19:04:47 +00:00