09/08/08 00:01:56
>>316
こんなんで COUNT 指定で COUNT-th の arg を run-help している。
似たかんじでやればいいかな。
autoload -U run-help-arg
zle -N run-help run-help-arg
% cat .zfunc/run-help-arg
emulate -L zsh
if (( NUMERIC )); then
local bufwords
# This splits the line into words as the shell understands them.
bufwords=(${(z)BUFFER})
zle .push-line -N
BUFFER="$WIDGET $bufwords[NUMERIC]"
zle .accept-line
return
fi
zle .run-help
return 0