Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle insert problems
- X-seq: zsh-users 16185
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Pascal Wittmann <PascalWittmann@xxxxxxx>
- Subject: Re: zle insert problems
- Date: Tue, 2 Aug 2011 16:34:38 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nOp6w3YHE0rMAMsMLGR7AoVuM1hv/Geg8F1R8/DK3fg=; b=lM+aPvnAJxhc8uvaBsvCpW8HeswjvTA8ByLAk231SL62SruNTdMzhfj0y9FU8JAsOR LMS5Oa8OJdRG0Lr3s/UURYe06dXqGOObK0Ci6QegwJCvbP5EObnDybbCdox63iI0Rz6r eHM0vX3TYA21lawcNIusmz/a+r3fahmRKxW6Y=
- In-reply-to: <4E380791.2090807@gmx.net>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4E380791.2090807@gmx.net>
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