Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom keyboard mappings stopped working after upgrade to v0.32 #7018

Closed
oaleynik opened this issue Jan 19, 2024 · 2 comments
Closed

Custom keyboard mappings stopped working after upgrade to v0.32 #7018

oaleynik opened this issue Jan 19, 2024 · 2 comments
Labels

Comments

@oaleynik
Copy link

Hi there, I upgraded to version 0.32 and noticed that my custom keyboard mappings are no longer working. I'm wondering if this has anything to do with the new modal modes. Also, I'm not sure what the new way of mapping something like map ctrl+a>\ launch --location=hsplit --cwd=current --copy-env would be. Any help would be greatly appreciated!

Additionally, I tried pressing kitty_cmd+F6 to copy debug information, but afterwards, I couldn't enter any keys in the terminal anymore. I could still scroll and focus on different windows using my mouse, but the terminal didn't react to my keypresses.

map ctrl+a>- launch --location=hsplit --cwd=current --copy-env
map ctrl+a>\ launch --location=vsplit --cwd=current --copy-env
map ctrl+a>w focus_visible_window
map shift+up move_window up
map shift+right move_window right
map shift+left move_window left
map shift+down move_window down
map ctrl+shift+up layout_action move_to_screen_edge top
map ctrl+shift+right layout_action move_to_screen_edge right
map ctrl+shift+left layout_action move_to_screen_edge left
map ctrl+shift+down layout_action move_to_screen_edge bottom
map cmd+k neighboring_window up
map cmd+l neighboring_window right
map cmd+h neighboring_window left
map cmd+j neighboring_window down
map cmd+] next_tab
map cmd+[ previous_tab
map ctrl+a>; nth_window -1
map ctrl+a>z toggle_layout stack
map ctrl+a>b detach_window ask
map kitty_mod+enter launch --cwd=current --copy-env
map cmd+enter launch --cwd=current --copy-env

Environment details

kitty 0.32.0 (eb5dd364ae) created by Kovid Goyal
Darwin ***** 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
ProductName:		macOS ProductVersion:		14.2.1 BuildVersion:		23C71
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /Users/*******/.config/kitty/kitty.conf

Config options different from defaults:
active_tab_title_template {fmt.fg._c10c4a8}{fmt.bold}{layout_name}{fmt.nobold}{fmt.fg.tab} {title[:52]}
cursor_blink_interval     0.0
enabled_layouts           ['splits', 'stack', 'grid', 'horizontal', 'vertical', 'fat', 'tall']
font_family               Berkeley Mono
font_size                 13.0
inactive_text_alpha       0.8
macos_colorspace          displayp3
scrollback_lines          50000
shell_integration         frozenset({'no-cursor'})
tab_bar_edge              1
tab_bar_min_tabs          1
tab_bar_style             powerline
tab_title_template        {title[:50]}
window_padding_width      FloatEdges(left=8.0, top=8.0, right=8.0, bottom=8.0)
Added shortcuts:
	cmd+j →  neighboring_window down
	cmd+l →  neighboring_window right
	ctrl+a > - →  launch --location=hsplit --cwd=current --copy-env, launch --location=vsplit --cwd=current --copy-env, focus_visible_window, nth_window -1, toggle_layout stack, detach_window ask
	shift+down →  move_window down
	shift+left →  move_window left
	shift+right →  move_window right
	shift+up →  move_window up
Removed shortcuts:
	cmd+, →  edit_config_file
	cmd+enter →  new_window
	cmd+h →  hide_macos_app
	cmd+k →  clear_terminal to_cursor active
	cmd+m →  minimize_macos_window
	cmd+n →  new_os_window
	cmd+q →  quit
	cmd+t →  new_tab
	cmd+w →  close_tab
	ctrl+cmd+, →  load_config_file
	ctrl+cmd+f →  toggle_fullscreen
	opt+cmd+h →  hide_macos_other_apps
	opt+cmd+r →  clear_terminal reset active
	opt+cmd+s →  toggle_macos_secure_keyboard_entry
	shift+cmd+/ →  open_url https://sw.kovidgoyal.net/kitty/
	shift+cmd+d →  close_window
	shift+cmd+w →  close_os_window
Changed shortcuts:
	kitty_mod+down →  scroll_line_down, layout_action move_to_screen_edge bottom
	kitty_mod+enter →  new_window, launch --cwd=current --copy-env
	kitty_mod+left →  previous_tab, layout_action move_to_screen_edge left
	kitty_mod+right →  next_tab, layout_action move_to_screen_edge right
	kitty_mod+up →  scroll_line_up, layout_action move_to_screen_edge top
Colors:
	active_tab_background     #22272e   
	active_tab_foreground     #adbac7   
	background                #22272e   
	color0                    #545d68   
	color1                    #f47067   
	color10                   #6bc46d   
	color11                   #daaa3f   
	color12                   #6cb6ff   
	color13                   #dcbdfb   
	color14                   #56d4dd   
	color15                   #cdd9e5   
	color2                    #57ab5a   
	color3                    #c69026   
	color4                    #539bf5   
	color5                    #b083f0   
	color6                    #39c5cf   
	color7                    #909dab   
	color8                    #636e7b   
	color9                    #ff938a   
	cursor                    #539bf5   
	foreground                #adbac7   
	inactive_tab_background   #1c2128   
	inactive_tab_foreground   #768390   
	selection_background      #539bf5   
	selection_foreground      #22272e   
	tab_bar_background        #1c2128   

Important environment variables seen by the kitty process:
	PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
	LANG                                en_US.UTF-8
	SHELL                               /bin/zsh
	USER                                **********

@oaleynik oaleynik added the bug label Jan 19, 2024
@kovidgoyal
Copy link
Owner

dup of #7016

@kovidgoyal
Copy link
Owner

There are no changes required in kitty.conf for mapping. The syntax remains the same. Your old maps will continue to work, barring the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants