zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: change color depending on vi-mode
Date: Mon, 23 Jan 2006 16:17:18 +0000	[thread overview]
Message-ID: <1060123161718.ZM28725@candle.brasslantern.com> (raw)
In-Reply-To: <slrndt9eu5.pr3.f.braennstroem@localhost.localdomain>

On Jan 23, 12:19pm, Fabian Braennstroem wrote:
}
} I use 'adam2'. Now, I would like to know, if it is possible
} to display some information or change the color of the bar
} depending on the current vi-mode?

There was a discussion about something like this last year; search the 
archives for "Vi ZLE bindings".

The short answer is that the only way to do it is to create your own
widget functions for all of the vi commands that change modes.  There
is no "callback" associated with changing the keymap that can be used
to update the prompt.


  reply	other threads:[~2006-01-23 16:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-23 11:19 Fabian Braennstroem
2006-01-23 16:17 ` Bart Schaefer [this message]
2006-01-23 19:55 ` Mike Hernandez
2006-01-24 15:21   ` Fabian Braennstroem
2006-01-24 19:21     ` Thomas Köhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1060123161718.ZM28725@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).