From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 83e14a9c for ; Sat, 4 Jan 2020 01:42:08 +0000 (UTC) Received: (qmail 6800 invoked by alias); 4 Jan 2020 01:41:55 -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: X-Seq: 24598 Received: (qmail 10720 invoked by uid 1010); 4 Jan 2020 01:41:55 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f195.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(209.85.208.195):SA:0(-1.9/5.0):. Processed in 1.959914 secs); 04 Jan 2020 01:41:55 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.195 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NZO4dCMAVd9B37uKSzHWNgr7DMZCViqjTJzKlQjbmwc=; b=OixWKQOLdaMKW72G3FbEkUnNMZWRHkjHMzGGrCmikqA+hWFIKAEOjDMRef2XNeBAqV PeJgLNZlt1QY4FaftvF3DQZhhvjpoOiseEe2rGOMg2WVSn1LCvTcp/uFajQBFq+mJWIo IVXKuGpZ834z7t3VYk1jG3nT3zyE8vCX83TkoDLvCvzrTsM4ZrEQe3XprO44qqg5egKS JW3DqQMZcKYZtyglkAoIzMLGihLaAQkAbtbFcBdOAGx6fAKEad6JnUc6vMrMl9mQHLcC RL7+LeSqU0FFkv46eb/OdHL4uAJ5h8rvRPNu8q4hNspiv2sOSsLhuiZZdKlt6LJgQ9OC hALQ== X-Gm-Message-State: APjAAAUZfBZoskGhgwL5Y2HQRup8c58H0m4xiY+7p3vJetK3G1nrRoGh wXIgkv5IsB9Pbl1TpSluxLbuRJPQciQk1icKciNWeA== X-Google-Smtp-Source: APXvYqw14j73I4N2RR21dA8tRpUzvtCj2RjhVDNTtV+lds3VaKiNu8fcKXb2YuxppHTEwZ0RY+xaHzqUPfSMQ80h0zE= X-Received: by 2002:a2e:93c5:: with SMTP id p5mr51872585ljh.192.1578102079017; Fri, 03 Jan 2020 17:41:19 -0800 (PST) MIME-Version: 1.0 References: <3D72D898-A52E-421E-B05E-6119564791F3@dana.is> <96C37E4F-C9BA-4B89-93FF-78D3AC5588EF@dana.is> In-Reply-To: From: Bart Schaefer Date: Fri, 3 Jan 2020 17:41:07 -0800 Message-ID: Subject: Re: Adding to the history from within a widget To: Piers Powlesland Cc: dana , Zsh Users Content-Type: text/plain; charset="UTF-8" On Fri, Jan 3, 2020 at 4:17 PM Piers Powlesland 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?