You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I really like VimMode.spoon overall, and I have too much muscle memory to enter normal mode with anything other than escape (I tried jk and a few others). So far using escape hasn't been a big deal, except sometimes I need to use escape to exit from some prompt/modal in the application I'm using.
Here's my config:
local VimMode = hs.loadSpoon('VimMode')
local vim = VimMode:new()
vim
:disableForApp('Code')
:disableForApp('MacVim')
:disableForApp('kitty')
:disableForApp('iTerm2')
:disableForApp('zoom.us')
:enterWithSequence('jk')
:bindHotKeys({ enter = { {'ctrl'}, ';'} })
:bindHotKeys({ enter = { {}, 'escape'} })
What I'm wondering is if it's possible to do the following:
map escape to insert mode and double escape to leave "vim mode" (and maybe even send the escape keypress after). Ie: I want to use single escape while typing to go into insert mode, but use double escape to send the escape key to the application directly ("not get intercepted by vim mode").
If not, is it possible to adapt enterWithSequence to work of leaving vim-mode? And in general, how might I potentially programmatically send a key press in Hammerspoon (so I can send escape after going to insert mode).
The text was updated successfully, but these errors were encountered:
Hey, I really like VimMode.spoon overall, and I have too much muscle memory to enter normal mode with anything other than
escape
(I triedjk
and a few others). So far usingescape
hasn't been a big deal, except sometimes I need to useescape
to exit from some prompt/modal in the application I'm using.Here's my config:
What I'm wondering is if it's possible to do the following:
If not, is it possible to adapt
enterWithSequence
to work of leaving vim-mode? And in general, how might I potentially programmatically send a key press in Hammerspoon (so I can send escape after going to insert mode).The text was updated successfully, but these errors were encountered: