andmarti1424 / sc-im

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

request: Confim and move to [next cell]/[first cell of next row] #780

Open mipmip opened 1 year ago

mipmip commented 1 year ago

It would be great if there we two additional commands to confirm text input.

Currently ENTER confirm input but the cursor stays on the last updated cell. It would be nice to be able to jump to a next logical location, e.g. next cell to the right or first cell on a new line.

andmarti1424 commented 1 year ago

Adding different ways to confirm input would be confusing. You have 3 options for newline_action though.

andmarti1424 commented 1 year ago

@mipmip Could you manage to try those?

mipmip commented 1 year ago

@mipmip Could you manage to try those?

I did not know this. This is a nice feature.

Could we enhance newline_action like this...?

'newline_action' [default 0]
    Set it to '0' to take no action.
    Set it to 'j' to move the cursor one row below.
    Set it to 'l' to move the cursor one column to the right.
    Set it to 'j0' to move the cursor to the first column on next row.
    Set it to 'lH' to move the cursor to the first row of next column.

Only the 0 setting is not logical in this case, as it suggest movement to the first column.