Code Monkey home page Code Monkey logo

surge's Introduction

surge

Command-line YouTube-based music player. Dependencies:

* rust-nightly
* youtube-dl
* libmpv
* A valid YouTube api key
* A terminal which supports truecolor

First time setup

<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.

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
  • download toggles download mode (to download the audio file instead of streaming straight to libmpv)

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

surge's People

Contributors

sevagh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.