macOS: Add Open with kitty Service

There are still some file types that cannot be matched.
Add a standalone Open With service.
Users can configure shortcut for this service in System Preferences.
This commit is contained in:
pagedown
2022-02-05 23:20:19 +08:00
parent 9989edbe42
commit 007e9697c4
2 changed files with 19 additions and 0 deletions

View File

@@ -1090,6 +1090,12 @@ def macos_info_plist() -> bytes:
'NSRequiredContext': {'NSTextContent': 'FilePath'},
'NSSendTypes': ['NSFilenamesPboardType', 'public.plain-text'],
},
{
'NSMenuItem': {'default': f'Open with {appname}'},
'NSMessage': 'openFileURLs',
'NSRequiredContext': {'NSTextContent': 'FilePath'},
'NSSendTypes': ['NSFilenamesPboardType', 'public.plain-text'],
},
]
pl = dict(