rmptui18e4ead
add '+' to increase volume
+31 −31
2 files changed
- M README.md +30 −30
- M src/event/handler.rs +1 −1
| @@ -9,36 +9,36 @@ rmptui is a minimal tui mpd client made with rust. | |||
| 9 | 9 |  | |
| 10 | 10 | ||
| 11 | 11 | ### Keys | |
| 12 | − | | Key | Action | | |
| 13 | − | | --- | --- | | |
| 14 | − | | `q` OR `Ctr+C` | Quit | | |
| 15 | − | | `p` | Toggle pause | | |
| 16 | − | | `+` | Increase volume | | |
| 17 | − | | `-` | Decrease volume | | |
| 18 | − | | `D` | Get dmenu prompt | | |
| 19 | − | | `j` OR `Down` | Scroll down | | |
| 20 | − | | `k` OR `Up` | Scroll up | | |
| 21 | − | | `J` | Swap highlighted song with next one | | |
| 22 | − | | `K` | Swap highlighted song with previous one | | |
| 23 | − | | `l` OR `Right` | Add song to playlist or go inside the directory | | |
| 24 | − | | `h` OR `Left` | Go back to previous directory | | |
| 25 | − | | `Tab` | Cycle through tabs | | |
| 26 | − | | `1` | Go to queue | | |
| 27 | − | | `2` | Go to directory browser | | |
| 28 | − | | `3` | Go to playlists view | | |
| 29 | − | | `Enter` OR `l` OR `Right` | Add song/playlist to current playlist | | |
| 30 | − | | `a` | Append the song to current playing queue | | |
| 31 | − | | `Space`/`BackSpace` | Delete the highlighted song from queue | | |
| 32 | − | | `f` | Go forwards | | |
| 33 | − | | `b` | Go backwards | | |
| 34 | − | | `>` | Play next song from queue | | |
| 35 | − | | `<` | Play previous song from queue | | |
| 36 | − | | `U` | Update the MPD database | | |
| 37 | − | | `r` | Toggle repeat | | |
| 38 | − | | `z` | Toggle random | | |
| 39 | − | | `/` | Search | | |
| 40 | − | | `g` | Go to top of list | | |
| 41 | − | | `G` | Go to bottom of list | | |
| 12 | + | | Key | Action | | |
| 13 | + | | --- | --- | | |
| 14 | + | | `q`/`Ctr+C` | Quit | | |
| 15 | + | | `p` | Toggle pause | | |
| 16 | + | | `+`/'=' | Increase volume | | |
| 17 | + | | `-` | Decrease volume | | |
| 18 | + | | `D` | Get dmenu prompt | | |
| 19 | + | | `j`/`Down` | Scroll down | | |
| 20 | + | | `k`/`Up` | Scroll up | | |
| 21 | + | | `J` | Swap highlighted song with next one | | |
| 22 | + | | `K` | Swap highlighted song with previous one | | |
| 23 | + | | `l`/`Right` | Add song to playlist or go inside the directory | | |
| 24 | + | | `h`/`Left` | Go back to previous directory | | |
| 25 | + | | `Tab` | Cycle through tabs | | |
| 26 | + | | `1` | Go to queue | | |
| 27 | + | | `2` | Go to directory browser | | |
| 28 | + | | `3` | Go to playlists view | | |
| 29 | + | | `Enter`/`l`/`Right` | Add song/playlist to current playlist | | |
| 30 | + | | `a` | Append the song to current playing queue | | |
| 31 | + | | `Space`/`BackSpace` | Delete the highlighted song from queue | | |
| 32 | + | | `f` | Go forwards | | |
| 33 | + | | `b` | Go backwards | | |
| 34 | + | | `>` | Play next song from queue | | |
| 35 | + | | `<` | Play previous song from queue | | |
| 36 | + | | `U` | Update the MPD database | | |
| 37 | + | | `r` | Toggle repeat | | |
| 38 | + | | `z` | Toggle random | | |
| 39 | + | | `/` | Search | | |
| 40 | + | | `g` | Go to top of list | | |
| 41 | + | | `G` | Go to bottom of list | | |
| 42 | 42 | ||
| 43 | 43 | ### Prerequisites | |
| 44 | 44 | - [MPD](https://wiki.archlinux.org/title/Music_Player_Daemon) installed and configured. | |
| @@ -119,7 +119,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { | |||
| 119 | 119 | } | |
| 120 | 120 | ||
| 121 | 121 | // Volume controls | |
| 122 | − | KeyCode::Char('=') => { | |
| 122 | + | KeyCode::Char('=') | KeyCode::Char('+') => { | |
| 123 | 123 | app.conn.inc_volume(2); | |
| 124 | 124 | app.conn.update_status(); | |
| 125 | 125 | } | |