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

Using hints kitten produces a terminal bell on all keyboard input #7044

Closed
doubledup opened this issue Jan 23, 2024 · 0 comments
Closed

Using hints kitten produces a terminal bell on all keyboard input #7044

doubledup opened this issue Jan 23, 2024 · 0 comments
Labels

Comments

@doubledup
Copy link

Describe the bug
Setting a mapping for the hints kitten as in the docs and using it causes all further keyboard input to be ignored until kitty is restarted.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a minimal kitty config: cat 'map ctrl+shift+p>f kitten hints --type path --program - > ~/.config/kitty/kitty.conf`.
  2. Restart kitty
  3. Use a default hints kitten mapping, like ctrl+shift+p>w and see that it works. Use the mapping from the config file ctrl+shift+p>f.
  4. See that f is entered to the current shell and all further keyboard input produces a terminal bell.

Screenshots
None.

Environment details

kitty 0.32.0 (eb5dd364ae) created by Kovid Goyal
Darwin Davids-MacBook-Pro.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64
ProductName:		macOS ProductVersion:		14.3 BuildVersion:		23D56
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: /opt/homebrew/bin/fish
Loaded config files:
  /Users/daviddunn/.config/kitty/kitty.conf

Config options different from defaults:
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
Changed shortcuts:
	kitty_mod+p > f →  kitten hints --type path --program -, kitten hints --type path, kitten hints --type line --program -, kitten hints --type word --program -, kitten hints --type hash --program -, kitten hints --type linenum, kitten hints --type hyperlink, kitten hints --type path --program -

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                               /opt/homebrew/bin/fish
	USER                                daviddunn

Additional context
The environment details above have a suspicious value for the changed shortcut. Looks like there's a list of commands in a string somewhere that should be split on a comma.

Only a terminal bell is output (with an otherwise empty config), regardless of the keys pressed. The mouse still works. The only way I've found to get keyboard input working again is restarting kitty. The default hints kitten mappings still work, only custom mappings cause the bug. This also applies to the same mapping, eg. with an empty config ctrl+shift+p>f runs the file path hints kitten properly, but adding that mapping (the one from the docs map ctrl+shift+p>f kitten hints --type path --program -) in the config produces 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

1 participant