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
|
A MPD client in Rust
|
||||||
|
|
||||||
|
## rmptui in action
|
||||||
|

|
||||||
|
|
||||||
### Keys
|
### Keys
|
||||||
- `q` OR `Ctr+C` to quit
|
- `q` OR `Ctr+C` to quit
|
||||||
- `p` to toggle pause
|
- `p` to toggle pause
|
||||||
|
|
@ -23,6 +27,7 @@ A MPD client in Rust
|
||||||
- `U` to update the MPD database
|
- `U` to update the MPD database
|
||||||
- `r` to toggle repeat
|
- `r` to toggle repeat
|
||||||
- `z` to toggle random
|
- `z` to toggle random
|
||||||
|
- `/` to search
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
- [x] fix performance issues
|
- [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::Pause) => app.conn.pause(),
|
||||||
Some(Command::Toggle) => app.conn.toggle_pause(),
|
Some(Command::Toggle) => app.conn.toggle_pause(),
|
||||||
_ => {
|
_ => {
|
||||||
let mut vec: Vec<RSong> = Vec::new();
|
// let mut vec: Vec<RSong> = Vec::new();
|
||||||
for filename in app.conn.songs_filenames {
|
// for filename in app.conn.songs_filenames {
|
||||||
let song = RSong::new(&mut app.conn.conn, filename);
|
// let song = RSong::new(&mut app.conn.conn, filename);
|
||||||
vec.push(song);
|
// vec.push(song);
|
||||||
}
|
// }
|
||||||
println!("{:#?}", vec);
|
// println!("{:#?}", vec);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue