Command-line YouTube-based music player. Dependencies:
* rust-nightly
* youtube-dl
* libmpv
* A valid YouTube api key
* A terminal which supports truecolor
<surge setup> Enter value for yt_api_key: ***
First time setup complete!
surge ♫
surge uses the local subcrate app_setup to perform a first-time configuration, and write the results to ~/.config/surge/surge.ini.
app_setup is not ready to be released yet on crates.io but feel free to use it.
searchpopulates aVecof 5 current resultscyclecycles throughplay <selection>plays the selection immediatelyqueue <selection>queues the selectionrelatedpopulates theVecwith 5 related videospause/playpauses and resumesstopstops the player and clears the queuelooptoggles loop modedownloadtoggles download mode (to download the audio file instead of streaming straight tolibmpv)
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
