From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: PATCH: Implement zle -P
Date: Mon, 31 Aug 2015 23:23:11 -0700 [thread overview]
Message-ID: <150831232311.ZM921@torch.brasslantern.com> (raw)
In-Reply-To: <20150831181101.32f43e65@ntlworld.com>
On Aug 31, 6:11pm, Peter Stephenson wrote:
} Subject: Re: PATCH: Implement zle -P
}
} On Mon, 31 Aug 2015 09:54:02 +0200
} Mikael Magnusson <mikachu@gmail.com> wrote:
} > This lets you say
} > % zle -P mywidget prototypewidget myfunction
} > and it will work like zle -N mywidget myfunction except it will behave
} > like prototypewidget in Various Ways0x2122.
}
} It's not entirely clear what this does without documentation, but as the
} flags are a bit obcsure anyway, it might not be all that clear how to
} document it, either.
I presume this is exactly like "zle -C name widget function" except that
"widget" doesn't have to be a completion widget and "function" defaults
to being the same as "name".
Presumably the idea is for wrapper widgets, e.g., something like this:
zle -P bracketed-paste-magic bracketed-paste
which would then make b-p-magic behave exactly like b-p, and thereby,
e.g., eliminate the need for this stuff at the end of the former:
# Arrange to display highlighting if necessary
if [[ -n ${(M)zle_highlight:#paste:*} ]]; then
zle -R
zle .read-command && zle -U - $KEYS
fi
If that's NOT what it accomplishes, then I'm uncertain why it's needed
at all.
next prev parent reply other threads:[~2015-09-01 6:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-30 21:59 Overriding a yank* widget in zle Wayne Davison
2010-12-31 6:39 ` Wayne Davison
2010-12-31 8:28 ` Bart Schaefer
2010-12-31 23:23 ` Wayne Davison
2015-08-31 7:54 ` PATCH: Implement zle -P Mikael Magnusson
2015-08-31 7:56 ` Mikael Magnusson
2015-08-31 9:55 ` PATCH: Set completion function flags correctly for " Mikael Magnusson
2015-08-31 10:17 ` Mikael Magnusson
2015-08-31 17:11 ` PATCH: Implement " Peter Stephenson
2015-09-01 6:23 ` Bart Schaefer [this message]
2015-09-01 6:50 ` Mikael Magnusson
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=150831232311.ZM921@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).