From: Bart Schaefer <schaefer@brasslantern.com>
To: Piers Powlesland <pierspowlesland@gmail.com>
Cc: dana <dana@dana.is>, Zsh Users <zsh-users@zsh.org>
Subject: Re: Adding to the history from within a widget
Date: Fri, 3 Jan 2020 17:41:07 -0800 [thread overview]
Message-ID: <CAH+w=7aRUiB1pp1H6-ddtdVW-OikL9A9AexbbRqMwh-7OE_1qQ@mail.gmail.com> (raw)
In-Reply-To: <CAFXacXmxdwFdDwFXDnaqLr7pdke=FsB27yUp_GXFDY1kYVyEOA@mail.gmail.com>
On Fri, Jan 3, 2020 at 4:17 PM Piers Powlesland
<pierspowlesland@gmail.com> wrote:
>
> I've bound ctrl+o to open fzf (a fuzzy finder) which is populated with the output of find and then open the selected file in vim.
>
> I'd like to be able to add the vim command to the history, so that pressing up lets me re-open the same file in vim.
Then why not just assign the vim command to $BUFFER and zle
accept-line, rather than run vim from inside the widget?
next prev parent reply other threads:[~2020-01-04 1:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-02 17:14 Piers Powlesland
2020-01-03 3:37 ` dana
2020-01-03 11:03 ` Piers Powlesland
2020-01-03 23:11 ` dana
2020-01-03 23:46 ` Bart Schaefer
2020-01-04 0:17 ` Piers Powlesland
2020-01-04 1:41 ` Bart Schaefer [this message]
2020-01-06 13:40 ` Piers Powlesland
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='CAH+w=7aRUiB1pp1H6-ddtdVW-OikL9A9AexbbRqMwh-7OE_1qQ@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=dana@dana.is \
--cc=pierspowlesland@gmail.com \
--cc=zsh-users@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).