zsh-users
 help / color / mirror / code / Atom feed
* keybinding for "edit current line with $EDITOR"
@ 2002-06-21 17:11 Adam Lazur
  2002-06-21 17:21 ` Bart Schaefer
  2002-06-21 17:24 ` Peter Stephenson
  0 siblings, 2 replies; 4+ messages in thread
From: Adam Lazur @ 2002-06-21 17:11 UTC (permalink / raw)
  To: zsh-users

I'm a convert to zsh from bash, and there's only one thing that I've
been missing: the ability to open $EDITOR to edit the current line of
input.

In bash with the vi keybindings enabled it is bound to ^[v... I can't
find it in the bash keybinding stuff to give a readline function name.

It would be like what fc does, but acting upon the current input and not
on a command pulled from history.

Anybody have some zsh magic that does this?

-- 
Adam Lazur, Cluster Monkey


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: keybinding for "edit current line with $EDITOR"
  2002-06-21 17:11 keybinding for "edit current line with $EDITOR" Adam Lazur
@ 2002-06-21 17:21 ` Bart Schaefer
  2002-06-21 17:29   ` Adam Lazur
  2002-06-21 17:24 ` Peter Stephenson
  1 sibling, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2002-06-21 17:21 UTC (permalink / raw)
  To: Adam Lazur, zsh-users

On Jun 21,  1:11pm, Adam Lazur wrote:
} Subject: keybinding for "edit current line with $EDITOR"
}
} I'm a convert to zsh from bash, and there's only one thing that I've
} been missing: the ability to open $EDITOR to edit the current line of
} input.

Look at
	info zsh "zle functions"
(or "man zshcontrib" if you don't have the info pages installed) and look
for the function edit-command-line.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: keybinding for "edit current line with $EDITOR"
  2002-06-21 17:11 keybinding for "edit current line with $EDITOR" Adam Lazur
  2002-06-21 17:21 ` Bart Schaefer
@ 2002-06-21 17:24 ` Peter Stephenson
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Stephenson @ 2002-06-21 17:24 UTC (permalink / raw)
  To: Zsh users list

Adam Lazur wrote:
> I'm a convert to zsh from bash, and there's only one thing that I've
> been missing: the ability to open $EDITOR to edit the current line of
> input.
> 
> In bash with the vi keybindings enabled it is bound to v... I can't
> find it in the bash keybinding stuff to give a readline function name.

See the function edit-command-line (!) supplied in the Zle directory of
the distribution; it should be installed with 4.0.4.

autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: keybinding for "edit current line with $EDITOR"
  2002-06-21 17:21 ` Bart Schaefer
@ 2002-06-21 17:29   ` Adam Lazur
  0 siblings, 0 replies; 4+ messages in thread
From: Adam Lazur @ 2002-06-21 17:29 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-users

Bart Schaefer (schaefer@brasslantern.com) said:
> Look at
> 	info zsh "zle functions"
> (or "man zshcontrib" if you don't have the info pages installed) and look
> for the function edit-command-line.

Exactly what I'm looking for, thanks :)

-- 
Adam Lazur, Cluster Monkey


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-21 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-21 17:11 keybinding for "edit current line with $EDITOR" Adam Lazur
2002-06-21 17:21 ` Bart Schaefer
2002-06-21 17:29   ` Adam Lazur
2002-06-21 17:24 ` Peter Stephenson

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).