andmarti1424 / sc-im

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

Rearranging sheets #852

Closed diffract closed 1 month ago

diffract commented 10 months ago

Thanks for this great app. I looked around in the help file and google and there doesn't seem to be a way to move sheets around. I have a file with 6 sheets. I would like to move sheet 5 to position 3. Is there a way to do it without copying/pasting everything? If not, i propose something like ":movesheet 3"

andmarti1424 commented 10 months ago

Actually, there is no command to do that at runtime. Not the best, but perhaps better than copying and pasting.. you can try to edit the file and move the lines between movetosheet.. image

diffract commented 10 months ago

Thank you. Never crossed my mind that sc files were plain text. I tried just rearranging the lines at the beginning of the file that start with "newsheet" and that did the trick. Works well enough for my needs.

andmarti1424 commented 10 months ago

Sorry. Yes. You have to rearrange those newsheet lines.