1 unstable release
Uses old Rust 2015
0.2.0 | Aug 19, 2017 |
---|---|
0.1.1 |
|
0.1.0 |
|
#13 in #youtube-dl
16KB
397 lines
surge
Command-line YouTube-based music player. System dependencies:
* youtube-dl
* libmpv
* A valid YouTube api key
You must run surge
with the YouTube API key as the first (and only) argument:
alias surge='surge $(cat ~/yt_api_key)'
Play music
search
populates aVec
of 5 current resultscycle
cycles throughplay <selection>
plays the selection immediatelyqueue <selection>
queues the selectionrelated
populates theVec
with 5 related videospause/play
pauses and resumesstop
stops the player and clears the queueloop
toggles loop mode
Readline
Surge uses rustyline
which is a pure-Rust implementation of GNU Readline. It supports command history and other readline goodies:
- Emacs navigation keys
- Ctrl-R for reverse search
- Up/down arrows to cycle through commands
Dependencies
~11–21MB
~324K SLoC