1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-12 05:01:27 +02:00
Commit graph

217 commits

Author SHA1 Message Date
midchildan
36a2d5cfa4 52641: incarg: add a backward variant and make it repeatable 2024-03-05 00:05:21 +01:00
Mikael Magnusson
74722b8d4e 52546: incarg: avoid unneeded subshell 2024-02-16 13:17:26 +01:00
midchildan
fb9a7cc5dd 52520: add new features and improvements to the "incarg" ZLE widget
- Decrement integers without defining a new widget
- Preserve the number of leading zeros
- Increment binaries, octals, and hexadecimals
- Move the cursor to the end of the incremented integer
- Create a sequence of integers across terminal panes
- Add a Vim variant
- Also add tests
2024-02-15 15:40:37 +01:00
Christoffer Lundell
f72757ccf3 52082: Enable linewise edit-command when in visual-line mode. 2023-09-16 20:06:12 -07:00
Bart Schaefer
a99f96797f 50323: create helper for shadowing builtins or existing functions and use it when redefining compadd et al. 2022-06-04 14:19:42 -07:00
Akinori MUSHA
bd328a2a9c 48942: Let EDITOR invoked by edit-command-line know it's a zsh script 2021-06-03 00:28:06 +02:00
Bart Schaefer
231c049c02 48707: fix keymap handling when zed invokes read-from-minibuffer; update doc 2021-05-15 13:23:31 -07:00
Mikael Magnusson
0bc559d091 47307: edit-command-line: restrict editing to region if it is active 2020-08-16 18:04:43 +02:00
Mikael Magnusson
841188439b 47306: edit-command-line: add editor style 2020-08-16 18:04:43 +02:00
Mikael Magnusson
d877073959 47305: edit-command-line: when possible, set $BUFFER directly
This avoids the send-break which is both visually unappealing and might
break some use cases where the user wishes to wrap edit-command-line in
another widget.
2020-08-16 18:04:43 +02:00
Martijn Dekker
d81238ee95 45003: Fix more documentation typos 2019-12-11 02:37:39 +00:00
Bart Schaefer
530d6337e6 unposted (see 44772): quote the string argument to zle -U 2019-09-24 10:07:32 -07:00
Bart Schaefer
cf66eb7adb 43755: Fix state management for repeat uses to avoid clobbering command line when NOT a repeat 2019-07-08 18:01:38 -07:00
Peter Stephenson
b6169745c1 unposted, c.f. 43913: emulate -L zsh in edit-command-line
Otherwise bad effects observed with GLOB_SUBST set.
2018-12-19 09:54:26 +00:00
Joey Pabalinas
fc3826190a 43779 (tweaked): add parentheses to fix expression with cprecedences option set 2018-11-08 11:46:27 +01: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
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
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
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
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
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
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
Mikael Magnusson
c3fbd97f9b bracketed-paste-url-magic: Handle magnet links too, and allow for schemes without // 2016-09-19 00:34:13 +02:00
Daniel Shahaf
7154052ebe 39046 + 39061: New :P history modifier. 2016-08-22 03:34:30 +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
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
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
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
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
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
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
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
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