diff --git a/twander.1 b/twander.1 index d2ead99..7a3fbeb 100644 --- a/twander.1 +++ b/twander.1 @@ -3657,7 +3657,7 @@ .nf ASSOC .pdf mypdfreader [SELECTION] ASSOC .ps mypostscriptprogram [SELECTION] - ASSOC * myfineeditor [SELECTION] + ASSOC * myfineeditor [SELECTION] .fi .ft \" revert @@ -3665,6 +3665,76 @@ not ending in either ".pdf" or ".ps", the default association action will be taken: The file will be opened with \fCmyfineeditor\fP. +You can also define a list of file types to be +.B excluded +from association processing. This is handy if you want to use the +default association feature for everything except a particular set +of file types. This feature is primarily useful on Windows systems +where you want to define your own default action, but want a few +particular types of files to use the underlying Windows associations. + +To do this, put one or more statements in the following form in your +Configuration File: + +.ft C \" courier +.nf + ASSOC - space-separated-list-of-file-types +.fi +.ft \" revert + + +For example: + +.ft C \" courier +.nf + ASSOC * myfineeditor [SELECTION] + ASSOC - .txt .pyo .ps +.fi +.ft \" revert + +With this configuration, all files would, by default, be handled +with \fCmyfineeditor\fP +.B except +files whose names end with \fC.txt\fP, \fC.pyo\fP, or .\fCps\fP. +These excluded file types would be handed to the underlying OS +for "execution". + +Note that exclusion has higher precedence than any explicit +association, not just the default association. If you do this: + +.ft C \" courier +.nf + ASSOC .pdf mypdfreader [SELECTION] + ASSOC - .pdf +.fi +.ft \" revert + +You are effectively masking the explicit association for \fC.pdf\fP +files. + +You can also remove a previously defined association by leaving +the right-hand-side of the \fCASSOC\fP statement blank: + +.ft C \" courier +.nf + # This example first defines, and then removes an association + # for .pdf files: + + ASSOC .pdf mypdfreader [SELECTION] + ASSOC .pdf +.fi +.ft \" revert + + +This feature is primarily useful when you want to define associations +conditionally. That is, you can remove an association if a particular +conditional block is true. A typical use for this might be to +get different (or remove) associations based on what OS you're +running. (See the section below entitled: +.B Conditional Processing Statements +). + + .SS A Few Association Subtleties @@ -5065,4 +5135,4 @@ .ft \" revert .SH DOCUMENT REVISION INFORMATION -$Id: twander.1,v 1.139 2006/12/18 22:26:22 tundra Exp $ \ No newline at end of file +$Id: twander.1,v 1.140 2006/12/19 00:22:59 tundra Exp $ \ No newline at end of file