Closed hseg closed 1 month ago
Hello. Those commands should export the current sheet. Not the first one of the document. Regarding single-sheet-at-a-time export, I am afraid its the current behaviour. We might change it or add an option for exporting all sheets at once.
On Fri, Dec 29, 2023 at 03:56:44AM -0800, Andrés Gustavo Martinelli wrote:
Hello. Those command should export the current sheet. Not the first one on the document. Regarding single-sheet-at-a-time export, I am afraid its the current behaviour. We might change it or add an option for exporting all sheets at once.
OK, then in that case I'd appreciate guidance on how to script iterating through
a file's sheets and exporting them one-by-one. I've since managed somehow to
script multiple commands -- I don't know what went wrong with previous attempts,
but have had success with
(yes nextsheet | head -n"$i"; echo 'export "mkd" "sheet-$i.md") | sc-im ...
By remarks on #791, I must be doing something wrong, but: Both
:e FORMAT [FILE]
andecho 'export "FORMAT" "FILE"' | sc-im
only export the first sheet in the file -- in plaintext formats, would expect to see all sheets, labelled and suitably concatenated. Unless this single-sheet-at-a-time is the intended behavior? In which case, I would expect there to be an option to export a specific sheet (to my understanding,:e
's ability to export a selection is inaccessible in scripting, since there is no way to programmatically select a range). It would also help for this direction to be able to get the number of sheets in a file and to send multiple commands on stdin, but can find documentation for neither.Version: