feat: replace hash// plugin with comment plugin that writes tags in each language's comment style
This commit is contained in:
parent
90047c22b5
commit
633012d1ef
6 changed files with 198 additions and 67 deletions
|
|
@ -115,7 +115,7 @@ $ otag write id3 song.mp3
|
|||
| `pdf` | `.pdf` | The keywords field |
|
||||
| `office` | `.docx` `.xlsx` `.pptx` `.odt` `.ods` `.odp`, reading also `.doc` `.xls` `.ppt` | The description field |
|
||||
| `frontmatter` | `.md` `.txt` `.markdown` `.rst` | `projects`, `contexts`, `tags` and `note` keys of the YAML front matter |
|
||||
| `hash//` | Source code such as `.py` `.js` `.c` `.rs`, plus `.md` `.txt` | A `#// +project @context #tag note` line within the first five lines |
|
||||
| `comment` | Source code such as `.py` `.sh` `.toml` `.js` `.c` `.go` `.rs` `.php` `.html` | An `otag: +project @context #tag note` comment line within the first ten lines, written in the file's comment style below any shebang, encoding, `<!DOCTYPE>` or `<?php` line |
|
||||
|
||||
### Import and Export
|
||||
|
||||
|
|
@ -150,4 +150,4 @@ types = [".mp3", ".flac"]
|
|||
tags = "genre"
|
||||
```
|
||||
|
||||
`plugins` limits which plugins run (`hash//` is listed as `hashdoubleslash`), `types` overrides the file types a plugin handles (`write` ignores types the plugin does not support), and `id3.map` additionally reads an audio tag (here `GENRE`) into a category.
|
||||
`plugins` limits which plugins run, `types` overrides the file types a plugin handles (`write` ignores types the plugin does not support), and `id3.map` additionally reads an audio tag (here `GENRE`) into a category.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue