Skip to content

Apply new formats from #1317 on upgrade - #1382

Merged
flyingmutant merged 1 commit into
cmus:masterfrom
pgaskin:apply-pr1317-fmt-on-upgrade
Oct 26, 2024
Merged

flyingmutant merged 1 commit into
cmus:masterfrom
pgaskin:apply-pr1317-fmt-on-upgrade

Conversation

@pgaskin

@pgaskin pgaskin commented Oct 23, 2024

Copy link
Copy Markdown
Member

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.

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 pgaskin left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 gavtroy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@flyingmutant
flyingmutant merged commit 0b61237 into cmus:master Oct 26, 2024
@pgaskin
pgaskin deleted the apply-pr1317-fmt-on-upgrade branch October 26, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants