-
-
Notifications
You must be signed in to change notification settings - Fork 786
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
automatically adjust color scheme config doesn't work after nvim closed. #3685
Comments
Please capture a terminal recording:
The file is an asciicast (compatible with https://asciinema.org/) and can also be replayed using The terminal recording allows me to replicate what is being sent to the terminal without requiring me to install the same applications as you and replicate your configuration for everything. |
My operation: here is the recording file:
|
when you change the color palette via escape sequences, you essentially fork it from the colors you set in the config file until you tell the terminal to reset the color palette back to the default. This is so that an application's choice of colors remains intact even if you change the config at runtime. Looking at your recording, you can see that the program you are running is changing the palette, and resetting just the thing it changed at the end: $ wezterm replay --explain-only wezterm-recording-ejA1H0.cast.txt | grep -i Dynamic
Action(OperatingSystemCommand(ChangeDynamicColors(TextBackgroundColor, [Query])))
Action(OperatingSystemCommand(ChangeDynamicColors(TextCursorColor, [Color(SrgbaTuple(0.15294118, 0.15294118, 0.15294118, 1.0))])))
Action(OperatingSystemCommand(ChangeDynamicColors(TextCursorColor, [Color(SrgbaTuple(0.15294118, 0.15294118, 0.15294118, 1.0))])))
Action(OperatingSystemCommand(ChangeDynamicColors(TextCursorColor, [Color(SrgbaTuple(0.15294118, 0.15294118, 0.15294118, 1.0))])))
Action(OperatingSystemCommand(ResetDynamicColor(TextCursorColor))) wezterm doesn't recognize this as the palette being reset completely, so it ends up freezing the palette. I've pushed a fix for this, so this should be resolved now in It typically takes about an hour before commits are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer. Please take a few moments to try out the fix and let me know how that works out. You can find the nightly downloads for your system in the wezterm installation docs. If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a If you are eager and can build from source then you may be able to try this out more quickly. |
the nightly version works fine. Thanks for you job!!! But there is still a small problem, changing the system color mode when opening nvim, also cause the same problem. |
Is this still an issue in the latest release? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
wezterm 20230501-084619-d0e9a034
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
I want to automatically adjust color scheme to the current appearance, and config like document says.
but the tab color_scheme will never change after nvim closed in current tab.
Newly opened tabs work fine.
To Reproduce
No response
Configuration
Expected Behavior
No response
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: