Skip to content

Make trackwin heading format configurable, etc. - #1317

Merged
flyingmutant merged 3 commits into
cmus:masterfrom
gavtroy:total-in-title
Sep 14, 2024
Merged

flyingmutant merged 3 commits into
cmus:masterfrom
gavtroy:total-in-title

Conversation

@gavtroy

@gavtroy gavtroy commented Feb 27, 2024 •

Copy link
Copy Markdown
Collaborator

No description provided.

@gavtroy
gavtroy marked this pull request as ready for review February 27, 2024 02:14
@gavtroy
gavtroy force-pushed the total-in-title branch 3 times, most recently from b133615 to dbd8074 Compare February 29, 2024 23:51
@gavtroy
gavtroy force-pushed the total-in-title branch 2 times, most recently from a602f23 to 8c07dde Compare March 8, 2024 00:37
@gavtroy gavtroy changed the title Add total time to header of Library + Queue views Make trackwin heading format configurable, etc. Mar 8, 2024
@pgaskin
pgaskin self-requested a review September 2, 2024 19:42

@pgaskin pgaskin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested, code looks good, changes are really well though-out.

I especially like the statusline change; it makes significantly more room for the progress bar in your other PR, makes the volume mouse binding more intuitive, and looks cleaner overall.

The other changes like showing the track count during updates (especially now that the library total is moved to the list header) and showing the album/artist in the normal header are also nice.

@pgaskin

pgaskin commented Sep 9, 2024

Copy link
Copy Markdown
Member

@flyingmutant, and this should be rebase-merged rather than squashed.

@pgaskin

pgaskin commented Sep 11, 2024

Copy link
Copy Markdown
Member

@flyingmutant

Was: "Artist / Album     | Track                             Library "
Now: "Library            | Artist ABC - Album XYZ       1999 1:23:01 "

Remove Year from the default track line formats as it tends to be the
same for every track.
Plus remove %{total} from the statusline and move volume to the right.

This is a more intuitive place for volume, particularly following:
 * 971204b - Add mouse bindings for right third of status bar

These `format_statusline` changes will not be seen by existing users but
will be the default for new users.
This is just to give a sense of progress now that the default status
line no longer shows the library duration. It felt a bit bloated to
print it all the time though.

(And fix typo in an existing check.)
@flyingmutant
flyingmutant merged commit 67cbbe2 into cmus:master Sep 14, 2024
pgaskin added a commit to pgaskin/cmus that referenced this pull request Oct 23, 2024
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 added a commit to pgaskin/cmus that referenced this pull request Oct 23, 2024
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.
flyingmutant pushed a commit that referenced this pull request Oct 26, 2024
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.
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