sc-im icon indicating copy to clipboard operation
sc-im copied to clipboard

All colors get reset to defaults after 'gf'

Open 097115 opened this issue 1 year ago • 4 comments

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] ):

  • start sc-im
  • :color "type=NORMAL fg=WHITE bg=BLUE"
  • NORMAL color is changed
  • gf
  • NORMAL color is back to the default

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 :)

097115 avatar Jan 11 '24 07:01 097115

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

andmarti1424 avatar Jan 14 '24 16:01 andmarti1424

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.

097115 avatar Jan 14 '24 16:01 097115

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

andmarti1424 avatar Jan 20 '24 13:01 andmarti1424

@andmarti1424

Looks like you've indeed fixed it :)

Thanks!

097115 avatar Jan 20 '24 13:01 097115