Repository navigation
Apply new formats from #1317 on upgrade - #1382
Merged
Merged
Conversation
New formats for the statusline, headings, and trackwin were introduced to streamline the interface and make better use of new features. Update the config to the new defaults if we're upgrading from an old version of cmus (identified by the lack of the newly added format options in the autosave) after loading the autosave, but before loading the user's rc (yes, this does mean that if the user set a custom one via the command line rather than the rc, the user will have to reconfigure it). See c454d4e, bad9b0c.
pgaskin
commented
Oct 23, 2024
pgaskin
left a comment
Member
Author
There was a problem hiding this comment.
Tested by:
- Building and running cmus v2.11.0.
- Building and running this PR, seeing the new layout.
- Running
:set format_statusline=test. - Restarting cmus and seeing the customized format persist.
- Doing all of this again with a fresh config, but putting the set command in the rc instead.
gavtroy
approved these changes
Oct 25, 2024
gavtroy
left a comment
Collaborator
There was a problem hiding this comment.
nit: seen_v2.12_fmts might be more meaningful to future readers
Otherwise looks fine, works fine, and it shouldn't be too big of a deal for advanced users to reapply customizations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New formats for the statusline, headings, and trackwin were introduced to streamline the interface and make better use of new features.
Update the config to the new defaults if we're upgrading from an old version of cmus (identified by the lack of the newly added format options in the autosave) after loading the autosave, but before loading the user's rc (yes, this does mean that if the user set a custom one via the command line rather than the rc, the user will have to reconfigure it).
See c454d4e, bad9b0c.