« 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: db5a817cd42e8d889f7b23f18720adcf456c94ee (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
![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>Enter</kbd> - play the selected track
* <kbd><kbd>Shift</kbd>+<kbd>Up</kbd></kbd> - play previous track
* <kbd><kbd>Shift</kbd>+<kbd>Down</kbd></kbd> - play next track
* <kbd>Space</kbd>, <kbd>p</kbd>, or <kbd>k</kbd> - toggle pause
* <kbd>Escape</kbd> - stop playing the current track
* <kbd>Right</kbd> or <kbd>l</kbd> - seek ahead
* <kbd>Left</kbd> or <kbd>j</kbd> - seek back
* **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 to play after any other items in the queue (usually after the current track)
  * <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