add screenshot
This commit is contained in:
parent
91a7aeab42
commit
e500c52e47
|
|
@ -1,5 +1,9 @@
|
|||
## rmptui (Rust Music Player TUI(💀))
|
||||
A MPD client in Rust
|
||||
|
||||
## rmptui in action
|
||||

|
||||
|
||||
### 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
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
12
src/main.rs
12
src/main.rs
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue