Restrict custom launch actions to be prefixed with kitty:///launch/
Preserve the kitty URL scheme for further use.
This commit is contained in:
parent
ffbc533565
commit
ddb9b67de3
1 changed files with 3 additions and 0 deletions
|
|
@ -259,6 +259,9 @@ def actions_for_url(url: str, actions_spec: Optional[str] = None) -> Iterator[Ke
|
|||
|
||||
|
||||
def actions_for_launch(url: str) -> Iterator[KeyAction]:
|
||||
# Custom launch actions using kitty URL scheme needs to be prefixed with `kitty:///launch/`
|
||||
if url.startswith('kitty://') and not url.startswith('kitty:///launch/'):
|
||||
return
|
||||
found = False
|
||||
for action in actions_for_url_from_list(url, load_launch_actions()):
|
||||
found = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue