add screenshot

This commit is contained in:
krolxon 2024-04-26 17:09:57 +05:30
parent 91a7aeab42
commit e500c52e47
3 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,9 @@
## rmptui (Rust Music Player TUI(💀))
A MPD client in Rust
## rmptui in action
![](https://raw.githubusercontent.com/krolyxon/rmptui/master/assets/ss.png)
### Keys
- `q` OR `Ctr+C` to quit
- `p` to toggle pause
@ -23,6 +27,7 @@ A MPD client in Rust
- `U` to update the MPD database
- `r` to toggle repeat
- `z` to toggle random
- `/` to search
### TODO
- [x] fix performance issues

BIN
assets/ss.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -37,12 +37,12 @@ fn main() -> AppResult<()> {
Some(Command::Pause) => app.conn.pause(),
Some(Command::Toggle) => app.conn.toggle_pause(),
_ => {
let mut vec: Vec<RSong> = Vec::new();
for filename in app.conn.songs_filenames {
let song = RSong::new(&mut app.conn.conn, filename);
vec.push(song);
}
println!("{:#?}", vec);
// let mut vec: Vec<RSong> = Vec::new();
// for filename in app.conn.songs_filenames {
// let song = RSong::new(&mut app.conn.conn, filename);
// vec.push(song);
// }
// println!("{:#?}", vec);
}
}