Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export a particular sheet alone to txt without interaction #791

Open
simonante opened this issue Mar 8, 2023 · 3 comments
Open

Export a particular sheet alone to txt without interaction #791

simonante opened this issue Mar 8, 2023 · 3 comments

Comments

@simonante
Copy link

simonante commented Mar 8, 2023

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

@simonante simonante changed the title Export a particular cell alone to txt without interaction Export a particular sheet alone to txt without interaction Mar 8, 2023
@andmarti1424
Copy link
Owner

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

@simonante
Copy link
Author

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?

@andmarti1424
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants