Nucleoc::Config
Configuration data that controls how a matcher behaves
Constants
Default configuration for nucleoc
Constructors
Instance methods
Extra bonus for word boundary after slash, colon, semi-colon, and comma
Extra bonus for word boundary after slash, colon, semi-colon, and comma
Extra bonus for word boundary after whitespace character or beginning of the string
Extra bonus for word boundary after whitespace character or beginning of the string
Calculate bonus for a character based on its position and previous character class This matches the Rust Config.bonus_for method exactly
Characters that act as delimiters and provide bonus for matching the following char
Characters that act as delimiters and provide bonus for matching the following char
Initial character class (used for boundary detection)
Whether to normalize latin script characters to ASCII (enabled by default)
Whether to provide a bonus to matches by their distance from the start of the haystack. The bonus is fairly small compared to the normal gap penalty to avoid messing with the normal score heuristic. This setting is not turned on by default and only recommended for autocompletion usecases where the expectation is that the user is typing the entire match. For a full fzf-like fuzzy matcher/picker word segmentation and explicit prefix literals should be used instead.
Whether to provide a bonus to matches by their distance from the start of the haystack. The bonus is fairly small compared to the normal gap penalty to avoid messing with the normal score heuristic. This setting is not turned on by default and only recommended for autocompletion usecases where the expectation is that the user is typing the entire match. For a full fzf-like fuzzy matcher/picker word segmentation and explicit prefix literals should be used instead.