Zsh Mailing List Archive
Messages sorted by:
Re: Shift-Insert overwrites ZLE CUTBUFFER
- X-seq: zsh-workers 39910
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER
- Date: Thu, 10 Nov 2016 17:21:46 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1478794907; bh=V/XbC+br1hCGs9iwTmfFBpCqstFk+UK55RhUwXh+C9Y=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=OddLt1lA2gFxMiWCmGnikjXiCFsejTCvUyQdwNajD4qOZbTHBay4p9wFCkPEyC6ardBejj3oCAMjrEs05YKZlAMS55DooCKcokVQXxCzHk//qHUTLHCnMlqAybUHoKQMGJoywV+wY/uAennh9CINw8BqAF+JF2CQzSwQ3/lx2m6imfPG422k/1MqoB13cPfAcYOi4xw96NAdlNfFRdHRaSzyP952bHHpZODD3PzIa1tTtBxSKlr4gVCOweCwzxkf3/HFqIOoUnR9B37+KEXMSgFXMXLAINgVFgtaT9UpaXmY3fNV2ey2183FMDqqxVk0OSRvClpCBRkmraGFwYMM9Q==
- In-reply-to: <161109092745.ZM2477@torch.brasslantern.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAMtVo_PG_fd62V1FZ4r7fRUragzzS6H4McN5sO1=hhY=6DR6Yg@mail.gmail.com> <161025091249.ZM7232@torch.brasslantern.com> <CAMtVo_N6qOQr++Amzn11+m3pkOxjc908mwFUerur77+OWd92uw@mail.gmail.com> <161026090133.ZM11120@torch.brasslantern.com> <CAMtVo_P09j6fyJytA21iu_qOom6bCTvJEWn-dXTBX97Bp00Sdg@mail.gmail.com> <161026165138.ZM12130@torch.brasslantern.com> <firstname.lastname@example.org> <161027133523.ZM15655@torch.brasslantern.com> <email@example.com> <CGME20161031160350epcas3p4849616fbcc05783a9966320a28ed731c@epcas3p4.samsung.com> <firstname.lastname@example.org> <161109092745.ZM2477@torch.brasslantern.com>
> On Oct 31, 4:56pm, Oliver Kiddle wrote:
> } Associating it with the existing cut/paste features at least puts
> } it in a logical and memorable place, at least once you're aware of
> } the feature. And if you know about things like yank-pop or vi "0
> } then it is not so likely to be bothersome. But I'd be open to
> } something better.
> On Oct 31, 4:16pm, Peter Stephenson wrote:
> } I'm not particularly bothered either way, but $ZLE_PASTED suggest
> } itself.
A variable isn't an especially convenient place for the text given
that it is mostly useful interactively. You can't do anything useful
without writing custom shell widgets and if you're going to be
writing custom shell widgets, you might just as well write one to
wrap bracketed-paste and stuff the text into a variable.
> An idea that I just had, spawned in part by Oliver's change to
> "print -v" behavior when the target variable is declared as an array:
The array would at least then serve as a simple one-liner to disable
the use of the CUTBUFFER if it turns out that it bothers a lot of
I've mostly found the feature useful with an explicit vi buffer
and that behaviour is easily preserved while changing the rest.
Does emacs perhaps have anything analagous to the vi buffers? (It
appears to be a vim thing to call them registers as I've been doing).
Would there be any sense in putting it in the kill ring but not in
the CUTBUFFER so yank-pop is needed to grab it.
Messages sorted by: