From 91df91d4a92cb47591a3458b5f28de0a797c388b Mon Sep 17 00:00:00 2001
From: django <98992931+oxngon@users.noreply.github.com>
Date: Sat, 17 Oct 2026 06:46:56 +0000
Subject: [PATCH] Register missing document types for modern dev formats and
dotfiles
Adds two CFBundleDocumentTypes entries to src/MacVim/Info.plist so MacVim is
offered in Finder's "Open With" menu for:
- public.data (LSHandlerRank = Alternate): dotfiles and extensionless files
such as .zshrc, .env, .gitignore and Dockerfile. Verified with mdls that
Launch Services types these files as public.data.
- public.json and public.yaml, plus CFBundleTypeExtensions for toml, ts, tsx,
jsx, mjs, cjs, astro, svelte, graphql, gql, vue, go and rs.
Both entries use LSHandlerRank = Alternate, so MacVim appears in the Open With
menu without ever being made the default handler or taking over icons or file
associations.
No change to UTExportedTypeDeclarations: this only adds claims, it does not
touch the exported-type registrations discussed in #916 / #1169.
The diff is a pure append; existing formatting and the "when adding support for
a new file type" comment at the top of the plist are untouched.
Refs #1704
AI assistance was used to prepare this patch. The result was validated by
parsing the plist and confirming that CFBundleDocumentTypes is the only key
that changed.
Assisted-by: AI assistant
---
src/MacVim/Info.plist | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/src/MacVim/Info.plist b/src/MacVim/Info.plist
index 0d28c56d82..f5502ae654 100644
--- a/src/MacVim/Info.plist
+++ b/src/MacVim/Info.plist
@@ -16,6 +16,47 @@
-->
CFBundleDocumentTypes
+
+ CFBundleTypeExtensions
+
+ toml
+ ts
+ tsx
+ jsx
+ mjs
+ cjs
+ astro
+ svelte
+ graphql
+ gql
+ vue
+ go
+ rs
+
+ CFBundleTypeName
+ Developer source and configuration file
+ CFBundleTypeRole
+ Editor
+ LSHandlerRank
+ Alternate
+ LSItemContentTypes
+
+ public.json
+ public.yaml
+
+
+
+ CFBundleTypeName
+ All Files (dotfiles and extensionless files)
+ CFBundleTypeRole
+ Editor
+ LSHandlerRank
+ Alternate
+ LSItemContentTypes
+
+ public.data
+
+
CFBundleTypeExtensions