Zsh Mailing List Archive
Messages sorted by:
Re: Bind ":" to execute-named-cmd in vicmd?
- X-seq: zsh-users 14046
- From: Ian Tegebo <ian.tegebo@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Bind ":" to execute-named-cmd in vicmd?
- Date: Fri, 17 Apr 2009 21:05:04 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=lDTQbVhKSCMNEVUg0hyQQ3FZafpAB8xqVxT8gjXul0w=; b=BdZ/QsO8DYD4aLWn7jf0Rdl2RTZYTsITF1Wphve4jY2hZ/nxJ1/dJAJjP0t4GMuN1D 3GEy3A0SZgZNsbGaVY2XIOzsmjYfZXPSoWlzuQSlOAqIuM9weQ3XvD335oC0bLsrsKJ0 Jayqud2Kyqp7xpEXHO7AVTXhZUm6rqliI2JKg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Gu4F0ipOF4sKXqagXgQEvFYWstoIYMqmmVFMMTn8kbLDxxem2QnCsF0VajiXiVo8TH r5CsejeKsNPbqVcdxyMELJPwih6FlRQvxoAntzDBqyJIAyORLonp60CCzSu/tDmyEE6K pTMZCjZXzh7nNXXXk3Gji4GJHe0FpAhszE75g=
- In-reply-to: <c21da7250904171048q7093eaf4l6fe8b4e2e43cc95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <c21da7250904170029s1b333208pe8a1c4aaa09ffda6@xxxxxxxxxxxxxx> <20090417161426.66c6c2db@news01> <090417083724.ZM25247@xxxxxxxxxxxxxxxxxxxxxx> <c21da7250904171048q7093eaf4l6fe8b4e2e43cc95@xxxxxxxxxxxxxx>
On Fri, Apr 17, 2009 at 10:48 AM, Ian Tegebo <ian.tegebo@xxxxxxxxx> wrote:
> On Fri, Apr 17, 2009 at 8:37 AM, Bart Schaefer
> <schaefer@xxxxxxxxxxxxxxxx> wrote:
>> On Apr 17, Â4:14pm, Peter Stephenson wrote:
>> } 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.
>> One problem is that execute-named-cmd doesn't use the viins keymap, so
>> to invoke it is in effect throwing a vi user into emacs mode with no
>> obvious way to get out of it -- they won't know to hit ^G and you can't
>> back out by hitting backspace/delete at the prompt. ÂYeah, it does work
>> to just hit enter, but ...
> I agree that this makes for an awkward experience. ÂI found that
> neither hitting enter nor ^G got me out of the prompt, but ^C did.
> It seems that one would want Esc to back out of the prompt. ÂPerhaps
> it's not appropriate for a default for that reason alone.
I think the awkwardness would be removed if there was a keymap for the
minibuffer where Esc could be bound to send-break.
Messages sorted by: