sc-im icon indicating copy to clipboard operation
sc-im copied to clipboard

Export a particular sheet alone to txt without interaction

Open simonante opened this issue 1 year ago • 3 comments

Can I export only one particular sheet to txt without interaction?

simonante avatar Mar 08 '23 17:03 simonante

Have you tried selecting it in visual mode and then exporting? Please do not open issues for questions. Try Discussions for that.

andmarti1424 avatar Mar 08 '23 19:03 andmarti1424

Sorry for opening an issue for this. What I basically need is to obtain a certain macro cell from a sheet without interaction. This is because I have a script that edits a value of some cell in the raw sc file. I need a macro cell value without opening the sc-im interaction. I can export the whole spreadsheet to csv or txt sc-im --quit_afterload --nocurses --export_mkd --output=out.txt file.sc | tee out.txt and find the macro there, but that is really painful with a larger document. Do you have any idea for a better approach?

simonante avatar Mar 08 '23 21:03 simonante

you can use echo getnum A3 | sc-im ... or something like that Please take a look at "External scripts" section in doc

andmarti1424 avatar Mar 09 '23 11:03 andmarti1424