andmarti1424 / sc-im

sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Other
4.77k stars 201 forks source link

Ctrl-C should switch to Normal mode from anything. #826

Open ershov opened 1 year ago

ershov commented 1 year ago

Hi, I'm a Vim user. I'm used to the fact that Ctrl-C switches Vim to Normal mode from wherever it is. It doesn't work like that in SC-IM. I was constantly getting stuck in various weird regimes and wasn't able to escape it. I had to kill -9 the process since regular kill was not killing it too! Recently I found out the the universal escape key for SC-IM is the Escape key. Unfortunately Escape is always hard to handle in console, that's why Ctrl-C is more reliable.

How about making Ctrl-C act as return-to-Normal-from-anywhere just like it is in Vim?

andmarti1424 commented 1 year ago

hello. yes. may be we can make change it so it returns to normal mode.

andmarti1424 commented 1 year ago

@ershov Please update to latest commit on dev branch and retry!

andmarti1424 commented 1 year ago

@ershov hello. could you take a look at this change?

andmarti1424 commented 11 months ago

@ershov hello. could you test this?

ershov commented 10 months ago

@andmarti1424 Hey thank you for the update. While the situation with ^C seems better, it still gets stuck in some modes. One of these modes is when I press :. There are others but I'm not sure what are they.

Note: I expect ^C to escape me into the Normal mode.

Version used for testing: I downloaded the main branch today.

andmarti1424 commented 10 months ago

Please update to latest commit on DEV branch. If you press : and then you press ^c it should show Got SIGINT. Back to NORMAL MODE message..

andmarti1424 commented 10 months ago

@ershov could you test it with the dev branch?