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

Re: PATCH: widget called when zle starts.



On Dec 15, 10:57am, Peter Stephenson wrote:
}
} It should be possible to get more control, though.  You can already test
} for context, e.g. $PREBUFFER.  Another zle variable giving more about
} the context is a possibility.

I think this is almost a requirement.  Otherwise one is reduced to doing
things like this:

    precmd() { zle_use_cmd_mode=1 }
    zle-line-init() {
	((zle_use_cmd_mode)) && zle vi-cmd-mode
	zle_use_cmd_mode=0
    }



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