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

Re: run-help's man arguments



Bart Schaefer wrote:
> On Jun 6, 12:52pm, Jun T. wrote:
> } Subject: Re: run-help's man arguments
> }
> } I'm not familiar with zsh internals, but I think ESC-h (in the default  
> } bindings) is bound to the ZLE widget 'run-help' which calls the  
> } function "run-help" as "run-help $1".
> 
> You have a point there.  PWS, how did you manage to get run-help to
> pass the entire locate command line to "man $@:t"?

It seems I'm using this widget.


local -a line

line=(${(qq)${(z)BUFFER}})
zle push-line
BUFFER="run-help ${line}"
zle accept-line


-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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