<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 23 Apr 2019, at 10:13, Dr Eberhard W Lisse wrote:</p>

</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">[…] so<br>
<br>
        mate -t source.r -<br>
        mate -t source.makefile -<br>
        mate -t source.perl -<br>
<br>
and after a little experimenting<br>
<br>
        mate -t text.tabular.csv -<br>
<br>
work (even if source.perl did not come up in the grep) if the<br>
corresponding bundle is installed.<br>
<br>
And TextMate evaluates the shebang which also works in a pipe.<br>
<br>
So that solves my problem, but I am still wondering if a complete list,<br>
or the logic used should not be published somewhere...</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">The type <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7"><filetype></code> argument for <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">mate -t</code> is indeed the grammar’s root scope that you find by grepping the property lists.</p>

<p dir="auto">You can also find this value either in the bundle editor, select a language grammar and it is the “Grammar” field in the drawer, alternatively, if you open a file of the desired type, press ⌃⇧P and a tool tip shows with the full scope of the insertion point, the first line is the grammar’s root scope, and what to use for <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">mate -t</code>.</p>

<p dir="auto">There is no full list because it would depend on what bundles you have installed/created. But I guess it wouldn’t be bad if there was a way for <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">mate</code> to query the list of installed bundles. I’ve added a note about this, although the effort to implement this is probably not proportional with the benefit.</p>
</div>
</div>
</body>
</html>