MCPcopy
hub / github.com/donnemartin/saws / set_fuzzy_match

Method set_fuzzy_match

saws/saws.py:150–164  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

test_toolbar_onMethod · 0.80
test_toolbar_offMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_toolbar_onMethod · 0.64
test_toolbar_offMethod · 0.64