mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:35:44 +02:00
add case_sensitive_completions config option (#5646)
This commit is contained in:
@ -37,7 +37,10 @@ impl NuCompleter {
|
||||
) -> Vec<Suggestion> {
|
||||
let config = self.engine_state.get_config();
|
||||
|
||||
let mut options = CompletionOptions::default();
|
||||
let mut options = CompletionOptions {
|
||||
case_sensitive: config.case_sensitive_completions,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
if config.completion_algorithm == "fuzzy" {
|
||||
options.match_algorithm = MatchAlgorithm::Fuzzy;
|
||||
|
Reference in New Issue
Block a user