[HS] Re: short and long log messages

John Whitley whitley at acm.org
Fri May 19 22:15:49 BST 2006


  John Whitley wrote:
> There's got to be a way to kick zle into multi-line mode from the  
> get-go; I'll do some digging...

And the answer is to add this to your .zshrc file:

bindkey "\eq" push-line-or-edit  # Bind ESC q (M-q) to push-line-or- 
edit[1]

Now you can do this:

 >> bzr commit -m "This is my cmmit message.
Oops I made a typo in the first line<M-q>

After the M-q, the whole text comes up in the multi-line editor.   
Rather handy.

-- John

[1] For zsh folks who care and are new to push-line-or-edit:

push-line-or-edit works as follows:  When on the first line of text  
entry, it pushes the line into the buffer stack, gives you a new  
command prompt, and pops the line once you hit enter (i.e. at the  
next prompt).  Give it a try; this is a handy shortcut for the C-u/C- 
y combo.

When on a second or later line of text entry, push-line-or-edit will  
bring up the entire text entered thus far into the zle multi-line  
editor.





More information about the bazaar mailing list