Code

Added commands FIND and FIND_NEXT.
authorKalle Wallin <kaw@linux.se>
Mon, 22 Mar 2004 18:08:17 +0000 (18:08 +0000)
committerKalle Wallin <kaw@linux.se>
Mon, 22 Mar 2004 18:08:17 +0000 (18:08 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@367 09075e82-0dd4-0310-85a5-a0d7c8717e4f

command.c
command.h

index cd2fd5338abcce2e0cb996357a892df29636a53f..67e1a6975034d362d149f57cf960349392e96ee5 100644 (file)
--- a/command.c
+++ b/command.c
@@ -45,8 +45,8 @@ static command_definition_t cmds[] =
   { {  13,   0,   0 }, CMD_PLAY, "Play/Enter directory" },
   { { 'p',   0,   0 }, CMD_PAUSE, "Pause" },
   { {  BS, ESC,   0 }, CMD_STOP, "Stop" },
-  { { 'n',   0,   0 }, CMD_TRACK_NEXT, "Next song" },
-  { { 'b',   0,   0 }, CMD_TRACK_PREVIOUS, "Previous song" },
+  { { '>',   0,   0 }, CMD_TRACK_NEXT, "Next song" },
+  { { '<',   0,   0 }, CMD_TRACK_PREVIOUS, "Previous song" },
 
   { { '+', RGHT,  0 }, CMD_VOLUME_UP, "Increase volume" },
   { { '-', LEFT,  0 }, CMD_VOLUME_DOWN, "Decrease volume" },
@@ -64,6 +64,8 @@ static command_definition_t cmds[] =
   { { END,   0,   0 }, CMD_LIST_LAST,          "Move: End" },
   { { PGUP,  0,   0 }, CMD_LIST_PREVIOUS_PAGE, "Move: Page Up" },
   { { PGDN,  0,   0 }, CMD_LIST_NEXT_PAGE,     "Move: Page Down" },
+  { { '/',   0,   0 }, CMD_LIST_FIND,          "Find" },
+  { { 'n',   0,   0 }, CMD_LIST_FIND_NEXT,     "Find Next" },
 
   { { TAB,   0,   0 }, CMD_SCREEN_NEXT,   "Next screen" },
   { { STAB,  0,   0 }, CMD_SCREEN_PREVIOUS, "Previous screen" },
index efb3c2721017d110672b43b85aa5fe91dc06ae3d..1ad7b1dfe23b8cc01ce52b8dc2285e653bc41317 100644 (file)
--- a/command.h
+++ b/command.h
@@ -21,6 +21,8 @@ typedef enum
   CMD_LIST_LAST,
   CMD_LIST_NEXT_PAGE,
   CMD_LIST_PREVIOUS_PAGE,
+  CMD_LIST_FIND,
+  CMD_LIST_FIND_NEXT,
   CMD_SCREEN_PREVIOUS,
   CMD_SCREEN_NEXT,
   CMD_SCREEN_PLAY,