This is a plugin for ranger file manager that adds 3 custom commands for interacting with cmus audio player:
:cmus_play
: sending files/folders to playlist.:cmus_lib
: adding files/folders to library.:cmus_queue
: enqueuing files/folders.
Clone this repo into ranger plugins folder.
cd ~/.config/ranger/plugins/
git clone https://github.com/maximtrp/ranger-cmus.git
Just select or mark some files/folders and enter one of the commands, e.g. :cmus_play
.
You can also add these lines to ~/.config/ranger/rc.conf
to use these keyboard shortcuts (ep
, el
, eq
):
map ep cmus_play
map el cmus_lib
map eq cmus_queue