Merge pull request #120 from freijon/master

Changed 'seek' keybinding to match ncmpcpp and added fast-seek
This commit is contained in:
Henrik Friedrichsen
2020-01-22 18:46:38 +01:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -80,7 +80,8 @@ have them configurable.
* `Shift-s` stops a track
* `Shift-u` updates the library cache (tracks, artists, albums, playlists)
* `<` and `>` play the previous or next track
* `,` and `.` to rewind or skip forward
* `f` and `b` to seek forward or backward
* `Shift-f` and `Shift-b` to seek forward or backward in steps of 10s
* `-` and `+` decrease or increase the volume
* `r` to toggle repeat mode
* `z` to toggle shuffle playback

View File

@@ -211,8 +211,10 @@ impl CommandManager {
kb.insert("Ctrl+s".into(), Command::SaveQueue);
kb.insert("d".into(), Command::Delete);
kb.insert("/".into(), Command::Focus("search".into()));
kb.insert(".".into(), Command::Seek(SeekDirection::Relative(500)));
kb.insert(",".into(), Command::Seek(SeekDirection::Relative(-500)));
kb.insert("f".into(), Command::Seek(SeekDirection::Relative(1000)));
kb.insert("b".into(), Command::Seek(SeekDirection::Relative(-1000)));
kb.insert("Shift+f".into(), Command::Seek(SeekDirection::Relative(10000)));
kb.insert("Shift+b".into(), Command::Seek(SeekDirection::Relative(-10000)));
kb.insert("+".into(), Command::VolumeUp);
kb.insert("-".into(), Command::VolumeDown);
kb.insert("r".into(), Command::Repeat(None));