max397574/better-escape.nvim

Escape Terminal Mode ?

rzksobhy78 opened this issue · 5 comments

How can I use this plugin to escape terminal mode in terminal
I'm using this one
https://github.com/akinsho/toggleterm.nvim

you can't because this plugin uses CharInsertPre, which only works in buffers

Adding InsertCharPre in Terminal mode is planned (albeit backlogged) work neovim/neovim#5018. Once the issue is closed and complete could this issue be reopened?

yes
I'm also working on a rework of the thing locally
it maybe also be possible with the new version

https://github.com/TheBlob42/houdini.nvim makes it possible in so many modes including terminal, cmd etc.

with the pr for the rewrite better-escape will also have support for most modes and also allow mapping anything and not just to esc