Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: In Vi mode, show whether "insert" or "command" state is active
- X-seq: zsh-workers 34050
- From: Jason Spiro <jasonspiro4@xxxxxxxxx>
- To: ZyX <kp-pav@xxxxxxxxx>
- Subject: Re: In Vi mode, show whether "insert" or "command" state is active
- Date: Wed, 24 Dec 2014 23:15:10 -0500
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=L6nM+I06FnbXaq78pAfqv3dCaDwCCv3/hRTzkWewLf8=; b=IeUjsM1f+YU3kCcuhhZZ00ekqog3nyfoIGC/EupmxDnDM8uL8YFdolx7AnnqmJGa/d 0aFbaz0YhOZ5H1G0vvG/w53d0OwrEcmhJFDmBR+uR5ApWWeXeLXYi7EnBkBpz3SrN2FF fXhD5MWia0/P9yPt1+xLhvzwJyXVJRPUWAm+Bi8jQFwToe5P7ZwKhKdC5LQIupvB7Ehl qWEOJemZAEKpK96F1Gh47dGmeRf57xA+8jl6IzZ7OHKfJlxUQf81TdL6BxGIwYWZ31lv 7eZkJHMROzMkSYf0bUgnca/bnrB+yqM0cRgD4C4I0rKDPQD6aoyPFUJiZeAkyvB25ECS xvBw==
- In-reply-to: <8569631419273880@web5h.yandex.ru>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAN2X26=uQEj=1gB9UQqySDzB-O=zLE9FgHX2k+zTLpx_+3Pjug@mail.gmail.com> <141221175723.ZM5756@torch.brasslantern.com> <8569631419273880@web5h.yandex.ru>
On Mon, Dec 22, 2014 at 1:44 PM, ZyX <kp-pav@xxxxxxxxx> wrote:
> And this should be changed prompt/rprompt, not changing
> cursor because changing cursor shape is less likely to work
OK. You could do things the same way Bash's brand-new
'show-mode-in-prompt' feature does things: you could add one extra
character to the beginning of the prompt. A colon in vicmd mode; a
plus sign in viins mode.
This should work reliably in every terminal emulator.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author