Skip to content

Commit 195b6cc

Browse files
authored
Merge pull request #31 from GuardKenzie/command-line
Added command line for adding songs to the playlist
2 parents 7d0fea1 + 3cb3ccc commit 195b6cc

File tree

5 files changed

+436
-21
lines changed

5 files changed

+436
-21
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ To use `shift` as a modifier, capitalize the keybinding (i.e. `shift + p` become
8080
| `shuffle` |
8181
| `repeat` |
8282
| `delete` |
83+
| `command_line` |
8384

8485

8586
### theme
@@ -92,6 +93,8 @@ Make it yours!
9293
| time_color | The color for the time stamp |
9394
| bar_body | A single character to use for the body of the progress bar |
9495
| bar_head | A single character to use for the head of the progress bar |
96+
| command_sep | Characters used to seperate the command line |
97+
| command_char | Characters to indicate the command line is open |
9598

9699
The following terminal colors can be used:
97100
* `black`
@@ -126,9 +129,43 @@ You can also use the magic colour called `auto`. If you pick it, the player will
126129
| Shift + down | Move selected song down |
127130
| x | Shuffle playlist |
128131
| r | Toggle repeat |
132+
| : | Open command line |
129133

130134
These keybinds can be changed by editing the config file. See the [`config.example`](config.example) file for the format.
131135

136+
## The command line
137+
138+
The command line can be used to add songs to the current playlist. To launch it, press the `command_line` button (that's `:` by default). The command line supports some tab completion but you cannot move the caret left or right (yet).
139+
140+
The format is as follows:
141+
142+
```
143+
[hierarchy] [tag1/tag2/tag3/...tagN]
144+
```
145+
146+
![hierarchy](img/cmd.png)
147+
148+
* You do not have to populate all the tags. if you type, for example, `artist Phoebe Bridgers/` and hit enter, all of Phoebe's music in your library will be added to the playlist.
149+
150+
* **NOTE** You do not type the seperator! It is added automatically. Just use a space!
151+
152+
The hierarchy controls the order of the tags and what each tag represents. Currently there are 4 available hierarchies with plans to add user configurable ones in the future.
153+
154+
### Hierarchies
155+
| Hierarchy | Tag format |
156+
| --------- | ----------------- |
157+
| album | album/song |
158+
| artist | artist/song |
159+
| song | song |
160+
| aa | artist/album/song |
161+
162+
163+
### Command line keys
164+
165+
| Key | Action |
166+
|--------|-------------------------------------------------|
167+
| Escape | Exit command line |
168+
| Enter | Attempt to add the current tags to the playlist |
132169

133170
## F.A.Q.
134171
- **Q:** Album art is not showing up.

0 commit comments

Comments
 (0)