* [PATCH] FAQ += edit-command-line
@ 2015-07-16 23:38 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2015-07-16 23:38 UTC (permalink / raw)
To: zsh-workers
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-16 23:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-16 23:38 [PATCH] FAQ += edit-command-line Daniel Shahaf
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).