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

Re: zle insert problems



On 2 August 2011 16:20, Pascal Wittmann <PascalWittmann@xxxxxxx> wrote:
> Hi,
>
> I'm trying to build something like this:
>
>        function do-something() {
>                zle beginning-of-line
>                zle -U "something"
>                zle end-of-line
>        }
>        zle -N do-something
>        bindkey "^[i]" do-something

You can modify the buffer directly via the BUFFER variable, so you
could just say BUFFER="something $BUFFER" and it should do what you
want. buffer.

-- 
Mikael Magnusson



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