1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-30 03:46:05 +02:00
Commit Graph

67 Commits

Author SHA1 Message Date
Oliver Kiddle a73c705b0c 51212: remove STOUC() macro
This served as a workaround for ancient compilers where casts to
unsigned char were broken.
2022-12-16 23:28:10 +01:00
Oliver Kiddle 7fb6c133bf 51215: consume whole CSI sequences from the input
This affects CSI sequences that aren't explicitly bound but arrive
within the usual KEYTIMEOUT time limits. A single undefined-key widget
is run instead of unintended bindings for Escape and other characters in
the sequence.
2022-12-16 23:23:53 +01:00
Jun-ichi Takimoto 2a7945a900 49377: fix segfault by 'bindkey -d' with reordered keymapnamtab 2021-09-08 09:51:43 +09:00
Peter Stephenson a6a1b28b98 45487: Missing mod_export declarations for AIX 2020-02-24 10:55:48 +00:00
Jens Schleusener 11dbe4c286 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
Peter Stephenson 3ad2ca3305 Don't handle ZLE functions for single key.
For read -k and read -q where we use ZLE, we just want a single
key and not full ZLE processing.  So don't handle timed
ZLE functions when preforming the read.
2018-09-03 10:09:22 +01:00
Peter Stephenson a6135f6114 41191: Check for immortal thingies when checking for specific thingies 2017-06-01 17:56:14 +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 0a6098a1d4 39962: bind vi case conversion widgets
u/U in visual mode and g~ from normal mode
2016-11-17 12:32:28 +01:00
Peter Stephenson 533d839384 unposted: comment explaining key buffer handling.
Describe putting back the tail end of the key buffer into
the input.
2016-11-03 17:03:37 +00:00
Barton E. Schaefer 696444714e 39813: fix keybuflen after ungetting extra keys from the end of keybuf in getkeymapcmd(). 2016-11-03 09:12:10 -07: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
Barton E. Schaefer 597fa5ee5d 38463: use immortal widgets in .safe keymap 2016-05-10 13:21:43 -07:00
Peter Stephenson 2b7035d974 38241: ungetkeycmd() needs to unmetafy key string.
Use the new function to simplify memory management in prefix handling.

Third time lucky.
2016-04-04 14:54:54 +01:00
Peter Stephenson 0bd903abca 37405: Fix self-insert binding for multibyte sequences.
This makes it work even if the self-insert applies to a sequence longer
than an initial byte, including the case of a complete binding to a full
character sequence.
2015-12-15 12:41:20 +00:00
Peter Stephenson 59de978c7e users/21071: Fix binding of multibyte sequences.
There was a problem if the first byte was already bound to
self-insert.
2015-12-08 10:56:17 +00:00
Peter Stephenson e1c0a947cc Read full multibyte string early for self-insert 2015-09-11 21:40:45 +01:00
Kamil Dudka 51d2c66341 36106: fix const parameter to bindkey 2015-08-12 20:08:58 +01:00
Oliver Kiddle 3183cbd98c 36044: deactivate-region widget for escape in visual mode 2015-08-11 13:28:14 +02:00
Oliver Kiddle 98687fa1de 35474, 35492: support the bracketed paste mode of newer terminal emulators 2015-06-19 00:15:38 +02:00
Peter Stephenson 4508d25710 34905: no parse error after keyboard interrupt.
Handled generally, though only showing up in special nested
cases.

Also fix ZLE so it doesn't cancel the interrupt flag when
not actually returning from a local keymap.
2015-04-17 10:23:58 +01:00
Barton E. Schaefer 95381783e9 34002: zshcalloc() in init_keymaps() 2014-12-18 18:58:25 -08:00
Oliver Kiddle 1e0064e58b 33956: document key binding changes and remove ^X binding 2014-12-13 19:34:24 +01:00
Oliver Kiddle 5b7950e6ef 33846: additional default vi-mode key bindings 2014-12-13 19:32:55 +01:00
Oliver Kiddle edb9c94025 33950: ignore KEYTIMEOUT for vi operators 2014-12-12 14:14:00 +01:00
Peter Stephenson d067ebcacd 33876: etc.: Separate errors and keyboards interrupts
Combination of 12 commits from interrupt_abort branch.

Basic strategy is to introduce bits to errflag and to set and
reset them separately.

Remove interrupt status on return to main keymap.

Turn off ERRFLAG_INT for always block.

Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.

Add TRY_BLOCK_INTERRUPT

This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.

Ensure propagation of SIGINT from exited job.

If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.

Reset errflag before precmd()

Add always block in _main_completion to fix ZLS_COLORS

Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt.  However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
Oliver Kiddle 58da0f495c 33730: vim style text objects for selecting words 2014-11-21 11:40:00 +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 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
Peter Stephenson 9c49c8dd27 John Stahara: 30641: bindkey -N error report is misleading
when copying keymap.
2012-08-25 18:02:32 +00:00
Bart Schaefer 81cb361d73 30033: silence valgrind warnings 2011-12-20 17:15:50 +00:00
Peter Stephenson 8856dc878e 28282: new function zlecallhook()
fix arguments to zle-keymap-select
2010-09-20 09:27:46 +00:00
Peter Stephenson 7e5a7a9135 28237: new parameter ZLE_LINE_ABORTED
28241: don't list .safe with bindkey -lL
2010-09-08 12:32:32 +00:00
Peter Stephenson ff955f61b4 28229: can list individual keymaps 2010-09-05 20:39:08 +00:00
Peter Stephenson 17dee17e4e 28227: improved documentation on keymaps
28226: improve bindkey -lL for aliased keymaps
2010-09-05 19:24:44 +00:00
Peter Stephenson af39a5ab1a 26463: Greg Klanderman: add zle-line-finish widget
26464: Greg Klanderman: fix insert-ids=single for menu completion
26465: Greg Klanderman: command keymap for execution
2009-01-28 09:31:53 +00:00
Peter Stephenson 46cdeb71b7 26366: add "isearch" keymap and "accept-search" functino 2009-01-19 17:57:43 +00:00
Oliver Kiddle 085419f95d 26024: don't leave ref count incremented when aborting bindkey with an error 2008-11-11 22:40:16 +00:00
Peter Stephenson bc32da6a67 24786: handle read -t properly in zle via getbyte() 2008-04-03 15:20:18 +00:00
Peter Stephenson 80acfd135c 22684: improve getkeystring() interface and make printf do octal escapes 2006-09-10 18:10:48 +00:00
Peter Stephenson dd5602f59b 22474: use variable argument lists to improve error message handling 2006-05-30 22:35:03 +00:00
Peter Stephenson efe92714c6 this one got missed 2006-04-25 17:33:34 +00:00
Peter Stephenson 85f25bb845 users/10172: new zle command read-command 2006-04-23 23:13:47 +00:00
Peter Stephenson 4b3cdcdb69 22169: hook function zle-keymap-select called when $KEYMAP changes 2006-01-28 15:02:25 +00:00
Peter Stephenson d5ac7ad46e unposted: bit I missed in 21945 2005-10-28 17:42:07 +00:00
Peter Stephenson aea7715261 21943, 21945: ZLE_UNICODE_SUPPORT -> MULTIBYTE_SUPPORT;
use multibyte versions of nicechar wherever possible.
2005-10-28 17:34:33 +00:00
Peter Stephenson 046f4cf49e 21784: Improved character widths for formatted multibyte character output 2005-09-29 17:32:34 +00:00
Bart Schaefer 6183db6faa 21770: tweak 21760 to avoid conflicts with global bindings 2005-09-29 14:39:18 +00:00
Bart Schaefer 5f076d1390 21760: fix test for sequence prefixes in the local keymap in getkeymapcmd() 2005-09-24 18:49:42 +00:00
Peter Stephenson d39b9fabdb 21709 plus tweaks: use $KEYTIMEOUT for multibyte chars.Reset input state on invalid characters or EOF 2005-09-09 11:48:27 +00:00