From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16348 invoked from network); 28 Jul 2020 11:49:09 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 28 Jul 2020 11:49:09 -0000 Received: (qmail 24418 invoked by alias); 28 Jul 2020 11:49:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: Sender: zsh-users@zsh.org X-Seq: 25006 Received: (qmail 12128 invoked by uid 1010); 28 Jul 2020 11:49:01 -0000 X-Qmail-Scanner-Diagnostics: from wout4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25884. spamassassin: 3.4.4. Clear:RC:0(64.147.123.20):SA:0(-2.6/5.0):. Processed in 0.707551 secs); 28 Jul 2020 11:49:01 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedriedvgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfgjfhfogggtgfesthhqtd dtredtjeenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghnihgv lhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhephfdtteefheevuedthe dutdeifeegteettdejtdffheduieeijeelteetkeduteehnecukfhppedutdelrdeigedr udeguddrieejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Date: Tue, 28 Jul 2020 11:48:23 +0000 From: Daniel Shahaf To: Tomasz Pala Cc: zsh-users@zsh.org Subject: Re: zle - keep state of the buffer on accept-and-hold or hold only part Message-ID: <20200728114823.015cd568@tarpaulin.shahaf.local2> In-Reply-To: <20200728103038.GA7887@polanet.pl> References: <20200728103038.GA7887@polanet.pl> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Tomasz Pala wrote on Tue, 28 Jul 2020 12:30 +0200: > My usage scenario follows - consider having (not so) many files with simi= lar > names, like date/counter-suffixed. I need to perform some operations on t= hem, > one by one (the commands slightly differ, assume it's not scriptable > worthy), e.g. >=20 > [1] xsltproc style.xslt file_200701.xml [alt-a: accept-and-hold] > [2] xsltproc style.xslt file_200701.xml | grep -v some_spam [accept-and-h= old] > [3] xsltproc style.xslt file_200701.xml | grep -i sth_interesting | actua= l command [accept-and-hold] >=20 > [1] xsltproc style.xslt file_200702.xml [accept-and-hold] > [2] xsltproc style.xslt file_200702.xml | grep -v something_other [...] >=20 >=20 > Now, I got the " | grep -i sth_interesting | actual command" in xterm > PRIMARY and insert it fast with alt-shift-insert - so the [3] line is > fine. The [2] line changes depending on xsltproc output, it's written > ad-hoc, no optimization can be made. >=20 >=20 > However, most of the time I'm wasting is on going back to the point: >=20 > xsltproc style.xslt file_2007 <- here. >=20 > I can set a mark (ctrl-space) and then kill entire region, but the mark > doesn't propagate to the buffer after accept-and-hold. >=20 As a workaround, you might try changing your command to one of these: % { xsltproc style.xslt - | grep =E2=80=A6 }