Skip to content

Commit 6cdd1c4

Browse files
slhckclaude
andcommitted
docs: fix completion links and update manual completions
- Fix README to link to installation guide instead of completions directory - Update installation.md to reference correct completion filenames - Add new v1.34.0 CLI options to manual bash/zsh completions: - --input-list - --replaygain - -as/--audio-streams - --audio-default-only - --keep-other-audio The manual completions are maintained separately from the shtab-generated versions to provide better user experience. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 952f0ed commit 6cdd1c4

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Example: `ffmpeg-normalize input.mkv -as 1 --keep-other-audio` normalizes stream
3535

3636
**Recent additions:**
3737

38-
- **Shell completions** (v1.31.0) — Tab completion for bash, zsh, and fish shells. See the [completions](completions/) directory for installation instructions.
38+
- **Shell completions** (v1.31.0) — Tab completion for bash, zsh, and fish shells. See the [installation guide](https://slhck.info/ffmpeg-normalize/getting-started/installation/#shell-completions) for setup instructions.
3939
- **`--lower-only` option** — Prevent audio from increasing in loudness, only lower it if needed (works with all normalization types).
4040

4141
See the [full changelog](https://github.com/slhck/ffmpeg-normalize/blob/master/CHANGELOG.md) for all updates.

completions/ffmpeg-normalize.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ _ffmpeg_normalize()
77
prev="${COMP_WORDS[COMP_CWORD-1]}"
88

99
# Main options
10-
opts="-o --output \
10+
opts="--input-list \
11+
-o --output \
1112
-of --output-folder \
1213
-f --force \
1314
-d --debug \
@@ -19,6 +20,7 @@ _ffmpeg_normalize()
1920
-nt --normalization-type \
2021
-t --target-level \
2122
-p --print-stats \
23+
--replaygain \
2224
-lrt --loudness-range-target \
2325
--keep-loudness-range-target \
2426
--keep-lra-above-loudness-range-target \
@@ -28,6 +30,9 @@ _ffmpeg_normalize()
2830
--lower-only \
2931
--dual-mono \
3032
--dynamic \
33+
-as --audio-streams \
34+
--audio-default-only \
35+
--keep-other-audio \
3136
-c:a --audio-codec \
3237
-b:a --audio-bitrate \
3338
-ar --sample-rate \

completions/ffmpeg-normalize.zsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ _ffmpeg_normalize() {
77

88
args=(
99
# File Input/Output
10+
'--input-list[Read input list from file]:input list:_files'
1011
'(-o --output)'{-o,--output}'[Output file names]:output file:_files'
1112
'(-of --output-folder)'{-of,--output-folder}'[Output folder (default: normalized)]:directory:_files -/'
1213

@@ -23,6 +24,7 @@ _ffmpeg_normalize() {
2324
'(-nt --normalization-type)'{-nt,--normalization-type}'[Normalization type]:type:(ebu rms peak)'
2425
'(-t --target-level)'{-t,--target-level}'[Target level in dB/LUFS]:level:'
2526
'(-p --print-stats)'{-p,--print-stats}'[Print loudness statistics as JSON]'
27+
'--replaygain[Write ReplayGain tags]'
2628

2729
# EBU Options
2830
'(-lrt --loudness-range-target)'{-lrt,--loudness-range-target}'[EBU Loudness Range Target in LUFS]:range:'
@@ -36,6 +38,9 @@ _ffmpeg_normalize() {
3638
'--dynamic[Force dynamic normalization mode]'
3739

3840
# Audio Encoding
41+
'(-as --audio-streams)'{-as,--audio-streams}'[Select specific audio streams to normalize]:streams:'
42+
'--audio-default-only[Only normalize default audio streams]'
43+
'--keep-other-audio[Keep non-selected audio streams]'
3944
'(-c:a --audio-codec)'{-c:a,--audio-codec}'[Audio codec]:codec:'
4045
'(-b:a --audio-bitrate)'{-b:a,--audio-bitrate}'[Audio bitrate]:bitrate:'
4146
'(-ar --sample-rate)'{-ar,--sample-rate}'[Audio sample rate]:sample rate:'

docs/getting-started/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This tool provides shell completions for bash and zsh. To install them:
4141
If you have [`bash-completion`](https://github.com/scop/bash-completion) installed, you can just copy your new completion script to the `/usr/local/etc/bash_completion.d` directory.
4242

4343
```bash
44-
curl -L https://raw.githubusercontent.com/slhck/ffmpeg-normalize/master/completions/ffmpeg-normalize-completion.bash \
44+
curl -L https://raw.githubusercontent.com/slhck/ffmpeg-normalize/master/completions/ffmpeg-normalize.bash \
4545
-o /usr/local/etc/bash_completion.d/ffmpeg-normalize
4646
```
4747

@@ -52,7 +52,7 @@ Without bash-completion, you can manually install the completion script:
5252
mkdir -p ~/.bash_completions.d
5353

5454
# download and install completion script
55-
curl -L https://raw.githubusercontent.com/slhck/ffmpeg-normalize/master/completions/ffmpeg-normalize-completion.bash \
55+
curl -L https://raw.githubusercontent.com/slhck/ffmpeg-normalize/master/completions/ffmpeg-normalize.bash \
5656
-o ~/.bash_completions.d/ffmpeg-normalize
5757

5858
# source it in your ~/.bashrc

0 commit comments

Comments
 (0)