Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Adding to the history from within a widget



Hi Bart¸

I'm new to zsh and it's widget sytem so didn't realise I could do that.
That solution seems to work fine.

Thanks!

On Sat, Jan 4, 2020 at 1:41 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:

> 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