You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clid is a command line app written in Python3 for command-line lovers to edit mp3 files' ID3 tags. This app is different from other
4
-
command line tools to edit tags, as you can edit tags in a graphical interface.(It's like [cmus](https://github.com/cmus/cmus),
5
-
without the player and with a tag editor)
6
-
7
-
Made with a lot of help from
8
-
9
-
-[npyscreen](https://bitbucket.org/npcole/npyscreen), a Python wrapper around ncurses.
10
-
-[stagger](https://github.com/lorentey/stagger), an ID3v1/ID3v2 tag manipulation package written in pure Python 3
11
-
-[configobj](https://github.com/DiffSK/configobj), a Python 3+ compatible port of the configobj library
12
-
- and a laptop with 512 MB RAM(Yeah. I know.)
13
-
14
-
## Changelog
15
-
16
-
### v0.6.3
17
-
18
-
-[x] Vi keybindings
19
-
-[x] Added option for smooth scroll
20
-
-[x] Preferences are now saved when updating the app
21
-
-[x] Validators for `smooth_scroll` and `preview_format`
22
-
-[x] Display a "What's New" Popup when app is run after an update
23
-
24
-
### v0.6.2
25
-
26
-
-[x] Fix: Issue #1 in Github
27
-
-[x] Added key-binding(`u`) for reloading `music_dir`
28
-
-[x] Fix: All option are now aligned properly in preferences view
29
-
-[x] Added validators for preferences(Error message is shown if an error occurs)
3
+
Clid is a command line app for editing tags of mp3 files. Clid is different from other
4
+
command line tools to edit tags, as you can edit tags in a curses based ui.
30
5
6
+

31
7
32
8
## Installation
33
9
34
-
> Note: You should have Python 3 installed, not Python 2, to install and use clid.
35
-
36
-
> Note: You will have to install pip manually if the Python version is < 3.4
37
-
10
+
See wiki for detailed installation instructions.<!--link-->
38
11
39
12
### Using pip
40
13
@@ -50,53 +23,54 @@ $ cd clid
50
23
$ [sudo] python3 setup.py install
51
24
```
52
25
53
-
You can then launch the app by entering `clid` in the command line.
54
-
26
+
### Updating
55
27
56
-
## Usage
28
+
To update the app, run
57
29
58
-
### Viewing Files
30
+
```shell
31
+
$ [sudo] pip install -U clid
32
+
```
59
33
60
-
The main window will show the mp3 files you have in `~/Music`. The interface is similar to that of cmus:
34
+
You can launch the app by entering `clid` in the command line.
61
35
62
-

36
+
## Usage
63
37
64
-
You will have a command line at the bottom of the window, to recieve commands. You will also see a live preview of the
65
-
common tags of the file under the cursor.
38
+
### Quick Start
66
39
67
-
> Note: The status line shows the tags in `artist - album - track_number title` format by default; you can change it in preferences
40
+
1. Move with arrow keys or `j` and `k`.
41
+
2. <kbd>Enter</kbd> to select a file.
42
+
3. Edit the tags.
43
+
4.`OK` to save the tags or `Cancel` to abort edit.
44
+
5. Type `:q` at main window to quit.
68
45
69
-
### Editing Tags
46
+
See the [wiki](#docs/docs/index.md) for documentation and additional details.
47
+
<!--Real link-->
70
48
71
-
To edit the tags of a file, simply hit <kbd>Enter</kbd>(or <kbd>Return</kbd>). You will see a new window:
49
+
## Changelog
72
50
73
-

51
+
### v0.6.3
74
52
75
-
Use the arrow keys to move through the tags; edit them if needed and hit `OK`(or <kbd>Ctrl</kbd> + <kbd>S</kbd>) when you're done. `Cancel`(<kbd>Ctrl</kbd> + <kbd>Q</kbd>) will discard changes.
53
+
-[x] Vi keybindings
54
+
-[x] Added option for smooth scroll
55
+
-[x] Preferences are now saved when updating the app
56
+
-[x] Validators for `smooth_scroll` and `preview_format`
57
+
-[x] Display a "What's New" Popup when app is run after an update
76
58
59
+
### v0.6.2
77
60
78
-
### Editing Preferences
61
+
-[x] Fix: Issue #1 in Github
62
+
-[x] Added key-binding(`u`) for reloading `music_dir`
63
+
-[x] Fix: All option are now aligned properly in preferences view
64
+
-[x] Added validators for preferences(Error message is shown if an error occurs)
79
65
80
-
To edit preferences, press `2`. Then hit <kbd>Enter</kbd> on the highlighted setting to edit it (it will be then shown
81
-
at the bottom of the screen; edit it and hit <kbd>Enter</kbd> again).
Clid is an app for those whose home is the terminal and can't live without a well organized music collection :)
4
-
With clid, you can edit the metadata(tags) of mp3 files, right from the terminal. Awesome ? Let's get started !
3
+
Clid is an app for editing metadata(tags) of mp3 files without leaving the coziness of the terminal ;)
4
+
Clid differs from other command line tools to edit tags, as it provides a curses based ui.
5
5
6
6
## Installation
7
7
@@ -29,50 +29,71 @@ $ cd clid
29
29
$ [sudo] python3 setup.py install
30
30
```
31
31
32
+
### Updating
33
+
34
+
To update the app, run
35
+
36
+
```shell
37
+
$ [sudo] pip install -U clid
38
+
```
39
+
32
40
## Launching The App
33
41
34
-
Enter`clid` in the command line to start the app:
42
+
Type`clid` in the command line to start the app(and `:q` in the main window to quit):
35
43
36
44

37
45
38
-
What do ya think, eh ?
39
-
40
46
## Quick Start
41
47
42
-
The basics are simple:
43
48
1. Move with arrow keys or `j` and `k`.
44
49
2. <kbd>Enter</kbd> to select a file.
45
50
3. Edit the tags.
46
51
4.`OK` to save the tags or `Cancel` to abort edit.
52
+
5. Type `:q` at main window to quit.
47
53
48
54
## Main Window
49
55
50
56
Main window has 3 parts:
51
57
52
58

53
59
54
-
<!--link-->
55
-
1. File viewer, showing files in `~/Music` by default,
56
-
2. Status line , showing live preview of tags of file under cursor,
57
-
3. Command line, which accepts commands.
58
-
60
+
1.[File viewer](#file-viewer), showing files in `~/Music` by default,
61
+
2.[Status line](#status-line), showing live preview of tags of file under cursor,
62
+
3.[Command line](#command-line), which accepts commands.
59
63
60
64
### File Viewer
61
65
62
-
You can see the mp3 files in the selected directory<!--link--> in the main window. You can use <kbd>UpArrow</kbd>,
63
-
<kbd>DownArrow</kbd>, <kbd>j</kbd>, <kbd>k</kbd>, <kbd>Home</kbd>, <kbd>PageUp</kbd>, etc to move around.
64
-
Hit <kbd>Enter</kbd> when you've found the file you want to edit, or batch tag files<!--link-->. You can also search
65
-
for files<!--link-->.
66
+
You can see the mp3 files in the [selected directory](#list-of-available-options) in the main window.
67
+
Files are read every time the app is started. You can use <kbd>UpArrow</kbd>, <kbd>DownArrow</kbd>,
68
+
<kbd>j</kbd>, <kbd>k</kbd>, <kbd>Home</kbd>, <kbd>PageUp</kbd>, etc to move around. Hit <kbd>Enter</kbd>
69
+
when you've found the file you want to edit, or [batch tag files](#tagging-multiple-files-at-once).
70
+
You can also [search for files](#searching-for-files).
71
+
72
+
#### Searching For Files
73
+
74
+
You can search for files by pressing <kbd>/</kbd>. Note that this is only a basic search - it doesn't search the tags
75
+
of every file, only the filename is checked.
76
+
77
+
1. Press <kbd>/</kbd>.
78
+
2. Enter the search term. Results are shown as you type.
79
+
3. Press <kbd>Enter</kbd> to terminate search and navigate search results.
80
+
4. Press <kbd>Esc</kbd> to return to normal view.
81
+
82
+
Your selections for batch tagginf(if any) are kept intact when searching.
83
+
[See a note](#esc-key) on the <kbd>Esc</kbd> key.
66
84
67
85
### Status Line
68
86
69
-
The status line shows a live preview of metadata of file under cursor in the specified format<!--link-->.
70
-
The default format is `artist - album - track_number title`.
87
+

88
+
89
+
The status line shows a live preview of metadata of file under cursor in the
90
+
[specified format](#customizing-tag-preview-format). The default format is
91
+
`artist - album - track_number title`.
71
92
72
93
### Command Line
73
94
74
-
You can execute commands and perform searches from here. Press `:` to enter commands<!--link--> and
75
-
`/` to search<!--link--> for files
95
+
You can execute commands and perform searches from here. Press `:` to enter [commands](#available-commands)
96
+
and `/` to [search for files](#searching-for-files).
76
97
77
98
## Editing Tags
78
99
@@ -91,16 +112,102 @@ saving tags is <kbd>Ctrl</kbd> + <kbd>S</kbd> and canceling is <kbd>Ctrl</kbd> +
91
112
You can batch tag files in clid:
92
113
93
114
1. Select and deselect files with <kbd>Space</kbd> and press <kbd>Enter</kbd> to edit the files. *Note that
94
-
pressing <kbd>Enter</kbd> will also add the file currently under the cursor to list of files that will be edited*.
115
+
pressing <kbd>Enter</kbd> will also add the file currently under the cursor to list of files that will be edited*. You can also search for files and then add them to the list of files to be edited.
116
+
117
+
> Note: Press <kbd>Esc</kbd> to discard selections. [See a note](#esc-key) on the <kbd>Esc</kbd> key.
118
+
119
+

95
120
96
121
2. You will see a window with blank tag fields. Only the tag fields which you modify here will be saved to the
97
122
files, that is, if this is what you have,
98
123
99
124

100
125
101
-
then
126
+
then since Album and Artist are the only fields with text, only those will be written to the selected mp3 files.
102
127
103
128
3. You can save or cancel as mentioned above.
104
129
130
+
## Editing Preferences
131
+
132
+
> Config file is located at `~/.config/clid/clid.ini`.
133
+
134
+
You can edit preferences by pressing <kbd>2</kbd>.
135
+
136
+
1. Select the option you want to edit and press <kbd>Enter</kbd>.
137
+
2. There will be a prompt in the command line; edit the option and press <kbd>Enter</kbd>.
138
+
3. If you gave an invalid value, an error message will be shown.
| `music_dir` | Directory in which the app will search for mp3 files recursively | `~/Music` | Any valid path
145
+
| `preview_format` | Format in which a preview of the file under cursor will be shown | `%a - %l - %n. %t` | See [list of valid format specifiers](#customizing-tag-preview-format)
0 commit comments