summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-10-05 06:44:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-10-06 03:29:32 +0200
commitc6e337e5c5a03337001d204fba4b4959a8e411be (patch)
treee6dcf7326dff891c4b2eac44e30c367f18caf369
parent53ac2cf2c0b44a63d7563e6df1bd534b4388735c (diff)
downloadnncmpp-c6e337e5c5a03337001d204fba4b4959a8e411be.tar.gz
nncmpp-c6e337e5c5a03337001d204fba4b4959a8e411be.tar.xz
nncmpp-c6e337e5c5a03337001d204fba4b4959a8e411be.zip
Add some actions for songs
-rw-r--r--nncmpp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 59dc36c..03d5cdf 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -1195,6 +1195,11 @@ app_goto_tab (int tab_index)
XX( MPD_VOLUME_UP, "Increase volume" ) \
XX( MPD_VOLUME_DOWN, "Decrease volume" ) \
\
+ XX( MPD_ADD, "Add song to playlist" ) \
+ XX( MPD_REPLACE, "Replace playlist with song" ) \
+ \
+ XX( CHOOSE, "Choose item" ) \
+ \
XX( SCROLL_UP, "Scroll up" ) \
XX( SCROLL_DOWN, "Scroll down" ) \
\
@@ -1474,6 +1479,10 @@ g_default_bindings[] =
{ "C-f", USER_ACTION_GOTO_PAGE_NEXT },
// Not sure how to set these up, they're pretty arbitrary so far
+ { "Enter", USER_ACTION_CHOOSE },
+ { "a", USER_ACTION_MPD_ADD },
+ { "r", USER_ACTION_MPD_REPLACE },
+
{ "Left", USER_ACTION_MPD_PREVIOUS },
{ "Right", USER_ACTION_MPD_NEXT },
{ "h", USER_ACTION_MPD_PREVIOUS },