« get me outta code hell

README.md - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/README.md
blob: 55f5e8213b5e67acdb0bb4638a402492332f419f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
![Screenshot of the player](screenshot.png)

## Installation

You will need a relatively recent version of [Node.js](https://nodejs.org/en/).

```
# Please do note --recursive. It clones git submodules.
git clone --recursive https://git.ed1.club/florrie/mtui.git
cd mtui
npm install
npm link  # Or sudo npm link
mtui  # Or node .
```

Add music to the `~/Music` folder to make it show up in mtui, or pass `mtui` a
playlist.json file (usually generated by http-music or downloaded from online).

## Keybindings

* <kbd><kbd>Ctrl</kbd>+<kbd>C</kbd></kbd> - exit
* <kbd>Up</kbd> and <kbd>Down</kbd> - select previous or next item in a listing
* <kbd>Tab</kbd> and <kbd><kbd>Shift</kbd>+<kbd>Tab</kbd></kbd> - switch between UI elements
* <kbd>1</kbd> - focus the main track/group listing
* <kbd>2</kbd> - focus the queue listing
* <kbd>t</kbd> and <kbd>T</kbd> (shift+T) - switch between playlist tabs
* <kbd>Enter</kbd> - play the selected track
* <kbd><kbd>Shift</kbd>+<kbd>Up</kbd></kbd> or <kbd>p</kbd> - play previous track
* <kbd><kbd>Shift</kbd>+<kbd>Down</kbd></kbd> or <kbd>n</kbd> - play next track
* <kbd>Space</kbd> - toggle pause
* <kbd>Escape</kbd> - stop playing the current track
* <kbd>Right</kbd> - seek ahead
* <kbd>Left</kbd> - seek back
* <kbd><kbd>Ctrl</kbd>+<kbd>O</kbd></kbd> - open a playlist from a source (like a /path/to/a/folder or a YouTube playlist URL) (you can also just pass this source to `mtui`)
* **In the main listing:**
  * <kbd>Enter</kbd> - if the selected item is a group, enter it; otherwise play it
  * <kbd>Backspace</kbd> - leave the current group (if in one)
  * <kbd>q</kbd> - queue the selected track or group to play after any other items in the queue (usually after the current track)
  * <kbd>Q</kbd> (shift+Q) - queue the selected group, but shuffled
  * <kbd>d</kbd> - download the selected track (but don't play it)
* **In the queue listing:**
  * <kbd>s</kbd> - shuffle the queue
  * <kbd>c</kbd> - clear the queue
  * <kbd>Backspace</kbd> - remove the selected track from the queue
* **In path displays:** (Path displays are the things that show below the main and queue listings. They show the path of groups to the selected item in the listing.)
  * <kbd>Enter</kbd> or <kbd>Space</kbd> - view the selected item in the main listing
  * <kbd>Left</kbd> and <kbd>Right</kbd> - navigate the path display