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

Remember the last-played track in the playlist view across invocations of cmus #729

Open
philc opened this issue Oct 5, 2017 · 10 comments · May be fixed by #1325
Open

Remember the last-played track in the playlist view across invocations of cmus #729

philc opened this issue Oct 5, 2017 · 10 comments · May be fixed by #1325

Comments

@philc
Copy link

philc commented Oct 5, 2017

I restart cmus multiple times per day because it hangs, stops playing through my sound card, or because of normal reboots due to OSX system updates. I have a very long playlist of ambient background music I listen to at work and have to manually find where I left off and resume playing each time I restart cmus.

It would be nice if cmus remembered its cursor position in the playlist view.

cmus --version
cmus v2.7.1
@jareksprysz
Copy link

Try this: in cmus just write:

:set resume=true

@philc
Copy link
Author

philc commented Feb 16, 2018

@jareksprysz The resume option resumes playback of the last-playing song. What I'm instead looking for is for the cursor position in the playlist to be saved. With resume=true, after cmus starts, once the resumed song finishes playing, the first song in the playlist is played rather than the song in the playlist which is after the currently playing song.

An artifact of this is that in the playlist view, the song that resumes playing after a cmus restart is not highlighted in yellow.

@forthrin
Copy link

@jareksprysz: I would also like this feature. I too have to restart cmus occasionally because it hangs (see #771) or because of occasional severe distortion when using eqMac2 (resolves when restarting cmus). Regardless it's a good idea to remember your position rather than always starting at first artist/album in the alphabet, which is rather arbitrary.

@maiermic
Copy link

It already works to resume playing the library (see resume_load). I suppose we need something like resume.pl_index that works kind of similar to resume.lib_filename for the playlist.

@aksh1618
Copy link

+1 for this feature request. I'd also like this feature, as I use a playlist for recently added tracks and would like it to be resumable.

@emilBeBri
Copy link

+1 here, would be awesome

@carlwarnick
Copy link

+1 also would like this

@ebpetway
Copy link

It appears that this functionality works now with :set resume=true.

@mathieu-lemay
Copy link
Contributor

@ebpetway That option has been present for a long time. It doesn't fix this current issue. See #729 (comment)

@ebpetway
Copy link

@ebpetway That option has been present for a long time. It doesn't fix this current issue. See #729 (comment)

Ah, I misunderstood the thread. 👍

gavtroy added a commit to gavtroy/cmus that referenced this issue Mar 27, 2024
Slightly overengineered as it could be done without a loaded event, but
I wanted to avoid surprising behavior in the unlikely case where the
playlist is cleared offline and then repopulated some time after cmus
was started.

Fixes cmus#729.
@gavtroy gavtroy linked a pull request Mar 27, 2024 that will close this issue
gavtroy added a commit to gavtroy/cmus that referenced this issue Mar 27, 2024
Slightly overengineered as it could be done without a loaded event, but
I wanted to avoid surprising behavior in the unlikely case where the
playlist is cleared offline and then repopulated some time after cmus
was started.

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

Successfully merging a pull request may close this issue.

10 participants