Commit fd6cbf79 authored by Rafaël Carré's avatar Rafaël Carré

ncurses: add a 'g' shortcut to go to the current playing item

parent 16fcd880
...@@ -537,6 +537,9 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) ...@@ -537,6 +537,9 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
return 1; return 1;
/* Playlist navigation */ /* Playlist navigation */
case 'g':
FindIndex( p_intf );
break;
case KEY_HOME: case KEY_HOME:
p_sys->i_box_plidx = 0; p_sys->i_box_plidx = 0;
break; break;
...@@ -1507,6 +1510,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh ) ...@@ -1507,6 +1510,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
MainBoxWrite( p_intf, l++, 1, " R Toggle Repeat item" ); MainBoxWrite( p_intf, l++, 1, " R Toggle Repeat item" );
MainBoxWrite( p_intf, l++, 1, " o Order Playlist by title" ); MainBoxWrite( p_intf, l++, 1, " o Order Playlist by title" );
MainBoxWrite( p_intf, l++, 1, " O Reverse order Playlist by title" ); MainBoxWrite( p_intf, l++, 1, " O Reverse order Playlist by title" );
MainBoxWrite( p_intf, l++, 1, " g Go to the current playing item" );
MainBoxWrite( p_intf, l++, 1, " / Look for an item" ); MainBoxWrite( p_intf, l++, 1, " / Look for an item" );
MainBoxWrite( p_intf, l++, 1, " A Add an entry" ); MainBoxWrite( p_intf, l++, 1, " A Add an entry" );
MainBoxWrite( p_intf, l++, 1, " D, <del> Delete an entry" ); MainBoxWrite( p_intf, l++, 1, " D, <del> Delete an entry" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment