$ kaimei -t '{track:02} - {title}.{ext}' track03.mp3 07.flac a.m4a b.opus
  07.flac      →  07 - Café Müller.flac
  a.m4a        →  01 - M4A タイトル.m4a
  b.opus       →  04 - Opus 曲.opus
  track03.mp3  →  03 - 夜の歌_ Part 1_2.mp3
4 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{albumartist?artist} - {album?"none"} - {disc?"1"}-{track:02}.{ext}' track03.mp3 07.flac a.m4a b.opus
  07.flac      →  Various - Ünïcödé - 2-07.flac
  a.m4a        →  MP4 Artist - none - 1-01.m4a
  b.opus       →  Ogg Artist - none - 1-04.opus
  track03.mp3  →  色々なアーティスト - 試験アルバム - 1-03.mp3
4 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{artist|romaji:macron|title} - {title|ascii:de}.{ext}' track03.mp3 07.flac
  07.flac      →  Ærø Band - Cafe Mueller.flac
  track03.mp3  →  Tesuto・Ātisuto - 夜の歌_ Part 1_2.mp3
2 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei --fullwidth -t '{title}.{ext}' track03.mp3
  track03.mp3  →  夜の歌： Part 1／2.mp3
1 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{year}_{genre}_{composer?"-"}.{ext}' track03.mp3 07.flac
  07.flac      →  2019_Jazz_-.flac
  track03.mp3  →  2021_JPop_作曲者.mp3
2 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{title} ({duration.h}, {bitrate}k).{ext}' b.opus 07.flac
  07.flac  →  Café Müller (0_00, 55k).flac
  b.opus   →  Opus 曲 (0_00, 26k).opus
2 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{exif.date:%Y%m%d_%H%M%S}_{exif.model|slug}_{width}x{height}.{ext|lower}' IMG_0001.JPG
  IMG_0001.JPG  →  20240501_102030_canon-eos-r6_6x8.jpg
1 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{exif.make} f{exif.fnumber} {exif.exposure|replace:"/":"-"} ISO{exif.iso} {exif.focal}mm.{ext}' IMG_0001.JPG
  IMG_0001.JPG  →  Canon f2.8 1-250 ISO400 35mm.JPG
1 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{width}x{height}_{stem}.{ext}' plain.png IMG_0001.JPG
  IMG_0001.JPG  →  6x8_IMG_0001.JPG
  plain.png     →  10x4_plain.png
2 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{stem}.{type.ext}' picture.jpg plain.png notes.txt scan.pdf
[exit 1]
  picture.jpg  →  picture.png
  notes.txt  error: no value for {type.ext}
1 to rename, 2 unchanged (--show-unchanged lists them).
Give the field a fallback ({type.ext?"none"}) or use --missing=skip or --missing=empty.
1 error(s): nothing was renamed.

$ kaimei -t '{stem}.{type.ext?ext}' picture.jpg notes.txt
  picture.jpg  →  picture.png
1 to rename, 1 unchanged (--show-unchanged lists them). Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{pdf.created:%Y-%m-%d} {title} ({pages}p, {pdf.paper}).{ext}' scan.pdf letter.pdf
  letter.pdf  →  2023-01-02 Letter page (1p, Letter).pdf
  scan.pdf    →  2024-05-01 日本語のタイトル_ 第1章 (2p, A4).pdf
2 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{pdf.author?"anon"} {pdf.width}x{pdf.height}mm.{ext}' scan.pdf letter.pdf
  letter.pdf  →  anon 216x279mm.pdf
  scan.pdf    →  Chris Spackman 210x297mm.pdf
2 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{title}.{ext}' notes.txt 07.flac
[exit 1]
  07.flac  →  Café Müller.flac
  notes.txt  error: no value for {title}
1 to rename, 0 unchanged.
Give the field a fallback ({title?"none"}) or use --missing=skip or --missing=empty.
1 error(s): nothing was renamed.

$ kaimei -t '{title}.{ext}' --missing skip notes.txt 07.flac
  07.flac  →  Café Müller.flac
  notes.txt  skipped: no value for {title}
1 to rename, 0 unchanged, 1 skipped (no value). Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{video.date:%Y%m%d_%H%M%S} {width}x{height} {vcodec}+{acodec} {fps}fps {duration.h|replace:":":"."}.{ext}' VID_0001.mp4 clip.mkv
[exit 1]
  VID_0001.mp4  →  20240501_012030 48x64 h264+aac 29.97fps 0.01.mp4
  clip.mkv  error: no value for {video.date}
1 to rename, 0 unchanged.
Give the field a fallback ({video.date?"none"}) or use --missing=skip or --missing=empty.
1 error(s): nothing was renamed.

$ kaimei -t '{title}.{ext}' VID_0001.mp4 clip.mkv track03.mp3
  clip.mkv      →  MKV clip.mkv
  track03.mp3   →  夜の歌_ Part 1_2.mp3
  VID_0001.mp4  →  動画のタイトル.mp4
3 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei --mkdir -t '{albumartist?artist}/{album?"Singles"}/{track:02} {title}.{ext}' track03.mp3 07.flac a.m4a b.opus
  07.flac      →  Various/Ünïcödé/07 Café Müller.flac
  a.m4a        →  MP4 Artist/Singles/01 M4A タイトル.m4a
  b.opus       →  Ogg Artist/Singles/04 Opus 曲.opus
  track03.mp3  →  色々なアーティスト/試験アルバム/03 夜の歌_ Part 1_2.mp3
  new folders:
    MP4 Artist/
    MP4 Artist/Singles/
    Ogg Artist/
    Ogg Artist/Singles/
    Various/
    Various/Ünïcödé/
    色々なアーティスト/
    色々なアーティスト/試験アルバム/
4 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{albumartist?artist}/{track:02}.{ext}' 07.flac
  07.flac  →  Various_07.flac
1 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

$ kaimei -t '{n:02}.{ext}' -j 4 notes.txt 07.flac
  07.flac    →  01.flac
  notes.txt  →  02.txt
2 to rename, 0 unchanged. Preview only: nothing was renamed; add -y to apply.

