mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
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:
parent
9989edbe42
commit
007e9697c4
2 changed files with 19 additions and 0 deletions
6
setup.py
6
setup.py
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue