From aab81c2d32895950d46a62d34cba86c6eac11a15 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Jan 2023 15:30:43 +0530 Subject: [PATCH] Turn off hyperlink target display by default I find it too intrusive for limited benefit. Most the hyperlinks I click come from trusted programs anyway. --- docs/changelog.rst | 2 +- kitty/options/definition.py | 2 +- kitty/options/types.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 22129c406..286d1ffb3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -47,7 +47,7 @@ Detailed list of changes - Speed up the ``kitty @`` executable by ~10x reducing the time for typical remote control commands from ~50ms to ~5ms -- Show the target of terminal hyperlinks when hovering over them with the mouse controlled by :opt:`show_hyperlink_targets` (:pull:`5830`) +- Option :opt:`show_hyperlink_targets` to show the target of terminal hyperlinks when hovering over them with the mouse (:pull:`5830`) - Keyboard protocol: Remove ``CSI R`` from the allowed encodings of the :kbd:`F3` key as it conflicts with the *Cursor Position Report* escape code (:disc:`5813`) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 783e8dedc..f4e651b51 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -432,7 +432,7 @@ mouse cursor. By default, all characters that are legal in URLs are allowed. ''' ) -opt('show_hyperlink_targets', 'yes', option_type='to_bool', ctype='bool', long_text=''' +opt('show_hyperlink_targets', 'no', option_type='to_bool', ctype='bool', long_text=''' When the mouse hovers over a terminal hyperlink, show the actual URL that will be activated when the hyperlink is clicked.''') diff --git a/kitty/options/types.py b/kitty/options/types.py index 3629ddceb..f743582fd 100644 --- a/kitty/options/types.py +++ b/kitty/options/types.py @@ -569,7 +569,7 @@ class Options: selection_foreground: typing.Optional[kitty.fast_data_types.Color] = Color(0, 0, 0) shell: str = '.' shell_integration: typing.FrozenSet[str] = frozenset({'enabled'}) - show_hyperlink_targets: bool = True + show_hyperlink_targets: bool = False single_window_margin_width: FloatEdges = FloatEdges(left=-1.0, top=-1.0, right=-1.0, bottom=-1.0) startup_session: typing.Optional[str] = None strip_trailing_spaces: choices_for_strip_trailing_spaces = 'never'