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

Saving color settings for a particular spreadsheet #835

Open
asteri0 opened this issue Sep 2, 2023 · 6 comments
Open

Saving color settings for a particular spreadsheet #835

asteri0 opened this issue Sep 2, 2023 · 6 comments

Comments

@asteri0
Copy link

asteri0 commented Sep 2, 2023

In older versions of sc-im, I used a bash script to to add a special color scheme to a particular spreadsheet:
color "type=HEADINGS fg=BLACK bg=WHITE bold=0 dim=0"
color "type=HEADINGS_ODD fg=BLACK bg=WHITE bold=0 dim=0"
color "type=NUMB fg=RED bg=DEFAULT_COLOR bold=1 dim=0"
....
The issue I face since last year (I don't recall which particular version, sorry) : once I open the spreadsheet and make changes to and save with :x, the colors are gone!, the lines previously added disappear, so that when I open it again the colors revert to the default.

@andmarti1424
Copy link
Owner

@asteri0 try adding those lines to your .config/sc-im/scimrc file

@asteri0
Copy link
Author

asteri0 commented Sep 2, 2023

Thank you for reply. If I add the color lines to my scimrc, the all spreadsheets will open with my custom colors. This is nice, but what I wanted was to have a different color scheme per spreadsheet so as to instantly know what I am working on. I recognize I am splitting hairs.
I found a way to reproduce that functionality with a script, but it would be nice if we could embed a color scheme within a spreadsheet!

@andmarti1424
Copy link
Owner

Oh I see. It might be that the file theme gets overrided with the scimrc one.
it was never intended to have themes per file. may be it worked back then, but we had to change the order of things at startup to prevent other issues..

@asteri0
Copy link
Author

asteri0 commented Sep 2, 2023

Thank you for you reply.
Congrats on the hard work.
Best Regards,
Pablo

@asteri0
Copy link
Author

asteri0 commented Sep 2, 2023

Andrés:
please note that the help file (https://raw.githubusercontent.com/andmarti1424/sc-im/freeze/src/doc) is inaccurate then, as it says:

"Colors can be set at runtime or specified in:
a. the scimrc file stored in $HOME/.config/sc-im/
b. the current .sc file. "

As I understand, b. no longer applies.
Regards,
Pablo

@andmarti1424
Copy link
Owner

Yes. Indeed. Thanks for pointing it out.

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