andmarti1424 / sc-im

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

All colors get reset to defaults after 'gf' #862

Closed 097115 closed 1 month ago

097115 commented 7 months ago

I have custom colors set in my config. However, after pressing gf on any cell (may contain an URL, or be just an empty one), those colors reset to their default values.

Confirmed while running completely without the config, too[^1] ):

Tested on 0ba93dc (dev) and fca17ce (main).

[^1]: Would be great to have something like Vim's -u NONE, btw. Instead of renaming the configuration folder manually :)

andmarti1424 commented 7 months ago

@097115 confirmed. but how you have default_open_file_under_cursor_cmd configured? what is the content of the cell where you press gf?

097115 commented 7 months ago

but how you have default_open_file_under_cursor_cmd configured?

Yep, it's set to scopen. And it works :)

what is the content of the cell where you press gf?

It may be a filename, an URL or just an empty cell. After gf, the first two get correctly open by scopen, and with the last one nothing happens (as expected). The colors get reset every time.

andmarti1424 commented 7 months ago

@097115 please update to latest commit on dev branch and retry. thanks.

097115 commented 7 months ago

@andmarti1424

Looks like you've indeed fixed it :)

Thanks!