Merge branch 'feat-macos-open-with' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2022-01-07 17:11:42 +05:30
commit cbb2597667
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -999,13 +999,35 @@ def macos_info_plist() -> bytes:
},
{
'CFBundleTypeName': 'Folders',
'CFBundleTypeOSTypes': ['fold'],
'LSItemContentTypes': ['public.directory'],
'CFBundleTypeRole': 'Editor',
'LSHandlerRank': 'Alternate',
},
{
'LSItemContentTypes': ['public.unix-executable'],
'CFBundleTypeRole': 'Shell',
},
{
'CFBundleTypeName': 'Text files',
'LSItemContentTypes': ['public.text'],
'LSTypeIsPackage': False,
'CFBundleTypeRole': 'Editor',
'LSHandlerRank': 'Alternate',
},
{
'CFBundleTypeName': 'Image files',
'LSItemContentTypes': ['public.image'],
'LSTypeIsPackage': False,
'CFBundleTypeRole': 'Viewer',
'LSHandlerRank': 'Alternate',
},
# Allows dragging arbitrary files to kitty, but does not include kitty in the open with list.
{
'CFBundleTypeName': 'All files',
'LSItemContentTypes': ['public.content', 'public.data'],
'CFBundleTypeRole': 'None',
'LSHandlerRank': 'None',
},
]
pl = dict(