tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit e456776063b61d339205c84bf884d0eeb761e57b
parent 0506cc2f1177aab8361a48dc109a538b55e0bb64
Author: Louis Burda <quent.burda@gmail.com>
Date:   Wed, 26 Jan 2022 17:52:01 +0100

Make track_show_playlist keybind switch panes automatically

Diffstat:
Msrc/main.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c @@ -1117,7 +1117,13 @@ main_input(wint_t c) player_prev(); break; case L'P': - track_show_playlist ^= 1; + if (track_show_playlist) { + pane_sel = tag_pane; + track_show_playlist = 0; + } else { + pane_sel = track_pane; + track_show_playlist = 1; + } break; case L'A': player->autoplay ^= 1;