zsh-users
 help / color / mirror / code / Atom feed
* multiple kill are not yanked together
@ 2022-01-10 23:10 Pier Paolo Grassi
  2022-01-11 17:36 ` Pier Paolo Grassi
  0 siblings, 1 reply; 5+ messages in thread
From: Pier Paolo Grassi @ 2022-01-10 23:10 UTC (permalink / raw)
  To: Zsh-Users List

[-- 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 --]

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

* Re: multiple kill are not yanked together
  2022-01-10 23:10 multiple kill are not yanked together Pier Paolo Grassi
@ 2022-01-11 17:36 ` Pier Paolo Grassi
  2022-01-11 21:28   ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Pier Paolo Grassi @ 2022-01-11 17:36 UTC (permalink / raw)
  To: Zsh-Users List

[-- 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 --]

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

* Re: multiple kill are not yanked together
  2022-01-11 17:36 ` Pier Paolo Grassi
@ 2022-01-11 21:28   ` Bart Schaefer
  2022-01-11 21:53     ` Pier Paolo Grassi
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2022-01-11 21:28 UTC (permalink / raw)
  To: Pier Paolo Grassi; +Cc: Zsh-Users List

[-- 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 --]

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

* Re: multiple kill are not yanked together
  2022-01-11 21:28   ` Bart Schaefer
@ 2022-01-11 21:53     ` Pier Paolo Grassi
  2022-01-11 23:29       ` Pier Paolo Grassi
  0 siblings, 1 reply; 5+ messages in thread
From: Pier Paolo Grassi @ 2022-01-11 21:53 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh-Users List

[-- 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 --]

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

* Re: multiple kill are not yanked together
  2022-01-11 21:53     ` Pier Paolo Grassi
@ 2022-01-11 23:29       ` Pier Paolo Grassi
  0 siblings, 0 replies; 5+ messages in thread
From: Pier Paolo Grassi @ 2022-01-11 23:29 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh-Users List

[-- 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 --]

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

end of thread, other threads:[~2022-01-11 23:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10 23:10 multiple kill are not yanked together Pier Paolo Grassi
2022-01-11 17:36 ` Pier Paolo Grassi
2022-01-11 21:28   ` Bart Schaefer
2022-01-11 21:53     ` Pier Paolo Grassi
2022-01-11 23:29       ` Pier Paolo Grassi

Code repositories for project(s) associated with this 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).