-
Notifications
You must be signed in to change notification settings - Fork 12
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
Echo relevant info from mpc status
in interactive simple-mpc* functions
#16
base: master
Are you sure you want to change the base?
Conversation
Oh, hmm, I didn't realize that pushing to my master branch would add more to this PR, but I guess that's okay. The last commit adds functionality for toggling single status. |
Forgot the copyright notice. |
mpc status
in interactive simple-mpc* functions
370d443
to
ca083d0
Compare
I moved the code which displayed the full stdout of I've not yet noticed any bugs in the remaining code. |
I think this macro makes it easier to read what's going on.
eb2cc6c
to
c9aeb85
Compare
This is more robust and easier than using buffer movements.
Replaces simple-mpc-message-current-volume.
Replaces simple-mpc-get-current-playlist-position.
Replaces simple-mpc-get-amount-of-songs-in-playlist.
c9aeb85
to
40406f7
Compare
I rewrote this functionality to extract bits of information from mpc status with regular expressions rather than buffer movement. |
@jorenvo if you decide to merge, I am happy to squash these commits. |
Add helper functions to extract specific pieces of information from
mpc status
in a hacky way. Echo the extracted information on relevant commands.Also, display mpc status in the simple-mpc buffer. This functionality could be improved, since it only updated when the buffer is reverted (by pressing
g
or callingsimple-mpc
again). Functions which changes the status, e.g.,simple-mpc-toggle
, do not update the buffer.