Skip to content

zen v0.1.1 - Parameter Substitution

Latest

Choose a tag to compare

@MaazSiddiqi MaazSiddiqi released this 22 Sep 05:44

New Features

  • Parameter Substitution: Use {} placeholders in commands for dynamic argument insertion
  • Interactive Mode Documentation: Comprehensive guide for using ZEN_USE_INTERACTIVE

Examples

# Parameter substitution
zen add test "cargo test {} --verbose" 
zz test my_module  # Runs: cargo test my_module --verbose

# Multiple parameters
zen add copy "cp {} {}"
zz copy file1.txt file2.txt  # Runs: cp file1.txt file2.txt

Improvements

  • Enhanced README with detailed parameter substitution examples
  • Better code organization with extracted message functions
  • Improved encapsulation with available_aliases() iterator
  • Simplified fzf integration

Breaking Changes

None - fully backward compatible

Full changelog: v0.1.0...v0.1.1