Skip to content

URLs with IPv6 addresses are not recognized #7565

@jonasmalacofilho

Description

@jonasmalacofilho

Describe the bug
An URL with an IPv6 address is not highlighted, marked or clickable, seemly because of the square brackets.

To Reproduce
Steps to reproduce the behavior:

  1. echo 'http://[::1]:8080'
  2. Check the highlight or try to open it

Screenshots
image

Environment details

kitty 0.35.1 created by Kovid Goyal
Linux calvin 6.9.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 19:06:37 +0000 x86_64
Arch Linux 6.9.5-arch1-1 (/dev/tty)

Running under: Wayland (GNOME Shell 46.2) missing: layer_shell
OpenGL: '3.1.0 NVIDIA 550.90.07' Detected version: 3.1
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/bash
Loaded config files:
  /home/jonas/.config/kitty/kitty.conf

Config options different from defaults:
disable_ligatures             1
draw_minimal_borders          False
dynamic_background_opacity    True
enable_audio_bell             False
enabled_layouts               ['fat:bias=55', 'tall:bias=75', 'tall:bias=50', 'vertical', 'horizontal', 'grid', 'stack']
font_family                   FiraCode Nerd Font
font_size                     10.1
initial_window_height         (55, 'cells')
initial_window_width          (110, 'cells')
placement_strategy            top-left
remember_window_size          False
repaint_delay                 8
scrollback_lines              10000
scrollback_pager_history_size 104857600
sync_to_monitor               False
wayland_enable_ime            False
wayland_titlebar_color        1
window_border_width           (2.0, 'px')
Added shortcuts:
	ctrl+shift+alt+n →  new_os_window
	kitty_mod+a > d →  no-op, set_background_opacity 1.0, set_background_opacity 0.9, set_background_opacity 0.8, set_background_opacity 0.7, set_background_opacity 0.6, set_background_opacity 0.5, set_background_opacity 0.4, set_background_opacity 0.3, set_background_opacity 0.2, set_background_opacity 0.1, set_background_opacity 1.0, set_background_opacity 0.8, set_background_opacity 0.6, set_background_opacity 0.0, set_background_opacity default
	kitty_mod+d > m →  no-op
	kitty_mod+i →  disable_ligatures_in active always
Removed shortcuts:
	kitty_mod+a > m →  set_background_opacity default, set_background_opacity 1, set_background_opacity -0.1, set_background_opacity +0.1
Changed shortcuts:
	kitty_mod+, →  no-op
	kitty_mod+- →  change_font_size current -1.7
	kitty_mod+. →  no-op
	kitty_mod+= →  change_font_size current +1.7
	kitty_mod+alt+t →  no-op
	kitty_mod+backspace →  change_font_size current 0
	kitty_mod+enter →  new_window_with_cwd
	kitty_mod+j →  next_window
	kitty_mod+k →  previous_window
	kitty_mod+kp_add →  change_font_size current +1.7
	kitty_mod+kp_subtract →  change_font_size current -1.7
	kitty_mod+left →  no-op
	kitty_mod+n →  new_os_window_with_cwd
	kitty_mod+o →  disable_ligatures_in active cursor
	kitty_mod+q →  no-op
	kitty_mod+right →  no-op
	kitty_mod+t →  no-op
	kitty_mod+w →  no-op
Colors:
	active_border_color           #7aa2f7   
	active_tab_background         #7aa2f7   
	active_tab_foreground         #1f2335   
	background                    #24283b   
	color0                        #1d202f   
	color1                        #f7768e   
	color10                       #9ece6a   
	color11                       #e0af68   
	color12                       #7aa2f7   
	color13                       #bb9af7   
	color14                       #7dcfff   
	color15                       #c0caf5   
	color16                       #ff9e64   
	color17                       #db4b4b   
	color2                        #9ece6a   
	color3                        #e0af68   
	color4                        #7aa2f7   
	color5                        #bb9af7   
	color6                        #7dcfff   
	color7                        #a9b1d6   
	color8                        #414868   
	color9                        #f7768e   
	cursor                        #c0caf5   
	cursor_text_color             #24283b   
	foreground                    #c0caf5   
	inactive_border_color         #292e42   
	inactive_tab_background       #292e42   
	inactive_tab_foreground       #545c7e   
	selection_background          #2e3c64   
	selection_foreground          #c0caf5   
	url_color                     #73daca   

Important environment variables seen by the kitty process:
	PATH                                /usr/local/bin:/usr/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin
	LANG                                en_US.UTF-8
	VISUAL                              nvim
	EDITOR                              nvim
	SHELL                               /bin/bash
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-0
	USER                                jonas
	LC_MEASUREMENT                      en_GB.UTF-8
	LC_PAPER                            en_GB.UTF-8
	LC_TIME                             en_AG.UTF-8
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_CURRENT_DESKTOP                 GNOME
	XDG_MENU_PREFIX                     gnome-
	XDG_SESSION_CLASS                   user
	XDG_SESSION_DESKTOP                 gnome
	XDG_SESSION_TYPE                    wayland

Additional context
Reproduces with kitty --config NONE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions