andmarti1424 / sc-im

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

Set spreadsheet size #818

Closed avidseeker closed 1 year ago

avidseeker commented 1 year ago

When opening a small .csv file, it would be convenient for sc-im to shrink to the number of columns and rows in that file.

For example, if a file needs 10 columns and 20 rows, I don't need to have 65536 rows and columns.

Shrinking the size of the spreadsheet to content also make it easier to navigate by mapping G to go to the end of the rows instead of going to row 65536. This is how it's done on Google Sheets too:

image

andmarti1424 commented 1 year ago

Actually, those rows are not allocated. It allocates when they are needed. This comes as it is from old sc. EDIT: the thing you might have experienced is that navigation over last row generate new allocations. This, as the other, comes from old sc, and won't change.