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

Keyboard shortcut overrides don't work #7016

Closed
refractalize opened this issue Jan 19, 2024 · 1 comment
Closed

Keyboard shortcut overrides don't work #7016

refractalize opened this issue Jan 19, 2024 · 1 comment
Labels

Comments

@refractalize
Copy link

Describe the bug

I recently upgraded to v0.32.0 and noticed that my keyboard shortcuts didn't seem to be working as normal. In particular it seems that any shortcuts that have existing macos keybindings don't seem to work, it's as if my override hasn't been applied.

To Reproduce

Steps to reproduce the behavior:

  1. Probably best to try this on macOS, I haven't tried on other systems. Start with a kitty.conf that looks like this:

    # kitty.conf
    map cmd+n launch --cwd=current --location=hsplit
    map cmd+shift+n launch --cwd=current --location=vsplit
    
  2. Run kitty -c kitty.conf

  3. Press cmd+n

  4. You should see a new window (not OS window) but instead you see a new OS window

Environment details

Notice that there's no entry for cmd+n that corresponds to the kitty.conf. Also it shows lots of "Removed shortcuts" even though only one was overridden.

kitty 0.32.0 (eb5dd364ae) created by Kovid Goyal
Darwin Tims-MBP-001.lan 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 arm64
ProductName:		macOS ProductVersion:		14.1.1 BuildVersion:		23B81
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/tim/.config/kitty/kitty.conf

Config options different from defaults:
Added shortcuts:
	shift+cmd+n →  launch --cwd=current --location=vsplit
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+[ →  previous_tab
	shift+cmd+] →  next_tab
	shift+cmd+d →  close_window
	shift+cmd+w →  close_os_window

Important environment variables seen by the kitty process:
	PATH                                /Users/tim/.pyenv/shims:/Users/tim/Library/Python/3.11/bin:/Users/tim/.local/bin:/Users/tim/bin:/Users/tim/.nvm/versions/node/v20.10.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Users/tim/.cargo/bin:/opt/homebrew/bin:/Applications/kitty.app/Contents/MacOS:/Users/tim/.local/bin:/Users/tim/.dotnet/tools:/opt/homebrew/opt/fzf/bin:/Users/tim/go/bin:/Users/tim/.yarn/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
	LANG                                en_GB.UTF-8
	EDITOR                              /Users/tim/.local/bin/nvim
	SHELL                               /bin/zsh
	USER                                tim
	LC_ALL                              en_GB.UTF-8
@refractalize
Copy link
Author

nice one, thanks @kovidgoyal !

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

1 participant