From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6368 invoked by alias); 16 Jul 2015 23:38:33 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35810 Received: (qmail 18322 invoked from network); 16 Jul 2015 23:38:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=TBe QmaUI0KjD/WR93RH2L375rXs=; b=yU8sSQhDj6t276VSGTisvOfg+1S4XNsZoYB UZjNhDKs43qon5ECgT37VcHQTx1jZkeCYC5ZvgM8Zsa0Cc3M8/S1F1RccJIcR3Q/ ZhHWGtYYme4GKhZSnrZGdEFZ06+K67E+9XhiUZvnoQGBTxecoZrSWeX3R4Ay8fc7 /2e1hv9k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=TB eQmaUI0KjD/WR93RH2L375rXs=; b=av0JwVl6MK7f3lGzIwFjDObzAJC48PE/z0 JaFk9tuUZCHxpDA+Ay9Qe0z9HYo79hZvYaZLeb3C2PL5G7OudEfvQZ2pC2+qjhvi eQisNFLkGHTaEIq+KROd+BdP+Jv3Wzwj90nybPHTu/uCxeckacMiyS9S9QWrohRJ /Rkpbv/9Y= X-Sasl-enc: p5Jzi9rol8r+kstJR5NakslwMyhWYW9GNLHOF67b61pH 1437089911 Date: Thu, 16 Jul 2015 23:38:28 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] FAQ += edit-command-line Message-ID: <20150716233828.GG2032@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) This is a recurring question on IRC. diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo index c23dff5..a9cc0a6 100644 --- a/Etc/FAQ.yo +++ b/Etc/FAQ.yo @@ -126,6 +126,7 @@ Chapter 3: How to get various things to work 3.25. How do I get coloured prompts on my colour xterm? 3.26. Why is my output duplicated with `tt(foo 2>&1 >foo.out | bar)'? 3.27. What are these `^' and `~' pattern characters, anyway? +3.28. How do I edit the input buffer in $EDITOR? Chapter 4: The mysteries of completion 4.1. What is completion? @@ -1924,6 +1925,22 @@ label(327) ) +sect(How do I edit the input buffer in $EDITOR?) +label(328) + + When typing a long command interactively, it's possible to edit it in $EDITOR + before execution by using the tt(edit-command-line) ZLE widget. For example, + after putting + verb( + autoload -U edit-command-line; + zle -N edit-command-line; + bindkey '^Fc' edit-command-line; + ) + in your tt(~/.zshrc), typing mytt(^F c) will open the entered-so-far + command-line for editing. The command will not be automatically executed; + quitting the editor will only return to zsh's command-line editing mode. + + chapter(The mysteries of completion)