about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-05-23 19:54:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-05-23 19:54:03 +0000
commit35d3418aebfb5cc32cada19668fcbafc1b7ad162 (patch)
treecee9d7fa990295cea6ebfb7a3da8c5ec03e8ef22 /Doc
parentb7d9912f8b44d159426526d2857273f57a11b67a (diff)
downloadzsh-35d3418aebfb5cc32cada19668fcbafc1b7ad162.tar.gz
zsh-35d3418aebfb5cc32cada19668fcbafc1b7ad162.tar.xz
zsh-35d3418aebfb5cc32cada19668fcbafc1b7ad162.zip
users/15078: completion for zsh-mime-handler
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo8
1 files changed, 7 insertions, 1 deletions
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))(