Skip to main content

Module matching

Module matching 

Source
Expand description

Completion matching specifications (-M option)

Matcher control in zsh is complex. This implements the basic forms:

  • m:pattern=replacement - match pattern, allow replacement
  • l:anchor|pattern=replacement - left-anchored
  • r:pattern|anchor=replacement - right-anchored
  • b:anchor|pattern=replacement - both ends
  • L, R, B, M - case variants (line vs word)

Structs§

MatchSpec
A complete match specification (can have multiple matchers)
Matcher
A single matcher specification

Enums§

MatcherType
Type of matcher
PatternElement
Pattern element in a matcher