Replies: 11 comments 1 reply
-
Hello. Yes. PR are welcome. I will also think about this. |
Beta Was this translation helpful? Give feedback.
-
@laktak I decided to modify this so ESC key also confirm changes. Please feel free to update to latest commit on dev branch and try it. |
Beta Was this translation helpful? Give feedback.
-
@laktak could you test it? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Yes it works great, thank you! Could you make the same change when entering a new text or number? When I enter something with |
Beta Was this translation helpful? Give feedback.
-
I dont think so. gnumeric and libreoffice also work like sc-im in those situations. |
Beta Was this translation helpful? Give feedback.
-
Interesting. What is the reason for this behavior? So when entering text I first do |
Beta Was this translation helpful? Give feedback.
-
Yes, indeed. |
Beta Was this translation helpful? Give feedback.
-
I understand how it works but not why. What is the advantage? Wouldn't it be easier to use the app if it always behaves the same way? So when pressing ESC in insert mode you always get to edit mode (instead of losing the text you entered as it is at the moment)? Would you allow |
Beta Was this translation helpful? Give feedback.
-
The later, yes.. I think that could be modified. I treat NORMAL_MODE as the default mode. That means where you most of the time are. (I think vim also has this concept). So when you 're in INSERT_MODE I believe ESC should get back to your home. That is NORMAL_MODE.. |
Beta Was this translation helpful? Give feedback.
-
I can see your argument except for me EDIT_MODE maps to vim's normal mode and NORMAL_MODE is more like a mode above that. That is why I feel that going from insert to sc-im's normal mode is skipping a step. Please take a look at my PR that allows the user to select the desired behavior. |
Beta Was this translation helpful? Give feedback.
-
I move this to a discussion. What other people think about this..? |
Beta Was this translation helpful? Give feedback.
-
I'd like to request a config option that makes ESC keep the input when going from edit mode to normal mode.
At the moment ESC will undo any edits (with no way to get them back AFAIK). For me this is very error prone because I often forget to ESC-ENTER from input mode instead of just ESC-ESC which is more of what I am used to from vim. Also see #617
I don't think this can be done at the moment as there are not mappings for edit mode.
Would you accept a PR for this feature? What should be the name of the config option? (keepesc?)
Beta Was this translation helpful? Give feedback.
All reactions