[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mpv 6cf13615a7 49/50: Add commands to go to next/prev entr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mpv 6cf13615a7 49/50: Add commands to go to next/prev entry on the playlist (#20) |
Date: |
Tue, 28 Dec 2021 00:58:44 -0500 (EST) |
branch: elpa/mpv
commit 6cf13615a7e1d12ee138d28340e1832cc85213ee
Author: Hitoshi Uchida <uchida@w3.org>
Commit: GitHub <noreply@github.com>
Add commands to go to next/prev entry on the playlist (#20)
---
README.md | 1 +
mpv.el | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/README.md b/README.md
index cecebce604..40f80900e2 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,7 @@ Among others, mpv.el provides
- `mpv-volume-increase` / `mpv-speed-volume`
- `mpv-insert-playback-position`
- `mpv-seek-to-position-at-point`
+- `mpv-playlist-next` / `mpv-playlist-prev`
Apart from that, just have a look at the interactive functions in
[mpv.el](mpv.el) or the [wiki][] for tips on configuration.
diff --git a/mpv.el b/mpv.el
index 5b9847538e..4dabe16230 100644
--- a/mpv.el
+++ b/mpv.el
@@ -387,6 +387,18 @@ of \\[universal-argument] will add another `mpv-seek-step'
seconds."
(interactive)
(mpv--enqueue '("revert-seek") #'ignore))
+;;;###autoload
+(defun mpv-playlist-next ()
+ "Go to the next entry on the playlist."
+ (interactive)
+ (mpv--enqueue '("playlist-next") #'ignore))
+
+;;;###autoload
+(defun mpv-playlist-prev ()
+ "Go to the previous entry on the playlist."
+ (interactive)
+ (mpv--enqueue '("playlist-prev") #'ignore))
+
;;;###autoload
(defun mpv-version ()
"Return the mpv version string.
- [nongnu] elpa/mpv ce3bbfac36 22/50: add mpv-default-options, (continued)
- [nongnu] elpa/mpv ce3bbfac36 22/50: add mpv-default-options, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 9ef359d712 20/50: fix generation of autoloads, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 9ff4d5d80b 25/50: fix mpv-insert-playback-position, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 705e81b8a6 42/50: Make mpv-version more verbose and update its docstring as suggested, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv ed83369372 39/50: Fix mpv-seek-to-position-at-point for start-of-playback position, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 2d24187f7b 43/50: Merge pull request #9 from firmart/patch-mpv-version, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv ed9c7b0028 21/50: move functions to public interface, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv ec4929ad5d 19/50: fix package header for melpa, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 9bd6d36cc7 50/50: Fix #16, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 32f1478ed2 33/50: Remove dependency on names package, ELPA Syncer, 2021/12/28
- [nongnu] elpa/mpv 6cf13615a7 49/50: Add commands to go to next/prev entry on the playlist (#20),
ELPA Syncer <=