Improved seek command to allow more units (#682)

* `seek` command accepts fancy duration

* Use default formatting

* Better var naming

* Documented `seek` command
This commit is contained in:
cyqsimon
2021-12-27 16:28:49 +08:00
committed by GitHub
parent 0947a074d9
commit e0ec759730
4 changed files with 101 additions and 26 deletions

View File

@@ -265,6 +265,7 @@ The following commands are supported:
| `logout` | Remove any cached credentials from disk and quit `ncspot`. |
| `toggle` | Toggle playback. |
| `stop` | Stop playback. |
| `seek [+\|-]<time>` | Seek to the specified position, or seek relative to current position by prepending `+`/`-`. Supports mixing time units (e.g. `seek 1m42s`). Default unit is `millisecond`. |
| `previous` | Play previous track. |
| `next` | Play next track. |
| `clear` | Clear playlist. |