[-- Attachment #1: Type: text/plain, Size: 611 bytes --] Hello, it is sometimes that I have this behaviour: when I use repeatedly a zle widget like kill-word and then I use yank to restore the killed text, only the last killed word is returned. I remember that all the consecutive killed word were returned at once, and the manual support this: [...] When repeatedly invoking a kill widget, text is appended to the cutbuffer instead of replacing it[...] Is it possible I deactivated this behavior somehow? the manual says also "when wrapping such widgets, it is necessary to call `zle -f kill' to retain this effect" but I am not wrapping them Pier Paolo Grassi [-- Attachment #2: Type: text/html, Size: 921 bytes --]
[-- Attachment #1: Type: text/plain, Size: 829 bytes --] Hello, is there some information I can provide about this question? thanks Pier Paolo Grassi Il giorno mar 11 gen 2022 alle ore 00:10 Pier Paolo Grassi < pierpaolog@gmail.com> ha scritto: > Hello, it is sometimes that I have this behaviour: > when I use repeatedly a zle widget like kill-word and then I use yank to > restore the killed text, only the last killed word is returned. > I remember that all the consecutive killed word were returned at once, and > the manual support this: > [...] When repeatedly invoking a kill widget, text is appended to the > cutbuffer instead of replacing it[...] > Is it possible I deactivated this behavior somehow? > > the manual says also "when wrapping such widgets, it is necessary to call > `zle -f kill' to retain this effect" but I am not wrapping them > > Pier Paolo Grassi > [-- Attachment #2: Type: text/html, Size: 1550 bytes --]
[-- Attachment #1: Type: text/plain, Size: 1128 bytes --] On Tue, Jan 11, 2022 at 9:36 AM Pier Paolo Grassi <pierpaolog@gmail.com> wrote: > Hello, is there some information I can provide about this question? > Version of zsh? Are you ever able to get this to happen starting from "zsh -f" + compinit? Does this happen e.g. after performing completion on one of the words you then kill? Oliver would be the most likely person to have insight here, but he's unavailable for several days right now. Il giorno mar 11 gen 2022 alle ore 00:10 Pier Paolo Grassi < > pierpaolog@gmail.com> ha scritto: > >> Hello, it is sometimes that I have this behaviour: >> when I use repeatedly a zle widget like kill-word and then I use yank to >> restore the killed text, only the last killed word is returned. >> I remember that all the consecutive killed word were returned at once, >> and the manual support this: >> [...] When repeatedly invoking a kill widget, text is appended to the >> cutbuffer instead of replacing it[...] >> Is it possible I deactivated this behavior somehow? >> > I don't know of any way to "deactivate this" other than by changing key binding or widget definitions. [-- Attachment #2: Type: text/html, Size: 2030 bytes --]
[-- Attachment #1: Type: text/plain, Size: 1678 bytes --] Il giorno mar 11 gen 2022 alle 22:28 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Tue, Jan 11, 2022 at 9:36 AM Pier Paolo Grassi <pierpaolog@gmail.com> > wrote: > >> Hello, is there some information I can provide about this question? >> > > Version of zsh? > zsh 5.8 (x86_64-pc-linux-musl) it's the version provided by Roman > Are you ever able to get this to happen starting from "zsh -f" + compinit? > > no, in this case it works as expected > Does this happen e.g. after performing completion on one of the words you > then kill? > it happens right after opening a new shell > > Oliver would be the most likely person to have insight here, but he's > unavailable for several days right now. > > Il giorno mar 11 gen 2022 alle ore 00:10 Pier Paolo Grassi < >> pierpaolog@gmail.com> ha scritto: >> >>> Hello, it is sometimes that I have this behaviour: >>> when I use repeatedly a zle widget like kill-word and then I use yank to >>> restore the killed text, only the last killed word is returned. >>> I remember that all the consecutive killed word were returned at once, >>> and the manual support this: >>> [...] When repeatedly invoking a kill widget, text is appended to the >>> cutbuffer instead of replacing it[...] >>> Is it possible I deactivated this behavior somehow? >>> >> > I don't know of any way to "deactivate this" other than by changing key > binding or widget definitions. > The key bindings for these widgets are simply bindkey \Cd kill-word bindkey \Cy yank I somehow have discovered a way, it seems... now I have to try to understand which config line is causing it I will update this thread if I make any progress, thanks [-- Attachment #2: Type: text/html, Size: 3633 bytes --]
[-- Attachment #1: Type: text/plain, Size: 2052 bytes --] and the winner is, this line: . software/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh maybe a bug in the plugin, I will try updating it to the last version regards Pier Paolo Grassi Il giorno mar 11 gen 2022 alle ore 22:53 Pier Paolo Grassi < pierpaolog@gmail.com> ha scritto: > > > Il giorno mar 11 gen 2022 alle 22:28 Bart Schaefer < > schaefer@brasslantern.com> ha scritto: > >> On Tue, Jan 11, 2022 at 9:36 AM Pier Paolo Grassi <pierpaolog@gmail.com> >> wrote: >> >>> Hello, is there some information I can provide about this question? >>> >> >> Version of zsh? >> > > zsh 5.8 (x86_64-pc-linux-musl) > it's the version provided by Roman > > >> Are you ever able to get this to happen starting from "zsh -f" + compinit? >> >> > no, in this case it works as expected > > >> Does this happen e.g. after performing completion on one of the words you >> then kill? >> > > it happens right after opening a new shell > > >> >> Oliver would be the most likely person to have insight here, but he's >> unavailable for several days right now. >> >> Il giorno mar 11 gen 2022 alle ore 00:10 Pier Paolo Grassi < >>> pierpaolog@gmail.com> ha scritto: >>> >>>> Hello, it is sometimes that I have this behaviour: >>>> when I use repeatedly a zle widget like kill-word and then I use yank >>>> to restore the killed text, only the last killed word is returned. >>>> I remember that all the consecutive killed word were returned at once, >>>> and the manual support this: >>>> [...] When repeatedly invoking a kill widget, text is appended to >>>> the cutbuffer instead of replacing it[...] >>>> Is it possible I deactivated this behavior somehow? >>>> >>> >> I don't know of any way to "deactivate this" other than by changing key >> binding or widget definitions. >> > > The key bindings for these widgets are simply > bindkey \Cd kill-word > bindkey \Cy yank > > I somehow have discovered a way, it seems... now I have to try to > understand which config line is causing it > I will update this thread if I make any progress, thanks > [-- Attachment #2: Type: text/html, Size: 4553 bytes --]