From: Kalle Wallin Date: Mon, 22 Mar 2004 18:08:17 +0000 (+0000) Subject: Added commands FIND and FIND_NEXT. X-Git-Tag: v0.12_alpha1~675 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=60edfc515dce2963f426450d3e66e51521645252;p=ncmpc.git Added commands FIND and FIND_NEXT. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@367 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/command.c b/command.c index cd2fd53..67e1a69 100644 --- 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" }, diff --git a/command.h b/command.h index efb3c27..1ad7b1d 100644 --- 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,