- Add -s/--sequence option to select transformation sequences - Add -L flag to list all available sequences - Implement 5 hardcoded sequences: default, lower, upper, minimal, utf-8 - Refactor clean_filename() to support sequence-based transformations - Update all tests to pass sequence parameter (25 tests passing) - Add 8 new integration tests for sequence functionality - Update documentation (README, CHANGELOG, manpage) - Update shell completions (bash, zsh, fish) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
24 lines
1.2 KiB
Fish
24 lines
1.2 KiB
Fish
# Fish completion for ntu (NameToUnix)
|
|
|
|
# Main command
|
|
complete -c ntu -f -d 'Sanitize file and directory names to Unix conventions'
|
|
|
|
# Options
|
|
complete -c ntu -s r -l recursive -d 'Process directories recursively'
|
|
complete -c ntu -s s -l sequence -d 'Use transformation sequence' -xa 'default lower upper minimal utf-8'
|
|
complete -c ntu -s L -d 'List available sequences'
|
|
complete -c ntu -l conf -d 'Use specific configuration file' -r -F
|
|
complete -c ntu -s q -l quiet -d 'Suppress output (no rename information)'
|
|
complete -c ntu -s n -l dry-run -d 'Show what would be renamed without making changes'
|
|
complete -c ntu -l no-changes -d 'Alias for --dry-run'
|
|
complete -c ntu -s f -l force -d 'Overwrite existing files'
|
|
complete -c ntu -s e -l exclude -d 'Exclude files matching pattern' -r
|
|
complete -c ntu -s v -l verbose -d 'Show verbose debug information'
|
|
complete -c ntu -l modify-root -d 'Allow renaming the root directory'
|
|
complete -c ntu -l special -d 'Process symbolic links and special files'
|
|
complete -c ntu -l no-color -d 'Disable colored output'
|
|
complete -c ntu -s h -l help -d 'Print help information'
|
|
complete -c ntu -s V -l version -d 'Print version information'
|
|
|
|
# File/directory completion for paths
|
|
complete -c ntu -a '(__fish_complete_path)' -d 'Path to process'
|