andmarti1424 / sc-im

sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Other
4.85k stars 207 forks source link

syntax error :load #807

Closed letscho123 closed 1 year ago

letscho123 commented 1 year ago

I installed sc-im v0.8.4 on Fedora 37 following this guide, it compiled without errors and works fine for most parts.

When I want to load a theme on startup from the scimrc file, I get the error message "syntax error: :load /path/theme.sc". The command :load works fine within sc-im.

Here is my scimrc file and all options except :load work:

set input_bar_bottom=1
set truncate
# set autocalc
set debug
set xlsx_readformulas
set ignorecase

# mappings
nnoremap "<RIGHT>" "fl"
nnoremap "<LEFT>" "fh"
nnoremap "<UP>" "fk"
nnoremap "<DOWN>" "fj"

nmap "Q" ":q!<cr>"
nmap "W" ":wq<cr>"

:load /home/user/Documents/sc-im/themes/old.sc

Also having only :load in the file gives the same error.

andmarti1424 commented 1 year ago

:load is for use in runtime. Not inside scimrc file

letscho123 commented 1 year ago

Is there another way to apply a theme automatically at startup?

andmarti1424 commented 1 year ago

Yes, please read THEMES section in doc.

letscho123 commented 1 year ago

Ahhh I got it. Thanks a lot and I really like your program!