Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bind ":" to execute-named-cmd in vicmd?
- X-seq: zsh-users 14041
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Bind ":" to execute-named-cmd in vicmd?
- Date: Fri, 17 Apr 2009 16:14:26 +0100
- In-reply-to: <c21da7250904170029s1b333208pe8a1c4aaa09ffda6@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <c21da7250904170029s1b333208pe8a1c4aaa09ffda6@xxxxxxxxxxxxxx>
On Fri, 17 Apr 2009 00:29:13 -0700
Ian Tegebo <ian.tegebo@xxxxxxxxx> wrote:
> It seems like one would naturally want to bind ":" to
> execute-named-cmd in the vicmd keymap. Is there something I'm missing
> that would prohibit this from being a sensible default?
Well, there's no fundamental reason why not, and it's an easy change, but it
doesn't really work the same way as ":" in vi so it's not clear to me it's
something you'd do without thinking. Can't see any obvious disadvantage,
though.
Index: Doc/Zsh/zle.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/zle.yo,v
retrieving revision 1.79
diff -u -r1.79 zle.yo
--- Doc/Zsh/zle.yo 13 Mar 2009 10:04:21 -0000 1.79
+++ Doc/Zsh/zle.yo 17 Apr 2009 15:12:14 -0000
@@ -1871,7 +1871,7 @@
point and mark are not swapped.
)
tindex(execute-named-cmd)
-item(tt(execute-named-cmd) (ESC-x) (unbound) (unbound))(
+item(tt(execute-named-cmd) (ESC-x) (:) (unbound))(
Read the name of an editor command and
execute it. A restricted set of editing functions is available in the
mini-buffer. Keys are looked up in the special
Index: Src/Zle/zle_bindings.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_bindings.c,v
retrieving revision 1.3
diff -u -r1.3 zle_bindings.c
--- Src/Zle/zle_bindings.c 18 Dec 2000 02:14:57 -0000 1.3
+++ Src/Zle/zle_bindings.c 17 Apr 2009 15:12:14 -0000
@@ -348,7 +348,7 @@
/* 7 */ z_digitargument,
/* 8 */ z_digitargument,
/* 9 */ z_digitargument,
- /* : */ z_undefinedkey,
+ /* : */ z_executenamedcmd,
/* ; */ z_virepeatfind,
/* < */ z_viunindent,
/* = */ z_listchoices,
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author