Fix #6213
This commit is contained in:
parent
c2fc4eadc8
commit
bb33c66570
@ -90,7 +90,8 @@ for the operating system. Various special values are supported:
|
|||||||
copy the match to the specified buffer, e.g. :code:`@a`
|
copy the match to the specified buffer, e.g. :code:`@a`
|
||||||
|
|
||||||
:code:`default`
|
:code:`default`
|
||||||
run the default open program.
|
run the default open program. Note that when using the hyperlink :code:`--type`
|
||||||
|
the default is to use the kitty :doc:`/open_actions` facilities.
|
||||||
|
|
||||||
:code:`launch`
|
:code:`launch`
|
||||||
run :doc:`/launch` to open the program in a new kitty tab, window, overlay, etc.
|
run :doc:`/launch` to open the program in a new kitty tab, window, overlay, etc.
|
||||||
@ -349,8 +350,9 @@ def handle_result(args: List[str], data: Dict[str, Any], target_window_id: int,
|
|||||||
else:
|
else:
|
||||||
from kitty.conf.utils import to_cmdline
|
from kitty.conf.utils import to_cmdline
|
||||||
cwd = data['cwd']
|
cwd = data['cwd']
|
||||||
program = get_options().open_url_with if program == 'default' else program
|
is_default_program = program == 'default'
|
||||||
if text_type == 'hyperlink':
|
program = get_options().open_url_with if is_default_program else program
|
||||||
|
if text_type == 'hyperlink' and is_default_program:
|
||||||
w = boss.window_id_map.get(target_window_id)
|
w = boss.window_id_map.get(target_window_id)
|
||||||
for m in matches:
|
for m in matches:
|
||||||
if w is not None:
|
if w is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user