-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
ctrl-space tra #4055
Comments
Possibly I could use this workaround that was mentioned for win terminal (not sure how to convert to wezterm config) |
I'd suggest disabling https://wezfurlong.org/wezterm/config/lua/config/allow_win32_input_mode.html |
Thanks for the reply. I tried different combinations of |
After some experimenting I have had success with this workaround in the context of Neovim (I have not tested it elsewhere): local act = wezterm.action
local config = {}
config.default_prog = { 'pwsh.exe' }
config.keys = {
{
key = ' ',
mods = 'CTRL',
action = act.SendKey {
key = ' ',
mods = 'CTRL',
},
}
}
return config |
Wow, great! This works with git-bash and neovim |
If anyone is on OSX and wondering why it's not working, -- ctrl-space is the default "previous input source" hotkey https://apple.stackexchange.com/questions/423971/disable-controlspace-keyboard-shortcut so if it's on (which it is by default) then Wezterm never even sees the hotkey. Disable it in osx and it should just work (none of the keymapping needed) |
What Operating System(s) are you seeing this problem on?
Windows
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20230712-072601-f4abf8fd
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
No, and I'll explain why below
Describe the bug
Not sure how to get nightly through winget. I have seen the couple of previous bug from mar/april referring to ctrl /, and ctrl-i. I am seeing an issue with ctrl-space.
I first found this due to being unable to get a keymap working in neovim. If I open the neovim qt terminal, then c-space works ok.
To Reproduce
in wezterm launch nvim with
nvim --clean
in nvim, after pressing
i
to enter insert mode,ctrl
+v
enters a kind of 'capture' mode. Then enterctrl
+space
. The initial^
from the ctrl-v is present and hasnt been updated from the ctrl-space combination.Configuration
Expected Behavior
launch nvim with
nvim --clean
in nvim, after pressing
i
to enter insert mode,ctrl
+v
enters a kind of 'capture' mode. Thenctrl
+space
should result in<C-Space>
being inserted.Check that ctrl+v functionality is working as expected (from insert mode):
ctrl
+v
,ctrl
+j
should insert^@
Logs
Anything else?
on windows with nvim installed, launching the nvim qt terminal handles ctrl-space as expected.
The text was updated successfully, but these errors were encountered: