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 all sheets, or particular sheet #859

Open
hseg opened this issue Dec 27, 2023 · 2 comments
Open

Export all sheets, or particular sheet #859

hseg opened this issue Dec 27, 2023 · 2 comments

Comments

@hseg
Copy link

hseg commented Dec 27, 2023

By remarks on #791, I must be doing something wrong, but:
Both :e FORMAT [FILE] and echo '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:

-DNCURSES
-DMAXROWS 65536
-DUNDO
-DXLSX
-DXLUA
-DDEFAULT_COPY_TO_CLIPBOARD_CMD="xclip -i -selection clipboard <"
-DDEFAULT_PASTE_FROM_CLIPBOARD_CMD="xclip -o -selection clipboard"
-DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD="scopen"
-DUSELOCALE
-DMOUSE
-DUSECOLORS
-D_XOPEN_SOURCE_EXTENDED
-D_GNU_SOURCE
-DSNAME="sc-im"
-DHELP_PATH="/usr/share/sc-im"
-DLIBDIR="/usr/share/doc/sc-im"
-DDFLT_PAGER="less"
-DDFLT_EDITOR="vim"
-DCONFIG_DIR=".config/sc-im"
-DCONFIG_FILE="scimrc"
-DHISTORY_DIR=".cache"
-DHISTORY_FILE="sc-iminfo"
-DINS_HISTORY_FILE="sc-iminfo"
-DHAVE_PTHREAD
-DAUTOBACKUP
@andmarti1424
Copy link
Owner

andmarti1424 commented Dec 29, 2023

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.

@hseg
Copy link
Author

hseg commented Dec 30, 2023 via email

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