Daniel Shahaf
40d9681b62
43313 (log message tweaked): vcs_info git: For the branch name, try to find a symbolic name before falling back to a raw commit hash.
...
Ask git-describe(1) and git-name-rev(1) to compute a gitrevisions(7)
name in terms of a branch or tag that contains (= is a descendant of,
is younger than) HEAD.
In this repository, the output changes from "9567bfe..." to
"master~1" or "remotes/origin/HEAD~1". This would also happen
during bisects, e.g., "bisect/bad~22".
2018-08-24 15:50:18 +00:00
Daniel Shahaf
4cfbbf9ca5
43314: vcs_info git: Flatten a nested if.
...
No functional change.
2018-08-24 15:49:38 +00:00
Peter Stephenson
0a6cb5078d
43084: Variable warning suppression enhancements.
...
Add vared -g option along the lines of typeset -g.
Set reply safely in zsh_directory_name_cdr.
2018-06-25 09:31:40 +01:00
dana
faa07d064b
43030: Replace VCS_INFO_realpath() by :P
2018-06-16 12:03:23 -05:00
Oliver Kiddle
594f2ff06e
users/23434: initialise UNDO_LIMIT_NO so that an initial undo doesn't clear the whole edit buffer
2018-06-07 17:48:48 +02:00
Sebastian Gniazdowski
52f1c4ffb0
42929 (tweaked): additional default bindings in zed.
...
Add to both zed and zed-vicmd keymaps.
2018-06-05 09:38:31 +01:00
Sebastian Gniazdowski
abd0040253
41839: force IFS to default for "read"
2018-01-19 22:56:11 -08:00
Daniel Shahaf
a8ad9768bd
unposted: vcs_info: Add docstrings to the internal functions VCS_INFO_formats and VCS_INFO_set.
2017-12-30 06:14:22 +00:00
Alexey Sokolov
1a5d8a6916
41952: Use HGPLAIN instead of HGRCPATH in VCS_INFO_get_data_hg
...
Fixes prompt indicator in case if the repository requires a non-default
feature. With HGRCPATH, it results in:
abort: repository requires features unknown to this Mercurial: ...
(see https://mercurial-scm.org/wiki/MissingRequirement for more information)
Which, in turn, results in "default" getting reported regardless of what
is the current state of the repo.
2017-10-25 10:34:34 +02:00
Barton E. Schaefer
96845524a6
41899: handle multi-word values of $VISUAL et al., and line counting of buffer for emacs startup
2017-10-15 11:17:06 -07:00
Peter Stephenson
b2e44bce62
Make mbegin, mend, match local in zed.
...
Needed for zstyle -m.
2017-08-31 16:55:26 +01:00
Daniel Shahaf
d6aa949977
41565: vcs_info patch2subject: Support svn log -r N --diff
output.
2017-08-22 20:50:14 +00:00
Barton E. Schaefer
43e55a9bcd
41472: introduce cleanup hooks default and restore special themes, and update documentation
2017-07-29 16:58:39 -07:00
Peter Stephenson
d78761c003
41345: Use consistent prompt variables in prompt themese.
...
Some more sanity may be needed in this area but this apsect seems
uncontroversial.
2017-06-26 11:16:38 +01:00
Wieland Hoffmann
cf72c2d288
41265: quote the inserted file names as necessary
2017-06-16 22:28:54 -07:00
Eric Cook
6ecc34a55e
unposted: fix typo in url-quote-magic
2017-06-13 21:47:48 -04:00
Sebastian Gniazdowski
d6d7ef2a0d
41232: Use page up/down keys in zed keymap.
...
Find with terminfo where available.
2017-06-07 10:01:38 +01:00
Peter Stephenson
ab6f30350a
unposted: Use typeset -g in insert-unicode-char
...
Avoid warning from WARN_NESTED_VAR if set.
2017-05-02 09:39:53 +01:00
Aaron Schrab
7fc15db684
40892: subcommand matching for ip help
2017-03-24 09:46:03 +00:00
Barton E. Schaefer
1b0541c52f
Julien Nicoulaud: 40586: discard stderr
2017-02-21 20:45:18 -08:00
Daniel Shahaf
ecd88284f3
40492: vcs_info: Escape '%' signs in payloads.
...
Test case: a patch whose subject is '%Sfoo%sbar'. ('S' and 's' are
expandos both in prompts and in the 'formats' style.)
2017-02-09 15:24:04 +00:00
Daniel Shahaf
bb6c08b51a
unposted: vcs_info git: Fix typo in manual.
2017-02-04 05:55:46 +00:00
Daniel Shahaf
33c0a10448
40480: vcs_info set-patch-format: Eliminate the remaining code duplication.
2017-02-03 18:14:01 +00:00
Daniel Shahaf
9211d7f277
40479: vcs_info set-patch-format: Prepare for more code sharing between the callers.
...
This changes hook invocation order in the hg backend.
2017-02-03 18:14:00 +00:00
Daniel Shahaf
fca4f90bba
40481: vcs_info hg: Pass arguments to the set-patch-format hook.
2017-02-03 18:13:59 +00:00
Daniel Shahaf
3a1756b728
40478: vcs_info set-patch-format: Guard against empty variable elision.
2017-02-03 18:13:58 +00:00
Daniel Shahaf
49bc46946e
40476: vcs_info $backend_misc: Document at the right point, provide in quilt 'standalone' mode.
2017-02-03 18:13:57 +00:00
Daniel Shahaf
2854a67e09
40403/0004: vcs_info set-patch-format helper: Part #4 .
...
This also fixes the %a (${hook_com[all-n]}) expando in the hg backend:
before this change, it counted only unapplied changes.
2017-01-25 04:22:32 +00:00
Daniel Shahaf
edd9798de7
40403/0003: vcs_info set-patch-format helper: Part #3 .
2017-01-25 04:22:32 +00:00
Daniel Shahaf
2702857334
40403/0002: vcs_info set-patch-format helper: Part #2 .
...
Not all callers reset ${hook_com}, but those that don't, immediately
overwrite it a few lines later.
2017-01-25 04:22:31 +00:00
Daniel Shahaf
0ea1957608
40403/0001: vcs_info set-patch-format helper: Part #1 .
2017-01-25 04:22:30 +00:00
Daniel Shahaf
57013f8b96
40401: vcs_info git: Fix the %c patch-format expando.
...
Before this change, ${git_unapplied_s} was unused and the %c
(${hook_com[unapplied]}) expando evaluated to the number of digits in
the string returned by the gen-unapplied-string hook (or to the number
of digits in the number of unapplied patches, when there was no such
hook).
2017-01-25 04:22:30 +00:00
Daniel Shahaf
699a38e698
40392: vcs_info patch2subject: Support git show
output.
2017-01-25 04:22:28 +00:00
Barton E. Schaefer
5455798bb5
Oliver: 40118: alternate fix replacing 40115
...
This commit reverts 40115 (commit 3594f55f
) thus restoring 38579, then
applies 40118: Relocate BUFFER/CURSOR reset to work around "fc -p" issue
2016-12-24 00:15:21 -08:00
Daniel Shahaf
816084c0ac
40149: vcs_info git: Avoid a fork.
2016-12-16 10:48:10 +00:00
Daniel Shahaf
feb4be4a5e
40126: zed (fned): When editing a new function. escape its name.
...
Example:
% unfunction \(
% fned \(
2016-12-09 08:21:07 +00:00
Zhiming Wang
3594f55fc0
40115: revert 38579 due to bug restoring BUFFER after history search
...
This reverts commit 20948d0889
.
2016-12-06 21:37:30 -08:00
Daniel Shahaf
f71de84f1d
unposted: vcs_info git: Handle rebase-apply sequences with >=10000 patches.
...
Review-by: Frank Terbeck
2016-12-04 21:37:02 +00:00
Daniel Shahaf
d9237ccdbf
40074: vcs_info git: rfc822-unfold rebase-apply patch subjects when msg-clean is unavailable.
...
Example (in this repository):
git -c merge.merge-changelog.driver=/bin/false rebase --onto=1955cce^^ 1955cce^ 1955cce
2016-12-04 21:37:01 +00:00
Daniel Hahler
ccf50048ac
Get subject of current patch in rebase-apply mode
2016-12-03 00:18:22 +01:00
Daniel Shahaf
8891f5a33d
unposted: vcs_info: Break out VCS_INFO_quilt-patch2subject into VCS_INFO_patch2subject
...
... so other places can use it; compare 40030 in the 39990 thread.
2016-12-01 17:13:37 +00:00
Oliver Kiddle
5dc7b35ff6
unposted: set new vichange flag for surround widget
2016-11-25 23:07:53 +01:00
Oliver Kiddle
cb5f100bd3
39986, 39989: improve handling of vi-repeat-change
...
Save previous vi change and throw away a new change that fails.
Add zle -f vichange to allow shell widget to be a single change.
Fix repeat of command where numeric arguments were multiplied.
2016-11-20 23:59:48 +01:00
Oliver Kiddle
488d73c07d
39884: fix history-beginning-search-menu for history lines containing a pipe character
2016-11-09 16:55:13 +01:00
Daniel Shahaf
74aa45910b
39786: vcs_info (hg): Use native hexdump implementation instead of external command.
...
Fixes issue whereby the external command would print "*" for repeated
octets.
Includes comment change, cf 39790.
2016-10-31 18:35:47 +00:00
Barton E. Schaefer
87c951c6bd
unposted: add "--" to zle widget call for conventional sanity
2016-10-29 10:08:53 -07:00
Barton E. Schaefer
9cfd26bf10
unposted: handle empty pastes and "zle bracketed-paste variablename" form.
2016-10-28 16:44:35 -07:00
Daniel Shahaf
4f2a1810f2
39495: add-zle-hook-widget: Add end-of-options guard to hook invocation.
...
Currently, the only special widget that takes arguments is zle-keymap-select.
2016-09-30 23:15:57 +00:00
Daniel Shahaf
889f6690fd
39423: vcs_info git: Produce nicer applied-string messages for 'exec' actions.
...
This changes the behaviour on "unknown" git-rebase actions (those other
than pick/reword/edit/fixup/squash/execute).
2016-09-24 07:22:15 +00:00
Mikael Magnusson
c3fbd97f9b
bracketed-paste-url-magic: Handle magnet links too, and allow for schemes without //
2016-09-19 00:34:13 +02:00