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
[keys.insert]
'j' = {'k' = [":write", "normal_mode"]} ## map jk to save and exit to normal mode.
When I type the jk keys in the insert mode, the editor enters the normal mode as expected. It also shows a message that the file was written. However, the [+] symbol in the modeline does not go away. When I try to close the buffer, I get a warning that there are unsaved changes. If I switch to insert mode again and then press jk again then the [+] symbol goes away, and it is as if I type :w in the normal mode.
Reproduction Steps
I tried this:
Add the following lines to the config file and reload:
[keys.insert]
'j' = {'k' = [":write", "normal_mode"]} ## map jk to save and exit to normal mode.
Open a file and write something to it. Press jk.
At this point I expect the [+] symbol in the modeline to go away. But it does not. The editor goes into the normal_mode as expected.
Press i to enter insert mode and then type jk again. Now, the [+] symbol goes away.
Summary
I added the following lines to my config file
When I type the
jk
keys in the insert mode, the editor enters the normal mode as expected. It also shows a message that the file was written. However, the[+]
symbol in the modeline does not go away. When I try to close the buffer, I get a warning that there are unsaved changes. If I switch to insert mode again and then pressjk
again then the[+]
symbol goes away, and it is as if I type:w
in the normal mode.Reproduction Steps
I tried this:
jk
.At this point I expect the
[+]
symbol in the modeline to go away. But it does not. The editor goes into thenormal_mode
as expected.i
to enter insert mode and then typejk
again. Now, the[+]
symbol goes away.Helix log
No response
Platform
macOS
Terminal Emulator
iterm2
Helix Version
helix 23.05 (7f5940b)
The text was updated successfully, but these errors were encountered: