Skip to content

Can not map alt+[character] to new_tab #3515

Closed
@sandangel

Description

@sandangel

Describe the bug
This is a regression. I have

map alt+w           new_tab

in my config. After upgrading to 0.20.1, it's not working anymore. It works with kitty_mod though

To Reproduce
Steps to reproduce the behavior:
put this in your config, restart kitty and try to press alt+w to see if it creates a new tab or not

map alt+w           new_tab

Expected behavior
New tab should be created with the mappings defined

Environment details
OS: Name and version of operating system(s)
MacOS 11.2.3

Debug Config
λ kitty --debug-config
kitty 0.20.1 created by Kovid Goyal
Darwin P81289 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
ProductName:	macOS ProductVersion:	11.2.3 BuildVersion:	20D91
Loaded config files: /Users/ts-san.nguyen/.config/kitty/kitty.conf

Config options different from defaults:
active_border_color                Color(red=255, green=105, blue=0)
active_tab_background              Color(red=91, green=102, blue=115)
active_tab_font_style              (False, False)
active_tab_foreground              Color(red=250, green=250, blue=250)
adjust_line_height                 1.1
allow_remote_control               y
background                         Color(red=250, green=250, blue=250)
bell_border_color                  Color(red=239, green=124, blue=42)
bold_font                          ComicCodeLigatures Nerd Font Mono Medium
bold_italic_font                   ComicCodeLigatures Nerd Font Mono Medium Italic
color0                             Color(red=251, green=241, blue=199)
color1                             Color(red=255, green=51, blue=51)
color10                            Color(red=184, green=229, blue=50)
color11                            Color(red=255, green=200, blue=73)
color12                            Color(red=115, green=215, blue=255)
color13                            Color(red=255, green=163, blue=170)
color14                            Color(red=127, green=240, blue=203)
color15                            Color(red=146, green=131, blue=116)
color2                             Color(red=134, green=178, blue=0)
color3                             Color(red=241, green=150, blue=24)
color4                             Color(red=65, green=166, blue=217)
color5                             Color(red=240, green=112, blue=120)
color6                             Color(red=76, green=190, blue=153)
color7                             Color(red=124, green=111, blue=100)
color8                             Color(red=40, green=40, blue=40)
color9                             Color(red=255, green=101, blue=101)
copy_on_select                     clipboard
cursor                             Color(red=255, green=105, blue=0)
cursor_blink_interval              0.0
cursor_text_color                  Color(red=255, green=255, blue=255)
enable_audio_bell                  False
enabled_layouts                    ['fat:bias=70', 'stack', 'splits']
font_family                        ComicCodeLigatures Nerd Font Mono Regular
font_size                          14.0
foreground                         Color(red=91, green=102, blue=115)
hide_window_decorations            1
inactive_border_color              Color(red=240, green=240, blue=240)
inactive_tab_background            Color(red=250, green=250, blue=250)
inactive_tab_foreground            Color(red=91, green=102, blue=115)
italic_font                        ComicCodeLigatures Nerd Font Mono Italic
listen_on                          unix:/tmp/mykitty
macos_custom_beam_cursor           True
macos_option_as_alt                3
macos_quit_when_last_window_closed True
macos_thicken_font                 0.5
mouse_hide_wait                    3.0
scrollback_lines                   10000
select_by_word_characters          :@-./_~?&=%+#
selection_foreground               Color(red=33, green=33, blue=33)
strip_trailing_spaces              always
sync_to_monitor                    False
tab_bar_min_tabs                   1
tab_bar_style                      separator
tab_separator                         |
tab_title_template                 {index}: {layout_name} - {num_windows}
touch_scroll_multiplier            3.0
url_color                          Color(red=79, green=180, blue=216)
url_prefixes                       ('http', 'https', 'file', 'ftp')
window_border_width                (0.3, 'pt')
window_padding_width               FloatEdges(left=5.0, top=0, right=5.0, bottom=0)
Added shortcuts:
	shift+left KeyAction(func='move_window', args=['left'])
	shift+right KeyAction(func='move_window', args=['right'])
	shift+up KeyAction(func='move_window', args=['top'])
	shift+down KeyAction(func='move_window', args=['bottom'])
	alt+- KeyAction(func='combine', args=(KeyAction(func='goto_layout', args=['splits']), KeyAction(func='launch', args=['--location=hsplit', '--cwd=current'])))
	alt+0 KeyAction(func='goto_tab', args=(0,))
	alt+1 KeyAction(func='goto_tab', args=(1,))
	alt+2 KeyAction(func='goto_tab', args=(2,))
	alt+3 KeyAction(func='goto_tab', args=(3,))
	alt+4 KeyAction(func='goto_tab', args=(4,))
	alt+5 KeyAction(func='goto_tab', args=(5,))
	alt+6 KeyAction(func='goto_tab', args=(6,))
	alt+7 KeyAction(func='goto_tab', args=(7,))
	alt+8 KeyAction(func='goto_tab', args=(8,))
	alt+9 KeyAction(func='goto_tab', args=(9,))
	alt+= KeyAction(func='combine', args=(KeyAction(func='goto_layout', args=['splits']), KeyAction(func='launch', args=['--location=vsplit', '--cwd=current'])))
	alt+a KeyAction(func='next_layout', args=())
	alt+d KeyAction(func='detach_window', args=('new-tab',))
	alt+t KeyAction(func='kitten', args=['toggle_term.py'])
	alt+w KeyAction(func='new_tab', args=['!neighbor'])
	alt+z KeyAction(func='kitten', args=['toggle_zoom.py'])
	alt+left KeyAction(func='send_text', args=['all', b'\x1bb'])
	alt+right KeyAction(func='send_text', args=['all', b'\x1bf'])
	ctrl+h KeyAction(func='kitten', args=['pass_keys.py', 'neighboring_window left   ctrl+h'])
	ctrl+j KeyAction(func='kitten', args=['pass_keys.py', 'neighboring_window bottom ctrl+j'])
	ctrl+k KeyAction(func='kitten', args=['pass_keys.py', 'neighboring_window top    ctrl+k'])
	ctrl+l KeyAction(func='kitten', args=['pass_keys.py', 'neighboring_window right  ctrl+l'])
	ctrl+backspace KeyAction(func='send_text', args=['all', b'\x1b\x7f'])
Removed shortcuts:
	shift+insert KeyAction(func='paste_from_selection', args=())
	ctrl+tab KeyAction(func='next_tab', args=())
	shift+ctrl++ KeyAction(func='change_font_size', args=(True, '+', 2.0))
	shift+ctrl+, KeyAction(func='move_tab_backward', args=())
	shift+ctrl+. KeyAction(func='move_tab_forward', args=())
	shift+ctrl+1 KeyAction(func='first_window', args=())
	shift+ctrl+2 KeyAction(func='second_window', args=())
	shift+ctrl+3 KeyAction(func='third_window', args=())
	shift+ctrl+4 KeyAction(func='fourth_window', args=())
	shift+ctrl+5 KeyAction(func='fifth_window', args=())
	shift+ctrl+6 KeyAction(func='sixth_window', args=())
	shift+ctrl+7 KeyAction(func='seventh_window', args=())
	shift+ctrl+8 KeyAction(func='eighth_window', args=())
	shift+ctrl+9 KeyAction(func='ninth_window', args=())
	shift+ctrl+[ KeyAction(func='previous_window', args=())
	shift+ctrl+] KeyAction(func='next_window', args=())
	shift+ctrl+` KeyAction(func='move_window_to_top', args=())
	shift+ctrl+a > 1 KeyAction(func='set_background_opacity', args=['1'])
	shift+ctrl+a > d KeyAction(func='set_background_opacity', args=['default'])
	shift+ctrl+a > l KeyAction(func='set_background_opacity', args=['-0.1'])
	shift+ctrl+a > m KeyAction(func='set_background_opacity', args=['+0.1'])
	shift+ctrl+b KeyAction(func='move_window_backward', args=())
	shift+ctrl+c KeyAction(func='copy_to_clipboard', args=())
	shift+ctrl+f KeyAction(func='move_window_forward', args=())
	shift+ctrl+h KeyAction(func='show_scrollback', args=())
	shift+ctrl+j KeyAction(func='scroll_line_down', args=())
	shift+ctrl+k KeyAction(func='scroll_line_up', args=())
	shift+ctrl+n KeyAction(func='new_os_window', args=())
	shift+ctrl+o KeyAction(func='pass_selection_to_program', args=())
	shift+ctrl+p > y KeyAction(func='kitten', args=['hints', '--type hyperlink'])
	shift+ctrl+q KeyAction(func='close_tab', args=())
	shift+ctrl+r KeyAction(func='start_resizing_window', args=())
	shift+ctrl+s KeyAction(func='paste_from_selection', args=())
	shift+ctrl+t KeyAction(func='new_tab', args=())
	shift+ctrl+u KeyAction(func='kitten', args=['unicode_input'])
	shift+ctrl+v KeyAction(func='paste_from_clipboard', args=())
	shift+ctrl+w KeyAction(func='close_window', args=())
	shift+ctrl+escape KeyAction(func='kitty_shell', args=['window'])
	shift+ctrl+tab KeyAction(func='previous_tab', args=())
	shift+ctrl+backspace KeyAction(func='change_font_size', args=(True, None, 0.0))
	shift+ctrl+delete KeyAction(func='clear_terminal', args=['reset', True])
	shift+ctrl+f2 KeyAction(func='edit_config_file', args=())
	shift+ctrl+f10 KeyAction(func='toggle_maximized', args=())
	shift+ctrl+f11 KeyAction(func='toggle_fullscreen', args=())
	shift+ctrl+kp_subtract KeyAction(func='change_font_size', args=(True, '-', 2.0))
	shift+ctrl+kp_add KeyAction(func='change_font_size', args=(True, '+', 2.0))
	shift+alt+ctrl+t KeyAction(func='set_tab_title', args=())
	cmd++ KeyAction(func='change_font_size', args=(True, '+', 2.0))
	cmd+, KeyAction(func='edit_config_file', args=())
	cmd+- KeyAction(func='change_font_size', args=(True, '-', 2.0))
	cmd+0 KeyAction(func='change_font_size', args=(True, None, 0.0))
	cmd+1 KeyAction(func='first_window', args=())
	cmd+2 KeyAction(func='second_window', args=())
	cmd+3 KeyAction(func='third_window', args=())
	cmd+4 KeyAction(func='fourth_window', args=())
	cmd+5 KeyAction(func='fifth_window', args=())
	cmd+6 KeyAction(func='sixth_window', args=())
	cmd+7 KeyAction(func='seventh_window', args=())
	cmd+8 KeyAction(func='eighth_window', args=())
	cmd+9 KeyAction(func='ninth_window', args=())
	cmd+= KeyAction(func='change_font_size', args=(True, '+', 2.0))
	cmd+n KeyAction(func='new_os_window', args=())
	cmd+r KeyAction(func='start_resizing_window', args=())
	cmd+t KeyAction(func='new_tab', args=())
	cmd+w KeyAction(func='close_tab', args=())
	cmd+enter KeyAction(func='new_window', args=())
	cmd+up KeyAction(func='scroll_line_up', args=())
	cmd+down KeyAction(func='scroll_line_down', args=())
	cmd+page_up KeyAction(func='scroll_page_up', args=())
	cmd+page_down KeyAction(func='scroll_page_down', args=())
	cmd+home KeyAction(func='scroll_home', args=())
	cmd+end KeyAction(func='scroll_end', args=())
	shift+cmd+- KeyAction(func='change_font_size', args=(True, '-', 2.0))
	shift+cmd+= KeyAction(func='change_font_size', args=(True, '+', 2.0))
	shift+cmd+[ KeyAction(func='previous_tab', args=())
	shift+cmd+] KeyAction(func='next_tab', args=())
	shift+cmd+d KeyAction(func='close_window', args=())
	shift+cmd+i KeyAction(func='set_tab_title', args=())
	shift+cmd+w KeyAction(func='close_os_window', args=())
	alt+cmd+page_up KeyAction(func='scroll_line_up', args=())
	alt+cmd+page_down KeyAction(func='scroll_line_down', args=())
	ctrl+cmd+  KeyAction(func='kitten', args=['unicode_input'])
Changed shortcuts:
	shift+ctrl+0 KeyAction(func='change_font_size', args=(True, None, 0.0))
	shift+ctrl+l KeyAction(func='clear_terminal', args=['reset', True])
	shift+ctrl+enter KeyAction(func='launch', args=['--cwd=current'])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions