You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using ConTeXt (a typesetter in the same vein as LaTeX) which generates .log and .tuc files. For some reason the .log files are public.plain-text (amongst others) and preview fine. The .tuc files however have a dynamic UTI (pasted below) and don't preview. This is annoying because /usr/bin/file identifies them as "tt.tuc: Unicode text, UTF-8 text" and previewing them as plain text would be perfectly fine.
So my request is: please can you add a /usr/bin/file check for an unknown type just in case it is plain text anyway?
Failing that, can you add the ability to specify any filetype and link to any UTI and I'll take the consequences of screwing it up? (The .tuc files actually contain Lua data structures so being able to Lua highlighting would be great.) Maybe hide under an 'advanced users' tab?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm using ConTeXt (a typesetter in the same vein as LaTeX) which generates .log and .tuc files. For some reason the .log files are public.plain-text (amongst others) and preview fine. The .tuc files however have a dynamic UTI (pasted below) and don't preview. This is annoying because /usr/bin/file identifies them as "tt.tuc: Unicode text, UTF-8 text" and previewing them as plain text would be perfectly fine.
So my request is: please can you add a /usr/bin/file check for an unknown type just in case it is plain text anyway?
Failing that, can you add the ability to specify any filetype and link to any UTI and I'll take the consequences of screwing it up? (The .tuc files actually contain Lua data structures so being able to Lua highlighting would be great.) Maybe hide under an 'advanced users' tab?
FWIW, .tuc shows as:
$ mdls -name kMDItemContentType -name kMDItemContentTypeTree tt.tuc
kMDItemContentType = "dyn.ah62d4rv4ge81k7pd"
kMDItemContentTypeTree = (
"public.item",
"dyn.ah62d4rv4ge81k7pd",
"public.data"
)
[Edited to add the note about Lua data structures and correct the UTI type of the .log files.]
All reactions