From 481c1d864ae00d49ac845fcd11df0e812722541f Mon Sep 17 00:00:00 2001 From: jgvanwyk Date: Mon, 29 Apr 2024 21:41:39 -0400 Subject: [PATCH 1/2] Fix incorrect exported UTI registrations Currently MacVim exports many UTIs for filetypes it doesn't own, and its UTI definitions for many of these filetypes are incorrect. This patch aims to correct these UTI registrations and close #1169. The following lists the UTIs that were changed and how. export org.vim.vim-script -> export org.vim.vim-script export org.vim.tex-file -> import org.tug.{tex,sty,cls} export public.plain-text -> import public.plain-text export public.c-header -> import public.c-header export org.vim.pch-file -> import public.precompiled-c-header export public.c-plus-plus-header -> import public.c-plus-plus-header export org.vim.pch++-file -> import public.precompiled-c-plus-plus-header export public.c-source -> import public.c-source export public.objective-c-source -> import public.objective-c-source export public.objective-c-plus-plus-source -> import public.objective-c-plus-plus-source export public.c-plus-plus-source -> import public.c-plus-plus-source export public.assembly-source -> import public.assembly-source export com.apple.rez-source -> import com.apple.rez-source export com.sun.java-source -> import com.sun.java-source export com.apple.xcode.lex-source -> import public.lex-source export com.apple.xcode.yacc-source -> import public.yacc-source export public.mig-source -> import public.mig-source export com.apple.symbol-export -> import com.apple.symbol-export export com.apple.xcode.fortran-source -> import public.fortran{,-77,-90,-95}-source export com.apple.xcode.pascal-source -> import public.pascal-source export public.html -> import public.html export public.xml -> import public.xml export com.netscape.javascript-source -> import com.netscape.javascript-source export public.python-script -> import public.python-script export public.perl-script -> import public.perl-script export public.php-script -> import public.php-script export public.ruby-script -> import public.ruby-script export public.shell-script -> import public.{shell,bash,zsh,csh,ksh,tcsh}-script export com.sun.java-class -> import com.sun.java-class export org.vim.patch-file -> import public.patch-file export com.apple.xcode.strings-text -> import com.apple.xcode.strings-text export com.apple.applescript.text -> import com.apple.applescript.text export org.vim.as-file -> import com.adobe.actionscript export org.vim.asp-file -> import com.microsoft.asp export org.vim.aspx-file -> import com.microsoft.aspx export org.vim.bib-file -> import org.tug.tex.bibtex export org.vim.cs-file -> import com.microsoft.c-sharp export org.vim.cfdg-file -> import org.contextfreeart.contextfree export org.vim.csv-file -> import public.comma-seperated-values-text export org.vim.tsv-file -> import public.tab-seperated-values-text export org.vim.cgi-file -> import org.vim.cgi-script export org.vim.cfg-file -> import org.vim.config-file export org.vim.css-file -> import org.w3.css export org.vim.dtd-file -> import org.w3.xml-dtd export org.vim.dylan-file -> import public.dylan-source export org.vim.erl-file -> org.erlang.erlang export org.vim.fscript-file -> org.fscript.fscript export org.vim.hs-file -> import org.haskell.haskell export org.vim.inc-file -> import org.vim.include-file export org.vim.ics-file -> import com.apple.ical.ics export org.vim.ini-file -> import com.microsoft.ini export org.vim.io-file -> import org.iolanguage.io export org.vim.bsh-file -> import org.beanshell.beanshell export org.vim.properties-file -> import com.sun.java-properties export org.vim.jsp-file -> import com.sun.java-server-pages export org.vim.lisp-file -> import org.vim.lisp-source export org.vim.log-file -> import com.apple.log export org.vim.wiki-file -> import org.mediawiki.wiki-source export org.vim.ps-file -> import com.adobe.postscript export org.vim.scm-file -> import org.vim.scheme-source export org.vim.sql-file -> import org.iso.sql export org.vim.tcl-file -> import tk.tcl.tcl export org.vim.xsl-file -> import org.w3.xsl export public.vcard -> import public.vcard export org.vim.vb-file -> import com.microsoft.visual-basic export org.vim.yaml-file -> import org.yaml.yaml export org.vim.gtd-file -> import org.vim.gtd export net.darlingfireball.markdown -> import net.darlingfireball.markdown export org.vim.rst-file -> import org.python.restructuredtext export org.vim.vba-file -> export org.vim.vimball-archive export org.vim.vhdl-file -> remove export org.lua.lua-source -> import org.lua.lua export org.vim.v-file -> import org.ieee.vhdl export org.vim.vh-file -> import org.ieee.vhdl-header --- src/MacVim/Info.plist | 630 +++++++++++++++++++++++++++--------------- 1 file changed, 403 insertions(+), 227 deletions(-) diff --git a/src/MacVim/Info.plist b/src/MacVim/Info.plist index e2928bd998..7f65f1ec1c 100644 --- a/src/MacVim/Info.plist +++ b/src/MacVim/Info.plist @@ -1329,6 +1329,11 @@ another way of supporting Quick Look without this. --> UTExportedTypeDeclarations + + + UTTypeConformsTo + + UTImportedTypeDeclarations UTTypeConformsTo @@ -1336,33 +1341,50 @@ public.plain-text UTTypeDescription - Vim Script File + TeX source UTTypeIdentifier - org.vim.vim-script + org.tug.tex UTTypeTagSpecification public.filename-extension - vim + tex - + UTTypeConformsTo + public.text public.plain-text UTTypeDescription - Plain Text File + LaTeX source UTTypeIdentifier - public.plain-text + org.tug.ltx UTTypeTagSpecification public.filename-extension - txt - text - utf8 + ltx + + + + + UTTypeConformsTo + + public.text + public.plain-text + + UTTypeDescription + ConTeXt source + UTTypeIdentifier + org.tug.ctx + UTTypeTagSpecification + + public.filename-extension + + ctx @@ -1372,19 +1394,14 @@ public.plain-text UTTypeDescription - TeX File + LaTeX package source UTTypeIdentifier - org.vim.tex-file + org.tug.sty UTTypeTagSpecification public.filename-extension - tex sty - cls - ltx - ins - dtx @@ -1394,7 +1411,44 @@ public.plain-text UTTypeDescription - C Header Source File + LaTeX document class source + UTTypeIdentifier + org.tug.cls + UTTypeTagSpecification + + public.filename-extension + + cls + + + + + UTTypeConformsTo + + public.text + + UTTypeDescription + Plain text document + UTTypeIdentifier + public.plain-text + UTTypeTagSpecification + + public.filename-extension + + text + txt + + public.mime-type + text/plain + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + C header UTTypeIdentifier public.c-header UTTypeTagSpecification @@ -1408,12 +1462,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - C Precompiled Header Source File + Precompiled C header UTTypeIdentifier - org.vim.pch-file + public.precompiled-c-header UTTypeTagSpecification public.filename-extension @@ -1425,10 +1479,10 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - C++ Header Source File + C++ header UTTypeIdentifier public.c-plus-plus-header UTTypeTagSpecification @@ -1436,7 +1490,6 @@ public.filename-extension hh - hp hpp hxx h++ @@ -1446,12 +1499,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - C++ Precompiled Header Source File + Precompiled C++ header UTTypeIdentifier - org.vim.pch++-file + public.precompiled-c-plus-plus-header UTTypeTagSpecification public.filename-extension @@ -1463,10 +1516,10 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - C Source File + C source UTTypeIdentifier public.c-source UTTypeTagSpecification @@ -1480,65 +1533,65 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Objective-C Source File + C++ source UTTypeIdentifier - public.objective-c-source + public.c-plus-plus-source UTTypeTagSpecification public.filename-extension - m + cc + cp + cpp + cxx + c++ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Objective-C++ Source File + Objective-C source UTTypeIdentifier - public.objective-c-plus-plus-source + public.objective-c-source UTTypeTagSpecification public.filename-extension - mm + m UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - C++ Source File + Objective-C++ source UTTypeIdentifier - public.c-plus-plus-source + public.objective-c-plus-plus-source UTTypeTagSpecification public.filename-extension - cc - cp - cpp - cxx - c++ + mm UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Assembly Source File + Assembly source UTTypeIdentifier public.assembly-source UTTypeTagSpecification @@ -1553,10 +1606,10 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Rez Source File + Rez source UTTypeIdentifier com.apple.rez-source UTTypeTagSpecification @@ -1570,10 +1623,10 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Java Source File + Java source UTTypeIdentifier com.sun.java-source UTTypeTagSpecification @@ -1588,12 +1641,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Lex Source File + Lex source UTTypeIdentifier - com.apple.xcode.lex-source + public.lex-source UTTypeTagSpecification public.filename-extension @@ -1603,6 +1656,7 @@ lmm lpp lxx + ll @@ -1612,9 +1666,9 @@ public.plain-text UTTypeDescription - Yacc Source File + Yacc source UTTypeIdentifier - com.apple.xcode.yacc-source + public.yacc-source UTTypeTagSpecification public.filename-extension @@ -1624,16 +1678,17 @@ ymm ypp yxx + yy UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Mig Definition File + Mach Interface Generator source UTTypeIdentifier public.mig-source UTTypeTagSpecification @@ -1641,6 +1696,7 @@ public.filename-extension defs + mig @@ -1650,7 +1706,7 @@ public.plain-text UTTypeDescription - Symbol Export File + Symbol Export UTTypeIdentifier com.apple.symbol-export UTTypeTagSpecification @@ -1664,21 +1720,68 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Fortran Source File + Fortran source UTTypeIdentifier - com.apple.xcode.fortran-source + public.fortran-source UTTypeTagSpecification public.filename-extension f for - fpp + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Fortran 77 source + UTTypeIdentifier + public.fortran-77-source + UTTypeTagSpecification + + public.filename-extension + f77 + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Fortran 90 source + UTTypeIdentifier + public.fortran-90-source + UTTypeTagSpecification + + public.filename-extension + f90 + + + + + UTTypeConformsTo + + public.source-code + + UTTypeDescription + Fortran 95 source + UTTypeIdentifier + public.fortran-95-source + UTTypeTagSpecification + + public.filename-extension + f95 @@ -1686,12 +1789,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Pascal Source file + Pascal source UTTypeIdentifier - com.apple.xcode.pascal-source + public.pascal-source UTTypeTagSpecification public.filename-extension @@ -1703,12 +1806,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Ada Source File + Ada source UTTypeIdentifier - com.apple.xcode.ada-source + public.ada-source UTTypeTagSpecification public.filename-extension @@ -1725,7 +1828,7 @@ public.plain-text UTTypeDescription - HTML Source File + HTML document UTTypeIdentifier public.html UTTypeTagSpecification @@ -1752,7 +1855,7 @@ public.plain-text UTTypeDescription - XML Source File + XML text UTTypeIdentifier public.xml UTTypeTagSpecification @@ -1760,21 +1863,17 @@ public.filename-extension xml - rss - tld - pt - cpt - dtml UTTypeConformsTo - public.plain-text + public.script + public.executable UTTypeDescription - JavaScript Source File + JavaScript UTTypeIdentifier com.netscape.javascript-source UTTypeTagSpecification @@ -1791,10 +1890,10 @@ UTTypeConformsTo - public.plain-text + public.shell-script UTTypeDescription - Perl Source File + Perl script UTTypeIdentifier public.perl-script UTTypeTagSpecification @@ -1806,15 +1905,17 @@ pod perl + public.mime-type + text/x-perl-script UTTypeConformsTo - public.plain-text + public.shell-script UTTypeDescription - Python Source File + Python script UTTypeIdentifier public.python-script UTTypeTagSpecification @@ -1822,19 +1923,18 @@ public.filename-extension py - rpy - cpy - python + public.mime-type + text/x-python-script UTTypeConformsTo - public.plain-text + public.shell-script UTTypeDescription - PHP Source File + PHP script UTTypeIdentifier public.php-script UTTypeTagSpecification @@ -1849,15 +1949,17 @@ ph4 phtml + public.mime-type + text/php, text/x-php-script, application/php UTTypeConformsTo - public.plain-text + public.shell-script UTTypeDescription - Ruby Source File + Ruby script UTTypeIdentifier public.ruby-script UTTypeTagSpecification @@ -1870,12 +1972,14 @@ rjs rxml + public.mime-type + text/x-ruby-script UTTypeConformsTo - public.plain-text + public.script UTTypeDescription Shell script @@ -1886,13 +1990,26 @@ public.filename-extension sh - csh - command - ss + + + + + UTTypeConformsTo + + public.shell-script + + UTTypeDescription + Bourne-Again Shell script + UTTypeIdentifier + public.bash-script + UTTypeTagSpecification + + public.filename-extension + + bash bashrc bash_profile bash_login - profile bash_logout @@ -1900,10 +2017,84 @@ UTTypeConformsTo - public.plain-text + public.shell-script UTTypeDescription - Java Class File + Z Shell script + UTTypeIdentifier + public.zsh-script + UTTypeTagSpecification + + public.filename-extension + + zsh + zshrc + zshenv + zprofile + zlogin + zlogout + + + + + UTTypeConformsTo + + public.shell-script + + UTTypeDescription + C Shell script + UTTypeIdentifier + public.csh-script + UTTypeTagSpecification + + public.filename-extension + + csh + + + + + UTTypeConformsTo + + public.shell-script + + UTTypeDescription + Korn Shell script + UTTypeIdentifier + public.ksh-script + UTTypeTagSpecification + + public.filename-extension + + ksh + + + + + UTTypeConformsTo + + public.shell-script + + UTTypeDescription + Tenex C Shell script + UTTypeIdentifier + public.tcsh-script + UTTypeTagSpecification + + public.filename-extension + + tcsh + + + + + UTTypeConformsTo + + public.data + public.executable + + UTTypeDescription + Java Class UTTypeIdentifier com.sun.java-class UTTypeTagSpecification @@ -1920,9 +2111,9 @@ public.plain-text UTTypeDescription - Patch File + Patch file UTTypeIdentifier - org.vim.patch-file + public.patch-file UTTypeTagSpecification public.filename-extension @@ -1935,10 +2126,10 @@ UTTypeConformsTo - public.plain-text + public.text UTTypeDescription - Strings File + Localizable Strings UTTypeIdentifier com.apple.xcode.strings-text UTTypeTagSpecification @@ -1952,10 +2143,10 @@ UTTypeConformsTo - public.plain-text + public.script UTTypeDescription - AppleScript Source File + AppleScript text UTTypeIdentifier com.apple.applescript.text UTTypeTagSpecification @@ -1969,29 +2160,31 @@ UTTypeConformsTo - public.plain-text + public.script UTTypeDescription - ActionScript Source File + ActionScript UTTypeIdentifier - org.vim.as-file + com.adobe.actionscript UTTypeTagSpecification public.filename-extension as + public.mime-type + application/ecmascript UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - ASP document + Active Server Pages document UTTypeIdentifier - org.vim.asp-file + com.microsoft.asp UTTypeTagSpecification public.filename-extension @@ -2004,12 +2197,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription ASP.NET document UTTypeIdentifier - org.vim.aspx-file + com.microsoft.aspx UTTypeTagSpecification public.filename-extension @@ -2024,12 +2217,12 @@ UTTypeConformsTo - public.plain-text + public.text UTTypeDescription - BibTeX bibliography + BibTeX database UTTypeIdentifier - org.vim.bib-file + org.tug.tex.bibtex UTTypeTagSpecification public.filename-extension @@ -2041,12 +2234,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - C# Source File + C# source UTTypeIdentifier - org.vim.cs-file + com.microsoft.c-sharp UTTypeTagSpecification public.filename-extension @@ -2058,12 +2251,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription Context Free Design Grammar UTTypeIdentifier - org.vim.cfdg-file + org.contextfreeart.contextfree UTTypeTagSpecification public.filename-extension @@ -2076,11 +2269,12 @@ UTTypeConformsTo public.plain-text + public.delimited-values-text UTTypeDescription - Comma separated values + Comma-seperated values UTTypeIdentifier - org.vim.csv-file + public.comma-seperated-values-text UTTypeTagSpecification public.filename-extension @@ -2093,11 +2287,12 @@ UTTypeConformsTo public.plain-text + public.delimited-values-text UTTypeDescription - Tab separated values + tab-seperated values UTTypeIdentifier - org.vim.tsv-file + public.tab-seperated-values-text UTTypeTagSpecification public.filename-extension @@ -2109,12 +2304,12 @@ UTTypeConformsTo - public.plain-text + public.script UTTypeDescription CGI script UTTypeIdentifier - org.vim.cgi-file + org.vim.cgi-script UTTypeTagSpecification public.filename-extension @@ -2127,12 +2322,12 @@ UTTypeConformsTo - public.plain-text + public.text UTTypeDescription Configuration file UTTypeIdentifier - org.vim.cfg-file + org.vim.config-file UTTypeTagSpecification public.filename-extension @@ -2147,12 +2342,12 @@ UTTypeConformsTo - public.plain-text + public.text UTTypeDescription - Cascading style sheet + Cascading Style Sheet UTTypeIdentifier - org.vim.css-file + org.w3.css UTTypeTagSpecification public.filename-extension @@ -2164,29 +2359,31 @@ UTTypeConformsTo - public.plain-text + public.text UTTypeDescription Document Type Definition UTTypeIdentifier - org.vim.dtd-file + org.w3.xml-dtd UTTypeTagSpecification public.filename-extension dtd + public.mime-type + application/xml-dtd UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Dylan Source File + Dylan Source UTTypeIdentifier - org.vim.dylan-file + public.dylan-source UTTypeTagSpecification public.filename-extension @@ -2198,12 +2395,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Erlang Source File + Erlang source UTTypeIdentifier - org.vim.erl-file + org.erlang.erlang UTTypeTagSpecification public.filename-extension @@ -2216,12 +2413,12 @@ UTTypeConformsTo - public.plain-text + public.script UTTypeDescription - F-Script Source File + F-Script UTTypeIdentifier - org.vim.fscript-file + org.fscript.fscript UTTypeTagSpecification public.filename-extension @@ -2233,12 +2430,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Haskell Source File + Haskell source UTTypeIdentifier - org.vim.hs-file + org.haskell.haskell UTTypeTagSpecification public.filename-extension @@ -2251,12 +2448,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription Include file UTTypeIdentifier - org.vim.inc-file + org.vim.include-file UTTypeTagSpecification public.filename-extension @@ -2273,24 +2470,26 @@ UTTypeDescription iCalendar schedule UTTypeIdentifier - org.vim.ics-file + com.apple.ical.ics UTTypeTagSpecification public.filename-extension ics + public.mime-type + text/calendar UTTypeConformsTo - public.plain-text + public.text UTTypeDescription MS Windows initialization file UTTypeIdentifier - org.vim.ini-file + com.microsoft.ini UTTypeTagSpecification public.filename-extension @@ -2302,12 +2501,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Io Source File + Io source UTTypeIdentifier - org.vim.io-file + org.iolanguage.io UTTypeTagSpecification public.filename-extension @@ -2319,12 +2518,12 @@ UTTypeConformsTo - public.plain-text + public.script UTTypeDescription BeanShell script UTTypeIdentifier - org.vim.bsh-file + org.beanshell.beanshell UTTypeTagSpecification public.filename-extension @@ -2336,12 +2535,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription Java properties file UTTypeIdentifier - org.vim.properties-file + com.sun.java-properties UTTypeTagSpecification public.filename-extension @@ -2353,12 +2552,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription Java Server Page UTTypeIdentifier - org.vim.jsp-file + com.sun.java-server-pages UTTypeTagSpecification public.filename-extension @@ -2370,12 +2569,12 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - LISP Source File + LISP source UTTypeIdentifier - org.vim.lisp-file + org.vim.lisp-source UTTypeTagSpecification public.filename-extension @@ -2393,11 +2592,12 @@ UTTypeConformsTo public.plain-text + public.log UTTypeDescription Log file UTTypeIdentifier - org.vim.log-file + com.apple.log UTTypeTagSpecification public.filename-extension @@ -2409,12 +2609,12 @@ UTTypeConformsTo - public.plain-text + public.text UTTypeDescription Mediawiki document UTTypeIdentifier - org.vim.wiki-file + org.mediawiki.wiki-source UTTypeTagSpecification public.filename-extension @@ -2428,10 +2628,10 @@ UTTypeConformsTo - public.plain-text + public.data UTTypeDescription - PostScript Source File + PostScript UTTypeIdentifier com.adobe.postscript UTTypeTagSpecification @@ -2441,17 +2641,19 @@ ps eps + public.mime-type + application/postscript UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Scheme Source File + Scheme source UTTypeIdentifier - org.vim.scm-file + org.vim.scheme-source UTTypeTagSpecification public.filename-extension @@ -2464,46 +2666,50 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - SQL Source File + SQL source UTTypeIdentifier - org.vim.sql-file + org.iso.sql UTTypeTagSpecification public.filename-extension sql + public.mime-type + application/sql UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Tcl Source File + Tcl source UTTypeIdentifier - org.vim.tcl-file + tk.tcl.tcl UTTypeTagSpecification public.filename-extension tcl + public.mime-type + application/x-tcl UTTypeConformsTo - public.plain-text + public.xml UTTypeDescription XSL stylesheet UTTypeIdentifier - org.vim.xsl-file + org.w3.xsl UTTypeTagSpecification public.filename-extension @@ -2516,7 +2722,8 @@ UTTypeConformsTo - public.plain-text + public.text + public.contact UTTypeDescription Electronic business card @@ -2529,17 +2736,19 @@ vcf vcard + public.mime-type + text/directory, text/vcard, text/x-vcard UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Visual Basic Source File + Visual Basic source UTTypeIdentifier - org.vim.vb-file + com.microsoft.visual-basic UTTypeTagSpecification public.filename-extension @@ -2551,12 +2760,12 @@ UTTypeConformsTo - public.plain-text + public.text UTTypeDescription YAML document UTTypeIdentifier - org.vim.yaml-file + org.yaml.yaml UTTypeTagSpecification public.filename-extension @@ -2574,7 +2783,7 @@ UTTypeDescription GTD document UTTypeIdentifier - org.vim.gtd-file + org.vim.gtd UTTypeTagSpecification public.filename-extension @@ -2612,7 +2821,7 @@ UTTypeDescription reStructuredText document UTTypeIdentifier - org.vim.rst-file + org.python.restructuredtext UTTypeTagSpecification public.filename-extension @@ -2624,47 +2833,12 @@ UTTypeConformsTo - public.plain-text - - UTTypeDescription - Vimball Archive - UTTypeIdentifier - org.vim.vba-file - UTTypeTagSpecification - - public.filename-extension - - vba - - - - - UTTypeConformsTo - - public.plain-text - - UTTypeDescription - VHDL Source File - UTTypeIdentifier - org.vim.vhdl-file - UTTypeTagSpecification - - public.filename-extension - - vhdl - vhd - - - - - UTTypeConformsTo - - public.plain-text + public.source-code UTTypeDescription - Lua Source File + Lua source UTTypeIdentifier - org.lua.lua-source + org.lua.lua UTTypeTagSpecification public.filename-extension @@ -2676,29 +2850,31 @@ UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Verilog HDL Source File + Verilog HDL source UTTypeIdentifier - org.vim.v-file + org.ieee.vhdl UTTypeTagSpecification public.filename-extension v + vhdl + vhd UTTypeConformsTo - public.plain-text + public.source-code UTTypeDescription - Verilog HDL Header Source File + Verilog HDL header UTTypeIdentifier - org.vim.vh-file + org.ieee.vhdl-header UTTypeTagSpecification public.filename-extension From db337e0cad5e26bdf5a17a21cdd14fb680669a37 Mon Sep 17 00:00:00 2001 From: jgvanwyk Date: Mon, 29 Apr 2024 21:43:26 -0400 Subject: [PATCH 2/2] Update Info.plist CFBundleDocumentTypes to use LSItemContentTypes This removes the use of CFBundleTypeExtensions, which is deprecated. --- src/MacVim/Info.plist | 954 +++++++++++++++++++----------------------- 1 file changed, 421 insertions(+), 533 deletions(-) diff --git a/src/MacVim/Info.plist b/src/MacVim/Info.plist index 7f65f1ec1c..94da2d7cc5 100644 --- a/src/MacVim/Info.plist +++ b/src/MacVim/Info.plist @@ -4,7 +4,6 @@ CFBundleDevelopmentRegion English - + CFBundleTypeName - Scheme Source File - CFBundleTypeExtensions - - scm - sch - + org.vim.scheme-source CFBundleTypeIconFile MacVim-sch CFBundleTypeRole Editor + LSItemContentTypes + + org.vim.scheme-source + CFBundleTypeName - SQL Source File - CFBundleTypeExtensions - - sql - + org.iso.sql CFBundleTypeIconFile MacVim-sql CFBundleTypeRole Editor + LSItemContentTypes + + org.iso.sql + CFBundleTypeName - Tcl Source File - CFBundleTypeExtensions - - tcl - + tk.tcl.tcl CFBundleTypeIconFile MacVim-tcl CFBundleTypeRole Editor + LSItemContentTypes + + tk.tcl.tcl + CFBundleTypeName - XSL stylesheet - CFBundleTypeExtensions - - xsl - xslt - + org.w3.xsl CFBundleTypeIconFile MacVim-xsl CFBundleTypeRole Editor - - CFBundleTypeName - Electronic business card - CFBundleTypeExtensions + LSItemContentTypes - vcf - vcard + org.w3.xsl + + CFBundleTypeName + public.vcard CFBundleTypeIconFile MacVim-vcf CFBundleTypeRole Editor + LSItemContentTypes + + public.vcard + CFBundleTypeName - Visual Basic Source File - CFBundleTypeExtensions - - vb - + com.microsoft.visual-basic CFBundleTypeIconFile MacVim-vb CFBundleTypeRole Editor + LSItemContentTypes + + com.microsoft.visual-basic + CFBundleTypeName - YAML document - CFBundleTypeExtensions - - yaml - yml - + org.yaml.yaml CFBundleTypeIconFile MacVim-yaml CFBundleTypeRole Editor + LSItemContentTypes + + org.yaml.yaml + CFBundleTypeName - GTD document - CFBundleTypeExtensions - - gtd - gtdlog - + org.vim.gtd CFBundleTypeIconFile MacVim-gtd CFBundleTypeRole Editor + LSItemContentTypes + + org.vim.gtd + CFBundleTypeName - Markdown document - CFBundleTypeExtensions - - markdown - markd - mdown - md - + net.darlingfireball.markdown CFBundleTypeIconFile MacVim-markdown CFBundleTypeRole Editor + LSItemContentTypes + + net.darlingfireball.markdown + CFBundleTypeName - reStructuredText document - CFBundleTypeExtensions - - rst - + org.python.restructuredtext CFBundleTypeIconFile MacVim-rst CFBundleTypeRole Editor + LSItemContentTypes + + org.python.restructuredtext + CFBundleTypeName - Vimball Archive - CFBundleTypeExtensions - - vba - + org.vim.vimball-archive CFBundleTypeIconFile MacVim-vba CFBundleTypeRole Editor - - - CFBundleTypeName - VHDL Source File - CFBundleTypeExtensions + LSItemContentTypes - vhd - vhdl + org.vim.vimball-archive - CFBundleTypeIconFile - MacVim-generic - CFBundleTypeRole - Editor CFBundleTypeName - Lua Source File - CFBundleTypeExtensions - - lua - + org.ieee.vhdl CFBundleTypeIconFile MacVim-generic - CFBundleTypeMIMETypes - - text/x-lua-script - CFBundleTypeRole Editor + LSItemContentTypes + + org.ieee.vhdl + CFBundleTypeName - Verilog HDL Source File - CFBundleTypeExtensions - - v - + org.lua.lua CFBundleTypeIconFile MacVim-generic CFBundleTypeRole Editor + LSItemContentTypes + + org.lua.lua + CFBundleTypeName - Verilog HDL Header Source File - CFBundleTypeExtensions - - vh - + org.ieee.vhdl-header CFBundleTypeIconFile MacVim-generic CFBundleTypeRole Editor + LSItemContentTypes + + org.ieee.vhdl-header + @@ -1333,6 +1189,38 @@ UTTypeConformsTo + public.script + + UTTypeDescription + Vim script + UTTypeIdentifier + org.vim.vim-script + UTTypeTagSpecification + + public.filename-extension + + vim + + + + + UTTypeConformsTo + + public.archive + + UTTypeDescription + Vimball archive + UTTypeIdentifier + org.vim.vimball-archive + UTTypeTagSpecification + + public.filename-extension + + vba + + + + UTImportedTypeDeclarations