update bindings, indicate that saving a queue can overwrite playlist
closes #60
This commit is contained in:
@@ -27,8 +27,6 @@ future. Contributions welcome, but please be kind ;)
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
* Build using `cargo build --release`
|
* Build using `cargo build --release`
|
||||||
* The initial screen is the debug log. Press `F1` for the queue and `F2` to
|
|
||||||
search for a track. More key bindings are described below.
|
|
||||||
* For debugging, pass a debug log filename, e.g. `ncspot -d debug.log`
|
* For debugging, pass a debug log filename, e.g. `ncspot -d debug.log`
|
||||||
|
|
||||||
### Key Bindings
|
### Key Bindings
|
||||||
@@ -40,11 +38,12 @@ have them configurable.
|
|||||||
* `F1`: Queue
|
* `F1`: Queue
|
||||||
* `c` clears the entire queue
|
* `c` clears the entire queue
|
||||||
* `d` deletes the currently selected track
|
* `d` deletes the currently selected track
|
||||||
* `s` opens a dialog to save the queue to a playlist
|
* `Ctrl-s` opens a dialog to save the queue to a playlist
|
||||||
* `F2`: Search
|
* `F2`: Search
|
||||||
* `F3`: Playlists
|
* `F3`: Library
|
||||||
* `d` deletes the currently selected playlist
|
* `d` deletes the currently selected playlist
|
||||||
* Tracks and playlists can be played using `Return` and queued using `Space`
|
* Tracks and playlists can be played using `Return` and queued using `Space`
|
||||||
|
* `s` will save or remove the currently selected track to your library
|
||||||
* `Shift-p` toggles playback of a track
|
* `Shift-p` toggles playback of a track
|
||||||
* `Shift-s` stops a track
|
* `Shift-s` stops a track
|
||||||
* `Shift-r` updates the playlist cache
|
* `Shift-r` updates the playlist cache
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
|
use cursive::traits::Boxable;
|
||||||
use cursive::view::Identifiable;
|
use cursive::view::Identifiable;
|
||||||
use cursive::views::*;
|
use cursive::views::*;
|
||||||
use cursive::{CbSink, Cursive};
|
use cursive::{CbSink, Cursive};
|
||||||
@@ -20,10 +21,16 @@ pub fn create_credentials(path: &Path) -> Result<RespotCredentials, String> {
|
|||||||
.title("Spotify login")
|
.title("Spotify login")
|
||||||
.content(
|
.content(
|
||||||
ListView::new()
|
ListView::new()
|
||||||
.child("Username", EditView::new().with_id("spotify_user"))
|
.child(
|
||||||
|
"Username",
|
||||||
|
EditView::new().with_id("spotify_user").fixed_width(18),
|
||||||
|
)
|
||||||
.child(
|
.child(
|
||||||
"Password",
|
"Password",
|
||||||
EditView::new().secret().with_id("spotify_password"),
|
EditView::new()
|
||||||
|
.secret()
|
||||||
|
.with_id("spotify_password")
|
||||||
|
.fixed_width(18),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.button("Login", |s| {
|
.button("Login", |s| {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ impl QueueView {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let dialog = Dialog::new()
|
let dialog = Dialog::new()
|
||||||
.title("Save to existing or new playlist?")
|
.title("Create new or overwrite existing playlist?")
|
||||||
.dismiss_button("Cancel")
|
.dismiss_button("Cancel")
|
||||||
.padding((1, 1, 1, 0))
|
.padding((1, 1, 1, 0))
|
||||||
.content(ScrollView::new(list_select));
|
.content(ScrollView::new(list_select));
|
||||||
|
|||||||
Reference in New Issue
Block a user