surge

Crates.iosurge
lib.rssurge
version0.2.0
sourcesrc
created_at2017-05-31 13:37:04.527502
updated_at2017-08-19 18:51:42.413347
descriptioncli/daemon for music
homepage
repositoryhttps://github.com/sevagh/surge
max_upload_size
id17046
size26,743
Sevag H (sevagh)

documentation

README

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 a Vec of 5 current results
  • cycle cycles through
  • play <selection> plays the selection immediately
  • queue <selection> queues the selection
  • related populates the Vec with 5 related videos
  • pause/play pauses and resumes
  • stop stops the player and clears the queue
  • loop 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
Commit count: 21

cargo fmt