Zsh Mailing List Archive
Messages sorted by:
Re: Shift-Insert overwrites ZLE CUTBUFFER
- X-seq: zsh-workers 39911
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER
- Date: Thu, 10 Nov 2016 09:17:36 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=rBfM106reJ0+JKCePDRSUrvEHReN1jxRxbq89XLfQLs=; b=onNhpK23vdaHN+HykaJBb3EWwRZkFaG49dXo2PVwjPm3OBrQbH2C3ePNBgKKVI3ww1 5dVogkSgpXm2/vMWAKJtz7dSh/fsCic+x8CDM5Ll6iVdaYL1uDNGAZ+vVPW7Oxi8qD4d e+MLBZc0WFyu3eMdCrjNW8FTXiJ+7dYbf4mteUqpdU3xo+O4kws5uRTXzn226VCb+5l9 h/GZ8v0Rg0VD4I3wkwlItDXg8u55dUS2cDG9FHolNcXWu+3CpCOur1wxDyiZxD+q3UJP BptQPGu15Yabh5/MpfNOmz8HceHNXrhUvrLniYw1NyJwkFxkQNn8mO7bHskVZe1ePA3r LJwA==
- In-reply-to: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- 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> <email@example.com> <161027133523.ZM15655@torch.brasslantern.com> <firstname.lastname@example.org> <CGME20161031160350epcas3p4849616fbcc05783a9966320a28ed731c@epcas3p4.samsung.com> <email@example.com> <161109092745.ZM2477@torch.brasslantern.com> <firstname.lastname@example.org>
On Nov 10, 5:21pm, Oliver Kiddle wrote:
} 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).
IIRC vi called them buffers and vim borrowed the term register from
emacs. So yes, emacs does have a whole suite of register operations,
none of which are present in zsh (which in fairness was based on a
much older version of emacs and for obvious reasons hasn't attempted
to track anything but the most straightforward editing operations).
You can of course use zsh's vi buffer operations as a simple subset
of emacs register commands. As with vi, emacs registers are named
by a single character. There are some special-case operations for
treating registers as values for POINT (zsh CURSOR) and incrementing
or decrementing numbers stored in registers, etc.
A useful addition to zsh/zleparameter would be a special hash of
register-to-content mappings (emacs calls this register-alist).
} 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.
That'd be a little strange in that it changes the order of the kill
ring with respect to the two most recent kills. It also makes it a
bit more confusing for a user-definded widget to access the content
of the last paste if for some reason it was wanted, but not much.
if [[ $LASTWIDGET == *bracketed-paste ]]
# Used to be in $CUTBUFFER but now
Messages sorted by: