Setter for fuzzy matching mode Used by prompt_toolkit's KeyBindingManager. KeyBindingManager expects this function to be callable so we can't use @property and @attrib.setter. Args: * color: A boolean that represents the fuzzy flag. Returns:
(self, fuzzy)
| 148 | return self.config_obj[self.config.MAIN].as_bool(self.config.COLOR) |
| 149 | |
| 150 | def set_fuzzy_match(self, fuzzy): |
| 151 | """Setter for fuzzy matching mode |
| 152 | |
| 153 | Used by prompt_toolkit's KeyBindingManager. |
| 154 | KeyBindingManager expects this function to be callable so we can't use |
| 155 | @property and @attrib.setter. |
| 156 | |
| 157 | Args: |
| 158 | * color: A boolean that represents the fuzzy flag. |
| 159 | |
| 160 | Returns: |
| 161 | None. |
| 162 | """ |
| 163 | self.config_obj[self.config.MAIN][self.config.FUZZY] = fuzzy |
| 164 | self.completer.fuzzy_match = fuzzy |
| 165 | |
| 166 | def get_fuzzy_match(self): |
| 167 | """Getter for fuzzy matching mode |
no outgoing calls