Compare commits
2 Commits
dcb2829e9b
...
f05be01fba
Author | SHA1 | Date | |
---|---|---|---|
f05be01fba | |||
14dba91dd1 |
4
NEWS
4
NEWS
@ -11,8 +11,12 @@ Unreleased
|
|||||||
|
|
||||||
* X11: fixed rendering of overflowing, partially visible list items
|
* X11: fixed rendering of overflowing, partially visible list items
|
||||||
|
|
||||||
|
* Added a "o" binding to select the currently playing song
|
||||||
|
|
||||||
* Added Readline-like M-u, M-l, M-c editor bindings
|
* Added Readline-like M-u, M-l, M-c editor bindings
|
||||||
|
|
||||||
|
* Changed volume adjustment bindings to use +/- keys
|
||||||
|
|
||||||
|
|
||||||
2.0.0 (2022-09-03)
|
2.0.0 (2022-09-03)
|
||||||
|
|
||||||
|
@ -46,6 +46,8 @@ CENTER_CURSOR, Center the cursor
|
|||||||
MOVE_UP, Move selection up
|
MOVE_UP, Move selection up
|
||||||
MOVE_DOWN, Move selection down
|
MOVE_DOWN, Move selection down
|
||||||
|
|
||||||
|
GOTO_PLAYING, Go to playing song
|
||||||
|
|
||||||
GOTO_TOP, Go to top
|
GOTO_TOP, Go to top
|
||||||
GOTO_BOTTOM, Go to bottom
|
GOTO_BOTTOM, Go to bottom
|
||||||
GOTO_ITEM_PREVIOUS, Go to previous item
|
GOTO_ITEM_PREVIOUS, Go to previous item
|
||||||
|
@ -117,8 +117,8 @@ as in the snippet above. To replace the default volume control bindings, use:
|
|||||||
|
|
||||||
....
|
....
|
||||||
normal = {
|
normal = {
|
||||||
"M-PageUp" = "pulse-volume-up"
|
"+" = "pulse-volume-up"
|
||||||
"M-PageDown" = "pulse-volume-down"
|
"-" = "pulse-volume-down"
|
||||||
}
|
}
|
||||||
....
|
....
|
||||||
|
|
||||||
|
12
nncmpp.c
12
nncmpp.c
@ -3021,6 +3021,7 @@ g_normal_defaults[] =
|
|||||||
{ "C-PageUp", ACTION_TAB_PREVIOUS },
|
{ "C-PageUp", ACTION_TAB_PREVIOUS },
|
||||||
{ "C-PageDown", ACTION_TAB_NEXT },
|
{ "C-PageDown", ACTION_TAB_NEXT },
|
||||||
|
|
||||||
|
{ "o", ACTION_GOTO_PLAYING },
|
||||||
{ "Home", ACTION_GOTO_TOP },
|
{ "Home", ACTION_GOTO_TOP },
|
||||||
{ "End", ACTION_GOTO_BOTTOM },
|
{ "End", ACTION_GOTO_BOTTOM },
|
||||||
{ "M-<", ACTION_GOTO_TOP },
|
{ "M-<", ACTION_GOTO_TOP },
|
||||||
@ -3072,8 +3073,8 @@ g_normal_defaults[] =
|
|||||||
{ "Space", ACTION_MPD_TOGGLE },
|
{ "Space", ACTION_MPD_TOGGLE },
|
||||||
{ "C-Space", ACTION_MPD_STOP },
|
{ "C-Space", ACTION_MPD_STOP },
|
||||||
{ "u", ACTION_MPD_UPDATE_DB },
|
{ "u", ACTION_MPD_UPDATE_DB },
|
||||||
{ "M-PageUp", ACTION_MPD_VOLUME_UP },
|
{ "+", ACTION_MPD_VOLUME_UP },
|
||||||
{ "M-PageDown", ACTION_MPD_VOLUME_DOWN },
|
{ "-", ACTION_MPD_VOLUME_DOWN },
|
||||||
},
|
},
|
||||||
g_editor_defaults[] =
|
g_editor_defaults[] =
|
||||||
{
|
{
|
||||||
@ -3343,6 +3344,13 @@ current_tab_on_action (enum action action)
|
|||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
const char *id;
|
const char *id;
|
||||||
|
case ACTION_GOTO_PLAYING:
|
||||||
|
if (g.song < 0 || (size_t) g.song >= tab->item_count)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
tab->item_selected = g.song;
|
||||||
|
app_ensure_selection_visible ();
|
||||||
|
return true;
|
||||||
case ACTION_MOVE_UP:
|
case ACTION_MOVE_UP:
|
||||||
return current_tab_move_selection (-1);
|
return current_tab_move_selection (-1);
|
||||||
case ACTION_MOVE_DOWN:
|
case ACTION_MOVE_DOWN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user