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
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
7154052ebe
39046 + 39061: New :P history modifier.
2016-08-22 03:34:30 +00:00
Daniel Shahaf
8e029323a7
unposted: Avoid $0 for POSIX_ARGZERO compatibility.
2016-07-28 18:07:57 +00:00
Oliver Kiddle
b816bb42cf
38957: make use of updates to match-words-by-style and better support completion of word-style styles for zstyle
2016-07-28 16:16:25 +02:00
Oliver Kiddle
7830a8c498
unposted: fix vi-pipe for visual mode: don't need to force line mode
2016-07-28 16:07:59 +02:00
Peter Stephenson
26361e438b
38953: Fix some issues with match-words-by-style.
...
Add keyword retrieval of words. Improve test for start of
word in subwords for use in delete-whole-word. If line after
cursor is empty, white space is treated as ws-after-cursor.
2016-07-28 09:51:19 +01:00
Daniel Shahaf
74722c7392
unposted: Prefix function's name to its error messages.
2016-07-27 14:04:45 +00:00
Oliver Kiddle
ac05343049
38936: fix vi-pipe function for option compatibility
2016-07-24 22:33:14 +02:00
Oliver Kiddle
932ff2b6f8
38929: new vim style text object using match-words-by-style mechanism
2016-07-24 22:18:34 +02:00
Barton E. Schaefer
b3dba0f7c1
Relocate add-zle-hook-widget, everything else in Functions/Zle is a widget.
2016-07-17 12:07:43 -07:00
Barton E. Schaefer
e3884c60ed
38866: update add-zle-hook-widget doc for 38850, bug fixes
...
Edge case handling, wrap in anonymous function for kshautoload management.
2016-07-17 12:04:48 -07:00
Barton E. Schaefer
3e61af3ff4
38850: Simplify indexing scheme to store hooks in the order they are added
...
Also, better handling of edge cases and of autoloading/sourcing file
2016-07-13 22:14:54 -07:00
Peter Stephenson
c135c416b2
38796: Fix subword matching on last character of subword.
2016-07-08 15:32:44 +01:00
Peter Stephenson
a7d5d239e6
38783: zcalc tweaks for RPN mode.
...
Make it more straightforward to exchange variables with stack.
2016-07-04 12:08:14 +01:00
Oliver Kiddle
a73ae70e82
38770: vi upper/lowercase widgets and shell widget example that reads a vi movement
2016-06-29 17:05:06 +02:00
Oliver Kiddle
76f28cc908
38749: fixes for case at start of a line and for ksharrays
2016-06-22 22:15:52 +02:00
Peter Stephenson
26c01f5711
38737: clean up zcalc variables.
...
Undocumented variables now start with "_".
2016-06-21 17:26:35 +01:00
Peter Stephenson
5103c85abb
38736: various RPN mode enhancements for zcalc
2016-06-21 16:34:55 +01:00
Barton E. Schaefer
0b8ab3a21a
38715: add-zle-hook-widget: assorted ksharrays fixes; assign an index to any hook that is added without one, to preserve append ordering
2016-06-19 19:50:37 -07:00
Barton E. Schaefer
61a383ec4d
unposted: zed needs localoptions noksharrays
2016-06-18 16:18:52 -07:00
Peter Stephenson
4cacf1624f
38693: Add RPN mode to zcalc
2016-06-16 11:39:42 +01:00
Barton E. Schaefer
8e2ec4517f
38670: New function for managing ZLE special widgets, modeled after Functions/Misc/add-zsh-hook.
2016-06-12 18:50:10 -07:00
Oliver Kiddle
20948d0889
38579: simplify saving and restoring of state
2016-06-09 22:58:45 +02:00
Daniel Shahaf
7a5ecf4909
38610: vcs_info quilt: Extract a patch subject, 2.0.
2016-06-06 08:10:12 +00:00
Daniel Shahaf
e8943e7007
38609: vcs_info quilt: Factor out a helper function. No functional change.
2016-06-06 08:10:11 +00:00
Daniel Shahaf
29e88b3ea3
unposted: Commit forgotten part of users/21256.
2016-05-10 18:39:18 +00:00
Barton E. Schaefer
c5c2fa4fb5
unposted: update documentary comments to remove references to self-insert-unmeta.
2016-05-09 08:27:52 -07:00
Barton E. Schaefer
e54578ff74
37971: fix potential issues when interacting with user-defined widgets
...
Cf. users/21284: Eric Freese
2016-02-14 11:35:18 -08:00
Kamil Dudka
c7edb354c7
37814: run-help-ip: use an absolute path for the shebang.
2016-01-28 20:55:23 -05:00
Daniel Shahaf
a45a9fa104
unposted: Fix typo in comment.
2016-01-15 06:30:06 +00:00
Daniel Shahaf
ce1148db45
37612: vcs_info git: Set $git_patches_unapplied correctly for 'rebase-apply' case.
...
This manifested, e.g., in 'git am' of a single patch that had a conflict.
2016-01-15 06:29:09 +00:00
Barton E. Schaefer
4a30b542a0
37570: give truth to the doc assertion transpose-words-match is a drop-in replacement for transpose-words
2016-01-13 19:51:07 -08:00
Barton E. Schaefer
c275839033
37567: use (Z:n:) to split the buffer into words so line breaks are treated as whitespace
2016-01-13 19:50:24 -08:00
Frank Terbeck
dab6e7c231
37451: vcs_info: Declare "msgs" in early context
...
The parameter *is* being declared with the redefinition of the
function, but not in its initial form, which gets you a warning
about the parameter being defined globally. This fixes it.
2015-12-30 15:23:08 +01:00
Philip Sequeira
038b1d4b38
37345: VCS_INFO functions break with setopt no_unset
...
With setopt no_unset in my config file, vcs_info fails with:
VCS_INFO_maxexports:7: vcs: parameter not set
2015-12-23 01:57:45 +01:00
Barton E. Schaefer
aedff53d1f
users/21082 (expanded): a more complete sorting of version strings that are not in the form of zsh version numbers; additional explanatory comment
2015-12-19 22:03:34 -08:00
Barton E. Schaefer
597ffd85ed
users/21068: use emacs keymap in vared by default
2015-12-19 16:52:38 -08:00
Daniel Shahaf
1f2bdc2aa2
unposted (after users/20873): Theoretical fix: don't parse print/echo escape sequences in $zle_bracketed_paste.
2015-12-19 10:48:48 +00:00
Peter Stephenson
53bc8ef2d8
37400: typo gave unwanted error message in zsh_directory_name_generic
2015-12-14 10:59:03 +00:00
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