From 35d3418aebfb5cc32cada19668fcbafc1b7ad162 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 23 May 2010 19:54:03 +0000 Subject: users/15078: completion for zsh-mime-handler --- Doc/Zsh/contrib.yo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Doc') diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index ae071c129..c512f89d9 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -2412,7 +2412,7 @@ startitem() findex(zsh-mime-setup) findex(zsh-mime-handler) xitem(tt(zsh-mime-setup) [ tt(-fv) ] [ tt(-l) [ var(suffix ...) ] ]) -item(tt(zsh-mime-handler))( +item(tt(zsh-mime-handler [-l] var(command arguments ...)))( These two functions use the files tt(~/.mime.types) and tt(/etc/mime.types), which associate types and extensions, as well as tt(~/.mailcap) and tt(/etc/mailcap) files, which associate types and the programs that @@ -2636,6 +2636,12 @@ terminal; the second flag is used if the output should be sent to a pager. An example of a suitable tt(mailcap) entry for such a program is: example(text/html; /usr/bin/lynx '%s'; needsterminal) + +Running `tt(zsh-mime-handler -l) var(command line)' prints the command +line that would be executed, simplified to remove the effect of any +flags, and quoted so that the output can be run as a complete zsh +command line. This is used by the completion system to decide how to +complete after a file handled by tt(zsh-mime-setup). ) findex(pick-web-browser) item(tt(pick-web-browser))( -- cgit 1.4.1