diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-01-26 17:52:01 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-01-26 17:52:01 +0100 |
| commit | e456776063b61d339205c84bf884d0eeb761e57b (patch) | |
| tree | 23ae453e436e165885feaa2e44d39342bb986bcb | |
| parent | 0506cc2f1177aab8361a48dc109a538b55e0bb64 (diff) | |
| download | tmus-e456776063b61d339205c84bf884d0eeb761e57b.tar.gz tmus-e456776063b61d339205c84bf884d0eeb761e57b.zip | |
Make track_show_playlist keybind switch panes automatically
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |
