Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bind ":" to execute-named-cmd in vicmd?



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.


-- 
Ian Tegebo



Messages sorted by: Reverse Date, Date, Thread, Author