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

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

Open
097115 opened this issue Jan 11, 2024 · 4 comments
Open

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

097115 opened this issue Jan 11, 2024 · 4 comments

Comments

@097115
Copy link

097115 commented Jan 11, 2024

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

  • 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).

Footnotes

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

@andmarti1424
Copy link
Owner

@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
Copy link
Author

097115 commented Jan 14, 2024

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
Copy link
Owner

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

@097115
Copy link
Author

097115 commented Jan 20, 2024

@andmarti1424

Looks like you've indeed fixed it :)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants