From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: Predefine the next buffer
Date: Sun, 09 May 2021 21:02:29 +0100 [thread overview]
Message-ID: <594d109998dd94a1654334f55a8d679fad742b70.camel@ntlworld.com> (raw)
In-Reply-To: <CADprNYmBFODaDgieHSOErz3PM6bHUVKuG9c9KBE495M9TCQw_w@mail.gmail.com>
On Sun, 2021-05-09 at 21:11 +0200, Michel wrote:
> I try to have that will define the next content of my buffer. For
> example: I run a command 'foo' and the next command will be pre-write
> with 'bar' (or replace 'foo' by 'bar'). I imagine made it with a
> function, but I can't use zle to manipulate the buffer, it seems to be
> required to use a widget and run it from a shortcut.
So "foo" is something like a shell function thatʼs going to do some
stuff, and you want it also to set up the next editing command line for
you?
Try this:
foo() {
print -z bar
}
(BTW user questions really belong on zsh-users.)
pws
next prev parent reply other threads:[~2021-05-09 20:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-09 19:11 Michel
2021-05-09 20:02 ` Peter Stephenson [this message]
2021-05-09 20:53 ` Michel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=594d109998dd94a1654334f55a8d679fad742b70.camel@ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public 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).