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
We defined Ctrl and h, j, k, and l to focus switch at lua/core/mapping.lua.
A common requirement is when you use C-\ or A-\ to open the horizontal or vertical terminal, you want to use the keyboard shortcut to switch to the code window and keep the terminal not hidden.
EDITED: Pull the latest config first.
If you need the native bash shortcut, you can unset it by adding these lines to lua/user/keymap/core.lua.
return {
["t|<C-k>"] ="",
}
Disable all of above mappings and define other suitable mappings for the focus switch behavior in lua/user/keymap/core.lua like <C-w> with h, j, l, and l like this:
Version confirmation
Following prerequisites
Neovim version
0.9.1
Operating system/version
Linux
Terminal name/version
iTerm2
$TERM environment variable
xterm-256color
Branch info
main (Default/Latest)
Fetch Preferences
HTTPS (use_ssh = false)
How to reproduce the issue
use
:Terminal
or A-d
or C-\
or A-
open terminal
C-k and backupspace
Expected behavior
delete to end of line(C-k)
delete previous char ( backspace)
Actual behavior
terminal loss focus
Additional information
found in
lua/core/mapping.lua (line 20-23)
The text was updated successfully, but these errors were encountered: