Open Amleto opened 1 year ago
Possibly I could use this workaround that was mentioned for win terminal (not sure how to convert to wezterm config) https://github.com/microsoft/terminal/issues/2865#issuecomment-929522127
I'd suggest disabling https://wezfurlong.org/wezterm/config/lua/config/allow_win32_input_mode.html https://wezfurlong.org/wezterm/config/key-encoding.html has more information about keyboard encoding
Thanks for the reply.
I tried different combinations of enable_csi_u_key_encoding
and allow_win32_input_mode
, but didn't see any differences.
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)
@Kamholtz Does this still work for you? It does not for me.
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.