Expand description
Native Rust implementations of Base/ completion functions
This module implements all the core functions from zsh’s Base/ directory:
- Core: _main_complete, _tags, _normal, _dispatch, etc.
- Utility: _alternative, _values, _multi_parts, etc.
- Completer: _complete, _approximate, _correct, etc.
Structs§
- Alternative
- Alternative specification
- Completion
Context - Completion context for tag-based completion
- Main
Complete State - State for _main_complete
- TagManager
- Tag set management for completion
- Value
- Value with optional argument for _values
Enums§
- Completer
Result - Result from a completer function
Functions§
- all_
labels - _all_labels - iterate over all labels for a tag
- alternative
- _alternative - try multiple completion alternatives
- completer_
approximate - _approximate - approximate completion (fuzzy matching)
- completer_
complete - _complete - the main completer
- completer_
correct - _correct - spelling correction
- completer_
expand - _expand - expansion of special characters
- completer_
history - _history - complete from history
- completer_
ignored - _ignored - complete with ignored matches
- completer_
match - _match - pattern matching completion
- completer_
menu - _menu - menu completion
- completer_
prefix - _prefix - complete with prefix handling
- description
- _description - set up description for a tag Handles styles: format, hidden, group-name, matcher, sort, ignored-patterns
- dispatch_
complete - _dispatch - dispatch to appropriate completion function
- get_
ignored_ patterns - Get ignored-patterns for a context/tag
- is_
ignored - Check if a string matches any ignored pattern
- main_
complete - Main completion entry point (_main_complete)
- message
- _message - display a message (no completions)
- multi_
parts - _multi_parts - complete with path-like parts
- next_
label - _next_label - get next label for a tag (for iteration)
- normal_
complete - _normal - normal command completion
- requested
- _requested - check if a tag is currently being tried
- sep_
parts - _sep_parts - complete parts with arbitrary separators
- values_
complete - _values - complete comma-separated values
- wanted
- _wanted - check if a tag is wanted (without marking as requested)
Type Aliases§
- Completer
Fn - Completer function type