add '+' to increase volume

This commit is contained in:
krolxon 2024-05-16 19:14:59 +05:30
parent 0b184ec714
commit 5d4e428f97
2 changed files with 31 additions and 31 deletions

View File

@ -11,22 +11,22 @@ rmptui is a minimal tui mpd client made with rust.
### Keys
| Key | Action |
| --- | --- |
| `q` OR `Ctr+C` | Quit |
| `q`/`Ctr+C` | Quit |
| `p` | Toggle pause |
| `+` | Increase volume |
| `+`/'=' | Increase volume |
| `-` | Decrease volume |
| `D` | Get dmenu prompt |
| `j` OR `Down` | Scroll down |
| `k` OR `Up` | Scroll up |
| `j`/`Down` | Scroll down |
| `k`/`Up` | Scroll up |
| `J` | Swap highlighted song with next one |
| `K` | Swap highlighted song with previous one |
| `l` OR `Right` | Add song to playlist or go inside the directory |
| `h` OR `Left` | Go back to previous directory |
| `l`/`Right` | Add song to playlist or go inside the directory |
| `h`/`Left` | Go back to previous directory |
| `Tab` | Cycle through tabs |
| `1` | Go to queue |
| `2` | Go to directory browser |
| `3` | Go to playlists view |
| `Enter` OR `l` OR `Right` | Add song/playlist to current playlist |
| `Enter`/`l`/`Right` | Add song/playlist to current playlist |
| `a` | Append the song to current playing queue |
| `Space`/`BackSpace` | Delete the highlighted song from queue |
| `f` | Go forwards |

View File

@ -119,7 +119,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
}
// Volume controls
KeyCode::Char('=') => {
KeyCode::Char('=') | KeyCode::Char('+') => {
app.conn.inc_volume(2);
app.conn.update_status();
}