zsh-users
 help / color / mirror / code / Atom feed
* zle insert problems
@ 2011-08-02 14:20 Pascal Wittmann
  2011-08-02 14:34 ` Mikael Magnusson
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Wittmann @ 2011-08-02 14:20 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

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

I assumed the commands are executed sequentially if I press M-i. In fact
they are but the strings given to "zle -U" are written after the current
widget is executed. So the result is:

	% this is a test

	pressing M-i

	% this is a testsomething

Is there a way to flush this data earlier to get a result like:


	% sometingthis is a test

Or is my approach totaly wrong? (This is the first time I use zle)


Thanks in advance
Pascal


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-08-02 17:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02 14:20 zle insert problems Pascal Wittmann
2011-08-02 14:34 ` Mikael Magnusson
2011-08-02 14:55   ` Pascal Wittmann
2011-08-02 15:08     ` Manuel Presnitz
2011-08-02 15:09     ` Jérémie Roquet
2011-08-02 15:28       ` Pascal Wittmann
2011-08-02 15:55         ` Peter Stephenson
2011-08-02 16:45         ` Bart Schaefer
2011-08-02 17:03           ` Pascal Wittmann
2011-08-02 15:17     ` Manuel Presnitz
2011-08-02 15:18     ` Peter Stephenson

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).