Why does ctrl+shift+z stop all jobs? #4534
Replies: 4 comments 15 replies
-
Are you using kitty version 0.24+? This is a default shortcut related to shell integration. By How to reproduce this issue? I press this shortcut under macOS, it doesn't crash. |
Beta Was this translation helpful? Give feedback.
-
ctrl+shift+z jumps to the previous prompt, but it will be a no-op when
nvim is running since nvim switches to the alternate screen, where there
is no scrollback.
So what is crashing and what steps reproduce this crash.
|
Beta Was this translation helpful? Give feedback.
-
On Tue, Jan 18, 2022 at 03:03:03AM -0800, j-james wrote:
So it seems like `Ctrl+Z`/`Ctrl+Shift+Z` backgrounds Vim when in normal by default, which explains what the "crash" is. One mystery solved! But it shouldn't do that when in insert mode (when I usually accidentally press it) - and it doesn't in other terminal emulators, only kitty.
Seems that kitty sends `^Z` for `Ctrl+Z` and `^[[122;6u` for `Ctrl+Shift+Z`, while some others send `^Z` for both. `^[[122;6u` somehow breaks out of insert mode and then sends a `^Z` signal.
I guess this is now a different question - why my shell integration isn't fully integrated?
I told you already, you have remapped ctrl+shift+z in your kitty.conf
|
Beta Was this translation helpful? Give feedback.
-
I'm having the exactly same issue with kitty 0.37. I just switched from VSCode to neovim, and out of habit, I too often times hit ctrl+shift+z.
As can be seen in the screen capture, I ran kitty and neovim without any configs, and after hitting ctrl+shift+z neovim just quits. ScreenCapture-2024-12-11_08.54.08.mp4 |
Beta Was this translation helpful? Give feedback.
-
I unfortunately tend to press this occasionally out of habit (redo on some systems) and it crashes (Neo)Vim and (Neo)Vim exclusively. I assume this is a terminal-level keybinding because it didn't happen when I tested it in Alacritty.
What's the background behind this? I was unable to find anything resembling ctrl+shift+z in my config file, so it seems to be part of some deeper part of kitty.
Beta Was this translation helpful? Give feedback.
All reactions