zsh-users
 help / color / mirror / code / Atom feed
* zle oddity or some option running wild?
@ 2024-06-26 16:10 Thomas Lauer
  2024-06-26 16:38 ` Thomas Lauer
  2024-06-27 15:19 ` Thomas Lauer
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Lauer @ 2024-06-26 16:10 UTC (permalink / raw)
  To: Zsh Users

Hi all,

I am building zle user-defined widgets with great success (and almost
running out of Alt/Ctrl etc combos :-/). Now though I've run into a
strange effect which I don't understand.

I have this in my zsh init:
autoload -U select-word-style
select-word-style shell
zle -N backward-kill-shell-word backward-kill-word
zstyle :zle:backward-kill-shell-word word-style shell

and have backward-kill-shell-word bound to Ctrl-A to test. This is what
happens if I try to use that shortcut with a line that contains just
$ test test1<CURSOR><Ctrl-A>

This turns the line into
$ test <CURSOR>

If I press Ctrl-Y (my shortcut for yank) I get
$ test test test1<CURSOR>

If I add a test widget that just calls backward-kill-shell-word and then
prints the actual $CUTBUFFER this is indeed "test test1" although
backward-kill-shell-word has only removed "test1" from the command line.

This is probably due to yet another strange option buried somewhere in
my init... speaking of which, my
WORDCHARS='`!"£$%^&*-_=+;:''@#~\\<>?'

All this with:
1/ram>zsh --version
zsh 5.9 (x86_64-debian-linux-gnu)

I am puzzled and grateful for any idea how to fix this.

Thomas


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-28 13:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-26 16:10 zle oddity or some option running wild? Thomas Lauer
2024-06-26 16:38 ` Thomas Lauer
2024-06-27 15:19 ` Thomas Lauer
2024-06-27 15:41   ` Peter Stephenson
2024-06-27 16:08     ` Thomas Lauer
2024-06-28  4:35       ` Bart Schaefer
2024-06-28 13:48         ` Thomas Lauer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).