Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Adding to the history from within a widget
- X-seq: zsh-users 24598
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Piers Powlesland <pierspowlesland@xxxxxxxxx>
- Subject: Re: Adding to the history from within a widget
- Date: Fri, 3 Jan 2020 17:41:07 -0800
- Cc: dana <dana@xxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- In-reply-to: <CAFXacXmxdwFdDwFXDnaqLr7pdke=FsB27yUp_GXFDY1kYVyEOA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAFXacXmkCy3kQsX2b=D5+dtX+F_CxF6K+nUZsHGOBXdC-n7koA@mail.gmail.com> <3D72D898-A52E-421E-B05E-6119564791F3@dana.is> <CAFXacXkLFtDW=W+-iPBYT4cq4HCa5uh_CTLipGoPmO0h_MHU_A@mail.gmail.com> <96C37E4F-C9BA-4B89-93FF-78D3AC5588EF@dana.is> <CAH+w=7ZcaOx7B5VmedxxrQz0q19i3CJ2uF+4aSAv-6R+L28vTA@mail.gmail.com> <CAFXacXmxdwFdDwFXDnaqLr7pdke=FsB27yUp_GXFDY1kYVyEOA@mail.gmail.com>
On Fri, Jan 3, 2020 at 4:17 PM Piers Powlesland
<pierspowlesland@xxxxxxxxx> 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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author