Krolyxon
Commit 18e4ead

rmptui18e4ead

add '+' to increase volume

Author
krolxon
Date
2024-05-16 19:14 +0530
Parent
2c000b2
Commit
18e4ead3e004252cd8d38d559fed10f4cec7f1ae

+31 −31

2 files changed

  1. M README.md +30 −30
  2. M src/event/handler.rs +1 −1
M README.md View
@@ -9,36 +9,36 @@ rmptui is a minimal tui mpd client made with rust.
99 ![](https://raw.githubusercontent.com/krolyxon/rmptui/master/assets/ss.png)
1010
1111 ### 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 |
4242
4343 ### Prerequisites
4444 - [MPD](https://wiki.archlinux.org/title/Music_Player_Daemon) installed and configured.
M src/event/handler.rs View
@@ -119,7 +119,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
119119 }
120120
121121 // Volume controls
122− KeyCode::Char('=') => {
122+ KeyCode::Char('=') | KeyCode::Char('+') => {
123123 app.conn.inc_volume(2);
124124 app.conn.update_status();
125125 }