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

852 commits

Author SHA1 Message Date
Peter Stephenson
1f75d7ff2c 37386: localise mbegin, mend, match in URL magic 2015-12-11 14:05:29 +00:00
Oliver Kiddle
f546ea64df users/20873: disable bracketed paste while running external editor from zle 2015-12-11 05:34:48 +01:00
Peter Stephenson
4105f79a3a 37347: Remove incorrect local for msgs in VCS info 2015-12-08 12:59:48 +00:00
Daniel Shahaf
253df6d4bb 37295: kill-word-match: Join kills 2015-12-03 23:47:24 +00:00
Daniel Shahaf
502d55c014 37252: vcs_info git: Compute %b correctly with "rebase --onto" of detached heads. (Follow-up to 36725.) 2015-11-30 03:42:47 +00:00
Peter Stephenson
8efa4b4088 unposted: ZCALCPROMPT created globally in zcalc 2015-11-27 09:31:46 +00:00
Daniel Shahaf
694aee4c3d 37214: 'prompt walters': Don't export PS1 2015-11-27 07:27:23 +00:00
Barton E. Schaefer
14487ff5cc 37192: silence WARN_CREATE_GLOBAL in prompt themes 2015-11-22 10:19:49 -08:00
Peter Stephenson
ae4cf7b743 37186: a couple more WARN_CREATE_GLOBAL fixes 2015-11-22 16:06:20 +00:00
Peter Stephenson
4add525883 37170: suppress global create warning in function 2015-11-20 12:42:35 +00:00
Eric Cook
8d1e882b78 zed: Add -- to the `functions' builtin calls
Reported on IRC:

% autoload zed; zed -f -- "-zgen-prezto-load"
zed:83: bad option: -g
-zgen-prezto-load() {
}
2015-11-16 02:58:03 +01:00
Daniel Shahaf
f59864ce7a 37025: vcs_info git: Add a cherry-pick patch-format 2015-11-13 20:17:27 +00:00
Eric Cook
607a7a85b6 36993: zed: fix argument parsing 2015-10-31 19:06:47 +01:00
Peter Stephenson
1eef57b3d1 37027: allow subword context to discriminate between words 2015-10-30 16:59:41 +00:00
Peter Stephenson
0628802baf 37014: Improved internal parameter setting.
Enhance WARNCREATEGLOBAL to work in many more cases.

Don't create REPLY as an integer if it didn't previously exist
as one, even if the value to be set is integral, as this is likely to
mess up later uses of REPLY.
2015-10-29 15:01:07 +00:00
Barton E. Schaefer
aba7c00698 36994: declare local REPLY for use with "zle .read-command"; use .self-insert instead of .self-insert-unmeta 2015-10-27 20:29:07 -07:00
Daniel Shahaf
779b3112f8 36913 + 36945: vcs_info quilt: Pass patch subject lines to gen-applied-string
The format used is '${patchname} ${subject}', which is analogous to the git backend.
2015-10-24 20:42:26 +00:00
Daniel Shahaf
c62db9e7dc 36912: vcs_info quilt: Tolerate being in child of .pc's parent
Without this, gen-applied-string would only be set when .pc is a child of cwd,
not when it is a child of an ancestor of cwd.
2015-10-24 20:26:41 +00:00
Barton E. Schaefer
b947789d7c 36871: move initial call to "zle .bracketed-paste-magic" to occur earlier in the function
Just in case any later initialization might have side-effects.
2015-10-21 14:47:41 -07:00
Frank Terbeck
2e600b432a 36888: vcs_info: Prevent warn_create_global warning with '-preinit-' state
This is related to 33405. Turns out that not all other calls to
VCS_INFO_set are okay: With recent zsh versions the early call to that
function with the '-preinit-' argument causes a warning like this:

  VCS_INFO_set:9: math parameter maxexports created globally
                  in function VCS_INFO_set

This fixes it.
2015-10-18 20:40:18 +02:00
Peter Stephenson
bab1fc5043 36856: cdr -p/-P to prune directory list 2015-10-14 14:23:16 +01:00
Frank Terbeck
e245dd7193 36832: vcs_info: Remove dependency on "seq"
The "seq" utility is usually available on GNU systems only. This
exchanges calls to seq with pure zsh features. Also: Less forks are
good.
2015-10-11 12:54:30 +02:00
Frank Terbeck
7a1678767f 36830: vcs_info: Silence an error message with new git versions
Mikael informs me on IRC, that in new versions of git (he used 2.6.1)
where the "am" subcommand is now a builtin, a file that is used by the
git backend of vcs_info (namely .git/rebase-apply/msg-clean) is not
available anymore, leading to an annoying error message:

  VCS_INFO_get_data_git:232: no such file or directory: .git/rebase-apply/msg-clean

This patch checks for the availabiliy of the file before using it,
and adjusts the value of the dependant values accordingly.
2015-10-11 12:29:41 +02:00
Mikael Magnusson
64061e504f 36754: Functions/TCP: Tweak some usage output in the tcp_* functions 2015-10-03 00:05:40 +02:00
Mikael Magnusson
99aff5bb0c unposted: bracketed-paste-url-magic: actually do what the comment says 2015-10-01 20:16:24 +02:00
Peter Stephenson
196e6a0ec0 36735: add ~/.zcalcrc handling to zcalc 2015-10-01 15:55:01 +01:00
Mikael Magnusson
76da752fd7 36692: bracketed-paste-url-magic: simpler alternative for handling pasted urls 2015-10-01 03:55:21 +02:00
Daniel Shahaf
a90cf551ef 36725: vcs_info git: Compute %b correctly when "git am"-ing onto detached heads.
Before this patch, $gitbranch would be set to empty, which caused
VCS_INFO_get_data_git to early out with a failure status¹, consequently
$vcs_info_msg_0_ would be empty.

¹ via the 'if [[ -z ]]' block around line 170.
2015-09-30 21:43:37 +00:00
Daniel Shahaf
cd1cda9d57 36725: vcs_info git: Compute %b correctly when rebasing detached heads.
This sets the %b expando to the hash of the before-the-merge HEAD, rather
than to the literal string "detached HEAD".  That hash is already available
via the gen-applied-string hook.
2015-09-30 21:43:37 +00:00
Daniel Shahaf
7ac34a3055 36725: vcs_info git: Compute %b correctly when merging to detached heads.
The %b expando should be the hash prior to the merge.  The hash of the merge
result is available as the %i expando and via the gen-applied-string hook.
2015-09-30 21:43:37 +00:00
Daniel Hahler
45bdc87a1f 36601: vcs_info: handle missing .git/rebase-apply/{next,msg-clean}
When pressing Ctrl-C after `git am`, only `last` exists in
`.git/rebase-apply/`, which is empty.

This patch fixes it to fall back to "no patch applied" then.
2015-09-28 20:03:12 +02:00
Mikael Magnusson
d85a1fcd88 unposted: Fix broken case condition and "qualifer" typo 2015-09-28 02:24:54 +02:00
Peter Stephenson
649d06a8cd 36630: new function zsh_directory_name_generic 2015-09-25 21:30:34 +01:00
Barton E. Schaefer
8d5c0c7760 36604: fix getopts+shift calculation 2015-09-23 23:16:38 -07:00
Barton E. Schaefer
56ed4df898 36587: use +LINE:COLUMN to place the cursor when invoking emacs variants, for emacsclient 2015-09-22 08:52:52 -07:00
Barton E. Schaefer
b957cdd21a unposted: revert 36483 as multibyte is now handled by "zle .read-command"; adapt to new default behavior of zle_highlight for paste 2015-09-12 17:16:43 -07:00
Peter Stephenson
f5e8527a8c 36483: handle incomplete multibyte characters in bracketed-paste-magi 2015-09-11 18:40:22 +01:00
Daniel Shahaf
880579dc1e 36410: vcs_info git: Present merge heads as patches
This shows, during 'git merge', the revision hashes of the "remote" head
(the one that will become second parent of the commit) in the %m expando.

Review-by: Frank Terbeck
2015-09-05 10:47:44 +00:00
Axel Beckert
a9df6aaa70 36338: Replace "5.0.9" with "5.1" in source comments 2015-08-30 22:47:00 +02:00
Mikael Magnusson
095dd71cc0 36314: Avoid using short_loops syntax in distributed files 2015-08-28 09:37:37 +02:00
Barton E. Schaefer
2ed3b84fa6 36266: preserve emulation and setopt context for init and finish functions, handle vi modes 2015-08-21 13:38:19 -07:00
Barton E. Schaefer
c239a7bd91 36212: save and restore HISTNO along with other editor state, for sanity of "zle undo" 2015-08-17 20:59:00 -07:00
brian m. carlson
9a369d39e1 36209: vcs_info: avoid grep error message when file is missing
When running git rebase -m and a conflict occurs, the git-rebase-todo
file is not present.  This leads to an error from grep every time the
shell prompt is printed when vcs_info is enabled.  Avoid this message by
checking if the file exists before trying to grep it.
2015-08-18 01:00:25 +02:00
Barton E. Schaefer
2f2808098b unposted: mention bracketed-paste-magic in url-quote-magic comments 2015-08-16 22:52:21 -07:00
Barton E. Schaefer
795e6eb9b3 36195, 36196: wrapper of bracketed-paste for compatibilty with url-quote-magic and other self-insert wrapper widgets 2015-08-16 22:23:06 -07:00
Oliver Kiddle
832130c57d 36131: make use of undo limits; call mkundoent() when $UNDO_CHANGE_NO is referenced for a clear change number marking the current state 2015-08-13 16:18:26 +02:00
Mikael Magnusson
c5abf2bcff 36077: vcs_info: stop exporting everything 2015-08-12 04:31:22 +02:00
Oliver Kiddle
8bbfbfebbc unposted (c.f. Bart: 35902): use - after zle -U in case $key is - 2015-08-05 15:44:18 +02:00
Barton E. Schaefer
e0980e91be 35937: wait for process IDs instead of job numbers in parallel mode 2015-07-27 09:44:10 -07:00
Barton E. Schaefer
1629d5bcbd add RPS2 handling to "prompt bart", update help text, clean up indentation whitespace 2015-07-25 15:48:10 -07:00
Daniel Shahaf
a8e18dc370 35807: edit-command-line: Fix for non-7bit-data (after 35769)
Bug reported and fix suggested by Mikael.
2015-07-24 14:11:27 +00:00
Oliver Kiddle
a925d036fc 35815: fix for lack of startup output from newer nslookup 2015-07-23 05:25:37 +02:00
Barton E. Schaefer
045bd4e3a6 35823: fix handling of MARK and CURSOR, clean up documentary comment 2015-07-22 12:48:03 -07:00
Daniel Shahaf
35ffe36318 35769: edit-command-line: Go to the right byte offset 2015-07-13 23:21:54 +00:00
Oliver Kiddle
5911aca85f 35737: (tweaked c.f. Peter: 35759): use new undo limit for minibuffer and beep when limit is reached 2015-07-14 00:30:45 +02:00
Barton E. Schaefer
7bc47c91e9 35660: prompt_adam1_setup: avoid perl, fix help 2015-06-28 20:19:04 -07:00
Mikael Magnusson
ea0f612c3a 35558: narrow-to-region: Use unique parameter names for new feature 2015-06-22 03:37:29 +02:00
Peter Stephenson
09e1b2434d 35545: enhance narrow-to-region to return LBUFFER and RBUFFER 2015-06-21 18:16:40 +01:00
Barton E. Schaefer
9f3dc6605a 35469: test UNDO_CHANGE_NO to determine whether to start over or use the next history event 2015-06-14 20:12:42 -07:00
Peter Stephenson
2abba7243a 35386: expand tabs where useful in builtins outputing function.
Also add to zed -f.

Option is -x <numm>.
2015-06-05 11:21:22 +01:00
Han Pingtian
fea56dc32b 35234: better zfget completion with paths 2015-05-30 20:11:19 +01:00
Daniel Hahler
f080429439 35285: _cdr: fix zstyle lookup for recent-dirs-insert
The string was quoted incorrectly and missed the final ":".
2015-05-27 19:35:59 +02:00
Han Pingtian
2d86de91c1 35299: Improve effect of zfdir -r 2015-05-27 09:32:15 +01:00
Han Pingtian
9a6f55dc7a 35295: Try harder with zftp directory listing 2015-05-26 09:46:25 +01:00
Oliver Kiddle
d257f0143e 35093: new zle widgets for Vim-style text objects 2015-05-13 23:05:20 +02:00
Peter Stephenson
235e9bd1bf 34721: new glob qualifier functions before, after 2015-03-16 15:09:16 +00:00
Daniel Shahaf
57be7b743f 34673: vcs_info git: Fix error message when rebase hasn't started 2015-03-09 20:03:37 +00:00
Daniel Shahaf
9d25fd7255 vcs_info hg: Support inactive bookmarks
(Similar to git detached heads)
2015-01-25 01:42:05 +01:00
Marc Finet
9ea817acda PATCH: 34333: vcs_info quilt: fix unapplied detection in subdir
When patches are applied, let quilt use .pc without forcing the
patch directory, this will fix the unapplied detection when being in
subdir.
When no patches are applied, use zstyle quilt-patch-dir then
QUILT_PATCHES then "patches" for path to search for patches.

Note: prefer setting quilt-patch-dir rather than QUILT_PATCHES for
absolute path because when patches are applied, quilt unapplied will
not return the correct list (i.e. the whole list rather that the one
specified by .pc/.quilt_series).
2015-01-22 00:15:20 +01:00
Barton E. Schaefer
5caf317c3a unposted (cf. 34218): : remove -m from zmodload calls 2015-01-10 18:06:43 -08:00
Barton E. Schaefer
199581f780 34202: safe tempfile creation part 3 -- use zf_ln instead of mv 2015-01-10 10:32:31 -08:00
Mikael Magnusson
62b0e611ce 30568: Add tetriscurses contrib function, port of tetris to zcurses 2015-01-09 12:49:56 +01:00
Barton E. Schaefer
33b3958064 34068: create tempfiles without forking, and safe temp directory creation 2014-12-28 00:49:08 -08:00
Barton E. Schaefer
200accac63 34067: safe tempfile creation, part 1 2014-12-27 23:59:29 -08:00
Artur Penttinen
8505837f89 19371 plus tweak: run-help helper for ip 2014-11-13 20:25:00 +00:00
Frank Terbeck
a03227de23 33405: vcs_info: Make sure maxexports is set when VCS_INFO_set is called
Reported-by: From: Marco Hinz <mh.codebro@gmail.com>
2014-10-09 18:36:13 +02:00
Marc Finet
0f73b35f4e 33391: vcs_info git: fix applied patch detection on git am
git-am also uses .git/rebase-apply for patch list but
the file original-commit does not exist (as no commit exist).
This patch handles both git rebase and git am. Also:
 - get the first line (rather than the first char) when the message
   contains only one line;
 - remove unused function (ironically that should have been used here).
2014-10-09 18:11:08 +02:00
Frank Terbeck
4a529201b8 33277: Fix VCS_INFO_reposub's command expansion
Reported-by: Marco Hinz <mh.codebro@gmail.com>
2014-09-29 19:20:11 +02:00
Daniel Hahler
64e2b4426e 33217: vcs_info: use --ignore-submodules=dirty with diff/diff-index
This will detect changes to submodules from the superproject's
perspective, e.g. after `git rm submodule`.

>From GIT-DIFF-INDEX(1)/GIT-DIFF(1):

    Using "dirty" ignores all changes to the work tree of submodules,
    only changes to the commits stored in the superproject are shown
    (this was the behavior until 1.7.0).
2014-09-22 23:23:03 +02:00
Marc Finet
9c29a4f1f6 33184: vcs_info git: consider patches for rebase
Since a rebase contains a list of patches to re-apply, re-use the
facility for stgit to have the same mechanism.
The patch list given to the gen-{un,}applied-string hooks is an array
with the sha1 and the subject of the commit. On rebase merge, the
applied patches prior to current contains only a number and "?".
2014-09-16 23:20:55 +02:00
Marc Finet
2c2d4f9627 33188: vcs_info git: set rrn before using it
This would fix handling get-revision, check-for-changes or
check-for-staged-changes when set per repository.
2014-09-16 23:20:52 +02:00
Marc Finet
d5f574e20a 33145: vcs_info git: fix applied-string name
Documentation and hg backend use applied-string. patch-string does not
appear anywhere.
2014-09-14 12:02:37 +02:00
Marc Finet
06e03e7234 33148: vcs_info quilt: refactor standalone detection
Since VCS_INFO_bydir_detect always uses the
vcs_comm[detect_need_file], it should be cleared when querying
it without file.
2014-09-14 12:02:36 +02:00
Marc Finet
5e40996891 33147: vcs_info git: detect revert or cherry-pick with multiple commits
When revert or cherry-pick involve many commits the .git/sequencer
directory holds context for the action and no CHERRY_PICK_HEAD exist.
2014-09-14 12:02:36 +02:00
Peter Stephenson
cc6e9db29d 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
Peter Stephenson
5bcf00979f 33002: tcp_expect -P pm tags matches with a string 2014-08-14 09:56:43 +01:00
Peter Stephenson
f8ae47f29b unposted: updates for 5.0.5-dev-1 and subsequent 5.0.6 release 2014-08-10 17:49:55 +01:00
Peter Stephenson
15db636380 %P at start of TCP function system prompt causes %-style prompt subst 2014-07-30 12:26:03 +01:00
Peter Stephenson
6076c474f2 unposted: replace-argument can take negative prefix to count from end 2014-07-24 10:49:50 +01:00
Peter Stephenson
4e54648add 32866: new replace-argument ZLE function.
Also a couple of read-from-minibuffer fixes: don't pass numeric
argument to recursive edit, and hide the minibuffer edit from
the undo history.
2014-07-17 09:45:46 +01:00
Daniel Shahaf
b85b09b78b 32662: vcs_info git: Fix stagedstr for empty repos
In empty repositories, HEAD is an unresolvable symbolic ref.  Start computing
stagedstr/unstagedstr in that case; for the former, use a different method
than the non-empty-repository case.
2014-06-02 15:17:04 +02:00
Daniel Shahaf
55d5feed30 32621: vcs_info svn: 'Fix set-branch-format' when in subdirs
The previous code would fail to detect the wcroot with Subversion 1.7+
when cwd is at least two levels below the root (i.e., ../../.svn exists
and ../.svn doesn't), and would then pass to the hook the revision and
basename of cwd rather than of the wcroot.
2014-05-29 16:50:07 +02:00
Daniel Shahaf
bb271217fe 32619: vcs_info svn: Use the revision of cwd
Previously, the value of the wc root would be used.  In Subversion,
it makes more sense to use the revision of cwd, since all commands
(e.g., 'svn ci', 'svnversion') operate only on cwd and below, not on
wcroot and below.
2014-05-29 16:50:07 +02:00
Daniel Shahaf
6a201af341 32597: vcs_info git: Describe detached heads symbolically.
This makes %b expand to a refname rather than a sha1 when HEAD is detached but
happens to match some ref (branch, tag, etc).  The resulting output will
typically contain a slash (e.g., "tags/v1.0.2", "heads/mybranch"), which helps
distinguish it from the output in the "HEAD is a symbolic ref" case.
2014-05-06 14:22:10 +02:00
Peter Stephenson
08d4a6136e addition to 32527: also update .distfiles 2014-04-07 09:59:35 +01:00
Peter Stephenson
47c440aa2a 32527: zcalc-auto-insert key binding for use in zcalc 2014-04-07 09:58:30 +01:00
Daniel Shahaf
eb4c70d0b7 32528: vcs_info: Add check-for-staged-changes 2014-04-05 10:56:52 +02:00
Peter Stephenson
965d7305e5 32453: fix zcalc default base handling 2014-03-01 21:27:47 +00:00
Peter Stephenson
52f72086c9 users 18531 plus doc etc.: new expand-absolute-path widget 2014-02-28 18:44:49 +00:00
Peter Stephenson
22b8fd6da9 32299: add use of underscores on arithmetic output for spacing 2014-01-23 10:32:59 +00:00
Frank Terbeck
82a3591f57 32264: vcs_info, hg: Support detecting repos using ShareExtension 2014-01-17 08:58:52 +01:00
Daniel Shahaf
c1a15fb152 32089: tweak to detect Subversion repository 2013-12-05 20:06:34 +00:00
Barton E. Schaefer
9972fdeead 32066: fix %r and %S in vcs_info formats when a repository subdirectory is accessed via a symlink
31985 Clemens Hammacher and 32064 Hong Xu
2013-11-29 12:32:36 -08:00
Peter Stephenson
9503b161ab 32031 plus missed _run_help: get helpfiles install path corect in functions 2013-11-23 17:44:12 +00:00
Peter Stephenson
12251d65ff 31940: zcalc -e uses arguments as input 2013-11-08 11:34:37 +00:00
Barton E. Schaefer
4748eff7d2 Some syntax adjustments in _expand_word_and_keep. Add a working URL. 2013-10-27 14:12:54 -07: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
Peter Stephenson
1c9931cc7d users/17955: new "disown" style for MIME handlers.
Makes handlers put into the background run without job control.
2013-08-29 10:48:49 +01:00
Phil Pennock
180c4c049c 31634: run-help compat with alias to noglob/nocorrect
Given `alias fetch='noglob fetch'`, without this change `run-help fetch`
recurses to invoke itself on the noglob command, bringing up the help
for noglob.  Similarly for nocorrect.  Thus the user would have to quit
out of the pager, then avoid quitting out of the loop, so that they can
go into the second iteration and see the help for the second instance
found by `whence -a`, which happens to be the target of the alias.
With common pagers, that's thus 'q', 'not-q'.  Somewhat frustrating.

Without this change, `alias foo='noglob bar'` where `foo` is not
otherwise a command would _never_ show the help for `bar`, since it only
showed the help for `noglob` and there was no second line of whence
output to trigger the second pass.

With this change, aliases to `noglob|nocorrect` of a command somewhat
ignore the presence of that precommand modifier; if a command is aliased
to `noglob $itself`, then the result is that the first line of whence
output is shown, no pager is used, the user can immediately see a prompt
to continue and press something other-than-q to see the help for the
command.

If given `alias foo='noglob bar'` then `run-help foo` will immediately
show the help for bar.

This behaviour was chosen to be consistent with the existing alias
support, but just working better with the precommand modifier.
2013-08-07 04:11:56 -04:00
Peter Stephenson
669c070efe 31503: zmv improvements for user-specified programs.
-p splits words of commands passed to it.
-P is like -p for when the program doesn't understand the -- convention
2013-07-03 12:46:02 +01:00
Frank Terbeck
88599a0508 31485: vcs_info, git: Avoid error messages for `guilt' users
Guilt uses the same internal directory for keeping state as stgit, but
it doesn't use the same files (not surprisingly). This caused error
messages due to missing files.

This fixes that by making the "stgit-active?" test stricter.

Reported-by: Axel Beckert <abe@debian.org>
2013-06-18 09:16:59 +02:00
Peter Stephenson
711c103e77 31422: better heuristic for timestamps in age function 2013-05-29 19:20:12 +01:00
Peter Stephenson
692a15363f 31418: improve documentation for "age" function 2013-05-21 17:11:04 +01:00
Stephane Chazelas
2989e4b66e 31417: age function needs protection against file names starting "-" 2013-05-21 14:45:52 +01: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
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
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
Peter Stephenson
26694406f2 users/17666: zcalc -f sets FORCE_FLOAT 2013-03-05 20:06:59 +00:00
Peter Stephenson
6265394d6b users/17608: use function to modify currrent command line argument 2013-01-24 20:28:20 +00:00
Frank Terbeck
2e6363ed50 Baptiste Daroussin: 30703: VCS_INFO_detect_fossil: Fix fossil detection on unix 2012-09-28 22:11:32 +00:00
Frank Terbeck
feb6169bcd Seth House: 30702: contrib.yo, VCS_INFO_get_data_hg: Removed --debug flag from the hg vcs_info backend 2012-09-28 22:07:29 +00:00
Peter Stephenson
07fd604718 Stepan Koltsov: 30634: use (q-) quoting
for zmv output for clarity.
2012-08-20 14:03:04 +00:00
Frank Terbeck
3aae0ef8fe Stepan Koltsov: vcs_info: %a to output number of all patches in (no)?patch-format styles 2012-08-17 08:22:52 +00:00
Bart Schaefer
38a4364db5 users/17134: avoid bad math error 2012-06-16 04:30:35 +00:00
Peter Stephenson
5b32dece55 users/17132: skip-whitespace-first style for compatibility with bash etc.
in widgets using forward-word-match
2012-06-04 16:40:42 +00:00
Frank Terbeck
c45bb3e70c Juliano Ravasi: VCS_INFO_get_data_git: Fix initialisation of `$stgit_unapplied' 2012-05-23 07:39:48 +00:00
Mikael Magnusson
2a7c994ed4 30468: prompt_fade_setup: add missing $ 2012-05-14 15:24:20 +00:00
Mikael Magnusson
150dc9021b 30461, 30462 (tweaked): add missing local for match, mbegin and mend 2012-05-02 13:09:37 +00:00
Peter Stephenson
5e2fe3ca18 30388, 30389 (Stephane): zargs: handle zero-length arguments. 2012-04-12 18:45:59 +00:00
Peter Stephenson
246a63d9d3 users/16944: more locals needed in url-quote-magic 2012-04-01 17:28:31 +00:00
Peter Stephenson
791ada572b add some braces to avoid compiler warnings 2012-03-30 11:01:11 +00:00
Peter Stephenson
13a45d74eb users/16932: implement $UNDO_CHANGE_NO and argument to undo widget 2012-03-29 20:31:33 +00:00
Bart Schaefer
915766c624 unposted (users/16697): use a better output file name when the DISPLAY
variable refers to a socket file (MacOS); fix problem with writing the
output file when the user overrides the default value of TERM.
2012-03-01 03:36:48 +00:00
Bart Schaefer
f2bf8fa365 unposted (30090): add -h (help) and -L (list extant hooks) options. 2012-03-01 03:35:49 +00:00
Peter Stephenson
c3b79e0f69 users/16760: make reply local in url-quote-magic for the benefit of styles 2012-02-14 15:33:01 +00:00
Wayne Davison
a6dbc79065 30214: emulate bash's \$ prompt behavior. 2012-02-14 05:22:01 +00:00
Frank Terbeck
6157e2d00b 30214: prompt_redhat_setup: Fix quoting in `redhat' prompt. 2012-02-13 20:06:49 +00:00
Frank Terbeck
0d15215d86 30114: VCS_INFO_check_com: Remove a superfluous stat() 2012-01-19 16:57:40 +00:00
Peter Stephenson
942fe9d6de 30087: Christian Höltje: remove any hooks with prompt theme 2012-01-05 20:04:09 +00:00
Frank Terbeck
ee03cac7fe 30046: VCS_INFO_get_data_svn: Fix support for subversion version 1.7 2011-12-30 13:32:51 +00:00
Bart Schaefer
c33f3b0747 30020: prevent prompt_opts and zle_highlight from leaking out of
prompt_preview_theme
2011-12-13 17:43:55 +00:00
Peter Stephenson
6e29de366c Missed file. 2011-11-20 16:05:12 +00:00
Peter Stephenson
7c4a811134 29908: make MIME functions handle stacked suffixes 2011-11-18 09:52:50 +00:00
Frank Terbeck
6ed7fab103 Akinori MUSHA: 29900: Backends/VCS_INFO_detect_svn: Adjust detection to support subversion 1.7. 2011-11-09 17:49:25 +00:00
Peter Stephenson
ec6914b061 29894: display and use previous replacement in replace-string 2011-11-07 11:13:48 +00:00
Peter Stephenson
a6e039e12e 29892: fix regular expression replacements in replace-string
improve variable save and restore in read-from-minibuffer
2011-11-04 14:31:23 +00:00
Bart Schaefer
557baa173c users/16291: prompt_bart_preexec uses history text in the non-"fg" case
to avoid alias expansion.
2011-08-29 16:08:28 +00:00
Bart Schaefer
c4beabbc64 Belatedly add move-line-in-buffer. 2011-08-20 18:39:24 +00:00
Bart Schaefer
fdcabaf507 Use preexec hook to replace "fg" et al. with the jobtext of the resumed job. 2011-08-18 02:23:31 +00:00
Mikael Magnusson
20c52f6221 28852: Use syntax that doesn't depend on SHORT_LOOPS being set. 2011-08-14 13:40:53 +00:00
Peter Stephenson
4a3ce8ab89 29644: work around _describe bug, plus cosmetic tweaks 2011-08-03 20:57:32 +00:00
Frank Terbeck
f028b97e8f 29526: vcs_info: Set max-exports' early after certain start-up' hooks. 2011-06-30 07:43:53 +00:00
Peter Stephenson
525d0adf15 Jeremy Sylvestre: 29468: add some ligatures and symbols to composed characters 2011-06-08 17:19:12 +00:00
Clint Adams
c0d2cb5d02 fix whitespace in Functions/Zle/move-line-in-buffer 2011-06-05 05:40:53 +00:00
Bart Schaefer
0cc65dba53 users/16064: example widget for line motion inside multiline buffers
without navigating history
2011-06-01 15:30:20 +00:00
Frank Terbeck
5e2a1cf4cc Jan Pobrislo: 29411: vcs_info: Major bzr backend update. 2011-05-31 19:07:06 +00:00
Mikael Magnusson
72cb7cfc6f 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
Frank Terbeck
875f048b8b unposted: Revert change from 28896, which did more evil than good. 2011-04-25 22:26:18 +00:00
Frank Terbeck
eb46727d3a 28959: Make the nvcsformats style be used if vcs_info is disabled. 2011-03-30 21:24:42 +00:00
Frank Terbeck
7c50fa1262 28961: Add `no-vcs' hook. 2011-03-30 21:19:17 +00:00
Frank Terbeck
abe0ee3936 28960: Add functions to add/remove static hooks. 2011-03-30 21:17:07 +00:00
Frank Terbeck
d7bcf2bb96 28958: Support registering hooks independent of the context. 2011-03-30 21:13:37 +00:00
Frank Terbeck
15779b019d Add new vcs_info backend files to corresponding `.distfiles' file. 2011-03-30 20:11:17 +00:00
Frank Terbeck
ae6fb299f3 Mike Meyer: 28956, 28957: Add fossil support to vcs_info. 2011-03-30 20:07:05 +00:00
Frank Terbeck
166d91a480 28896: unset `monitor' option while the widget is running to avoid accidential data loss. 2011-03-16 20:53:57 +00:00
Peter Stephenson
f2dca9e155 users/15864: turn zsh_directory_name into a hook 2011-03-11 16:32:07 +00:00
Bart Schaefer
1a3612f119 Adrian: 28857: Functions/Prompts/prompt_bigfade_setup: use %d instead of $PWD 2011-03-05 17:34:21 +00:00
Frank Terbeck
2eac105770 28853: Fix typo: preceed -> precede 2011-03-04 13:25:25 +00:00
Frank Terbeck
3c020a9a9c 28776: Let vcs_info detect very old mercurial repositories. 2011-02-19 11:54:41 +00:00
Peter Stephenson
212ca9edf9 28772: Update regions in region highlight dynamically 2011-02-18 22:08:45 +00:00
Frank Terbeck
9bfc05e3db 28758: make `colors' function work with non-default option sets 2011-02-15 09:28:54 +00:00
Peter Stephenson
2c31feef4d users/15738: better cursor positioning in modify-current-argument 2011-02-11 19:28:44 +00:00
Frank Terbeck
f5b07d4868 Lennart Weller: 28739: Fix svn detection in vcs_info 2011-02-11 07:05:09 +00:00
Bart Schaefer
d5e53b0077 users/15759 for send-invisible 2011-02-11 04:03:11 +00:00
Peter Stephenson
c9a70e18fd Štěpán Němec: 28533: typos 2010-12-17 17:10:47 +00:00
Bart Schaefer
828574d953 users/15583: update with zstyles and for ease of use in zle-line-init. 2010-11-27 19:47:00 +00:00
Peter Stephenson
2b361ad116 users/15580: fix MIME handler completion on fallthrough 2010-11-25 15:43:14 +00:00
Peter Stephenson
76351e9b69 Jérôme Pouiller: 28351: new help functions 2010-10-18 09:33:42 +00:00
Peter Stephenson
bdb38058e4 28345: make ${(D)...} return a fully usable command line argument 2010-10-15 18:56:16 +00:00
Peter Stephenson
154b7351f4 unposted: safety on regexp errors in replace-string-again 2010-09-08 16:32:44 +00:00
Clint Adams
0bb608abc4 unposted: tweak newline placement. 2010-08-10 18:57:43 +00:00
Peter Stephenson
a9e7fd4e75 28137: zsh-mime-handler typo: $argv[0] should be $argv[1] 2010-08-08 17:20:54 +00:00
Frank Terbeck
01b4a67310 Seth House: 28114: vcs_info, git: Fix revision lookup with packed repositories. 2010-08-02 21:11:08 +00:00
Peter Stephenson
93e0bc094f users/15204: in zfinit check for compctl before using 2010-07-28 15:53:32 +00:00
Peter Stephenson
4de3dbac16 c.f. users/15202: use "autoload -Uz" consistently 2010-07-28 14:01:12 +00:00
Peter Stephenson
10c2f225fd c.f. users/15202: use "autoload -Uz" consistently 2010-07-28 13:33:52 +00:00
Peter Stephenson
bdfc1edc89 28096: don't add $OLDPWD to recent dirs as we weren't there 2010-07-20 21:46:42 +00:00
Peter Stephenson
c42ae31a19 28081: cdr tweaks 2010-07-20 18:59:15 +00:00
Frank Terbeck
bb95aef24f 28095: Fix two hard-coded invocations of the "git" command. 2010-07-19 20:05:22 +00:00
Frank Terbeck
9b2334cf55 28093, based on Michel Lespinasse: 28090: Fix a problem with `check-for-changes' and freshly initialised repositories. 2010-07-19 19:20:27 +00:00
Peter Stephenson
5da6530d83 28065 plus unposted zsh.mdd:
add cdr and related functions and docs
2010-07-09 14:47:48 +00:00
Clint Adams
924f40b772 28062: make the filename even longer 2010-06-30 13:22:51 +00:00
Clint Adams
6e0d1b57ce 28061: transpose filename halves, describe action better 2010-06-30 13:08:14 +00:00
Clint Adams
e1772fd046 27998: add recommended zshrc option. 2010-06-30 12:49:29 +00:00
Peter Stephenson
091cbd9d58 28042: transpose-lines widget 2010-06-16 21:50:39 +00:00
Peter Stephenson
14dde08475 28038: improved handling of recurring events in calendar system 2010-06-14 13:01:41 +00:00
Frank Terbeck
17b7471fbc Seth House: 27971: vcs_info: Fix a bug that caused the mercurial backend to always return `default' as the branch name. 2010-05-27 10:06:16 +00:00
Peter Stephenson
35d3418aeb users/15078: completion for zsh-mime-handler 2010-05-23 19:54:03 +00:00
Frank Terbeck
88ea63adf2 Simon Ruderich: 27953: vcs_info: changed default formats and actionformats. 2010-05-14 07:58:37 +00:00
Frank Terbeck
0501efc54a Seth House, Simon Ruderich and myself: 27948: various vcs_info changes
Here's a diff-stat:

 Doc/Zsh/contrib.yo                                |  506 ++++++++++++++-------
 Functions/VCS_Info/.distfiles                     |    1 +
 Functions/VCS_Info/Backends/VCS_INFO_detect_hg    |   14 +-
 Functions/VCS_Info/Backends/VCS_INFO_get_data_git |   35 +-
 Functions/VCS_Info/Backends/VCS_INFO_get_data_hg  |  295 +++++++++----
 Functions/VCS_Info/VCS_INFO_formats               |   26 +-
 Functions/VCS_Info/VCS_INFO_hook                  |   10 +-
 Functions/VCS_Info/VCS_INFO_quilt                 |  190 ++++++++
 Functions/VCS_Info/vcs_info                       |   30 +-
 Misc/.distfiles                                   |    1 +
 Misc/vcs_info-examples                            |  496 ++++++++++++++++++++
 11 files changed, 1303 insertions(+), 301 deletions(-)

The major changes are vast improvements for the mercurial (hg) backend
(which was done almost entirely by Seth); improved documentation (mostly
done by Simon and again Seth); quilt support (as an addon and stand
alone, see the manual for details); a number of new hooks and a fair
share of bugfixes.
2010-05-10 10:46:48 +00:00
Frank Terbeck
4277121662 27908: Functions/VCS_Info/vcs_info: Avoid locale related problems 2010-04-26 18:58:33 +00:00
Peter Stephenson
c30b038a42 unposted: calendar system updates:
allow file locking to fall back; don't need dcop for kdialog
2010-04-13 16:28:21 +00:00
Peter Stephenson
5e629a4565 update calendar to run calendar_show in current shell 2010-03-19 16:39:36 +00:00
Peter Stephenson
9cfc991811 unposted: calendar -s was broken by file locking change 2010-03-17 16:55:04 +00:00
Frank Terbeck
ff22b24f1b Simon Ruderich: 27779: Fix mistakes in vcs_info's documentation. 2010-03-11 12:39:38 +00:00
Peter Stephenson
00e507fc0e unposted: fix calendar bug updating repeating events
allow calendar_edit to take arguments for editor
2010-03-09 11:01:20 +00:00
Peter Stephenson
de3159d73a Frank: 27768: shut up cd some more 2010-03-04 10:03:00 +00:00
Peter Stephenson
07b6256d8e 27756: add OS file locking to calendar
add errflag test to loop over fcntl()
2010-02-26 12:09:20 +00:00
Peter Stephenson
8a0629c12b 27731: Frank: turn off WARN_CREATE_GLOBAL in VCS_INFO 2010-02-21 18:41:41 +00:00
Peter Stephenson
1c7075f8b9 Frank: 27717: option terminators in VCS Info 2010-02-17 11:16:13 +00:00
Peter Stephenson
4523ff9383 Frank Terbeck, Seth House: 27712, 22713, 27714:
VCS Info hooks and Mercurial improvements
2010-02-16 10:47:06 +00:00
Peter Stephenson
94777f64e8 Frank Terbeck, Seth House: 27712, 22713, 27714:
VCS Info hooks and Mercurial improvements
2010-02-16 10:09:15 +00:00
Peter Stephenson
4a0ddedf0a unposted: a couple of typeset -g's and a comment 2010-02-08 11:49:28 +00:00
Peter Stephenson
f8e05427db Frank: 27679: better logic in VCS_INFO_get_data_git 2010-02-07 18:50:54 +00:00
Peter Stephenson
0d8a580951 users/14752: add #! line to zed
allow script run with -i to exit on return
2010-01-29 21:44:54 +00:00
Peter Stephenson
1d31834223 Julien Jehannet: users/14751: typo in variable name in zed 2010-01-29 20:58:43 +00:00
Peter Stephenson
1c71dfd735 unposted: return status 1 if no replacement 2010-01-19 13:13:56 +00:00
Peter Stephenson
c508c6e368 27604: substitution using regular expressions 2010-01-18 12:47:09 +00:00
Peter Stephenson
8c60540ce6 27577: sergio: (%) is not needed in zcalc prompt since PROMPTPERCENT is obeyed 2010-01-08 09:30:43 +00:00
Peter Stephenson
3b289b32a7 unposted: new run-help-p4 2009-12-16 12:11:56 +00:00
Peter Stephenson
46bad169a8 27492 based on Jörg Sommer: 27473: fix run-help alias problem. 2009-12-16 11:07:09 +00:00
Peter Stephenson
b7e76da2ef Alexey: users/14588: ztodo function and completion 2009-11-22 19:17:32 +00:00
Peter Stephenson
3d8115275f Alexey: users/14588: ztodo function and completion 2009-11-22 19:06:54 +00:00
Clint Adams
2746eec722 unposted: change bracket colors default to yellow when in an ssh session. 2009-11-20 03:05:54 +00:00
Peter Stephenson
d6c4e4c692 Frank Terbeck: 27353: more VCS_Info sanity checks 2009-11-06 14:35:33 +00:00
Peter Stephenson
65e45654b3 unposted: brief calendar display 2009-11-03 09:57:34 +00:00
Peter Stephenson
f25c62cb18 unposted: Functions/Calendar/calendar: brief display failed on single lines 2009-10-29 09:50:45 +00:00
Peter Stephenson
d5d858b0e2 unposted: more local variables needed 2009-10-22 09:28:30 +00:00
Peter Stephenson
7c4c41a0bb unposted, c.f. 27313: mailing list and website moved 2009-10-22 09:28:02 +00:00
Peter Stephenson
179cd828a5 Lionel Flandrin: 27307: enhanced Mecurial VCS_INFO support 2009-10-04 18:18:12 +00:00
Peter Stephenson
1f6225fd78 Baptiste Daroussin: 27271: remove awk dependence 2009-09-13 18:26:21 +00:00
Peter Stephenson
d980a79a43 27270: zfcd_match: remove awk dependence 2009-09-13 18:24:21 +00:00
Peter Stephenson
dc6ef8c9ae Baptiste Daroussin: 27268:
remove Perl dependency from pick-web-browser
2009-09-11 11:26:46 +00:00
Peter Stephenson
49b4a71009 Baptiste Daroussin: 27267 plus 27269 plus doc:
remove perl dependency
2009-09-11 11:20:45 +00:00
Peter Stephenson
817000920f 27247: zmv checking for **/ was wrong 2009-09-06 21:35:37 +00:00
Peter Stephenson
c326bf0d30 27228: clear function for zsh-newuser-install 2009-08-21 14:34:51 +00:00
Peter Stephenson
0600ab5c99 27217: fix typo in assignment in new user script 2009-08-17 11:15:37 +00:00
Peter Stephenson
6f78cb51ef Frank Terbeck: users/14207: make variable local 2009-06-26 19:25:08 +00:00
Peter Stephenson
a5417250d5 Frank Terbeck: 27049, 27050, 27051, 27052: VCS_INFO improvements 2009-06-19 21:05:48 +00:00
Clint Adams
a1fc66a3cd 27048: avoid multiline prints which break CSH_JUNKIE_QUOTES. 2009-06-18 14:26:43 +00:00
Peter Stephenson
dfabf50cf1 27305: fix GNU man option handling in run-help 2009-06-05 11:18:01 +00:00
Peter Stephenson
f359213eec 26982: Julien Langer: support stgit in VCS_Info 2009-05-22 17:38:05 +00:00
Peter Stephenson
ad3d514ac7 26973: zmathfuncdef enhancements 2009-05-19 15:33:24 +00:00
Peter Stephenson
49db32f2b5 Paul Ackersviller: 26959: delay before removing test modules
users/14118: fix test and assignment in prompt_special_chars
2009-05-13 08:39:47 +00:00
Peter Stephenson
d1abd3e7cf 26957: Fix some memory problems with read builtin
unposted: fix a WARN_CREATE_GLOBAL warning
2009-05-12 11:11:14 +00:00
Peter Stephenson
7e304940e5 unposted: back off 26862 2009-04-25 20:30:20 +00:00
Peter Stephenson
46fd8beec7 c.f. 26867: remove extraneous "${" 2009-04-22 08:31:53 +00:00
Peter Stephenson
0c11cb5b47 Greg: 26862: remove unnecessary print 2009-04-21 16:05:34 +00:00