mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Unicode input: When searching by name search for prefix matches as well as whole word matches
So now hori matches both "hori" and "horizontal". Switched to a prefix-trie internally.
This commit is contained in:
parent
9d67198ff9
commit
0b99bb534f
9 changed files with 32513 additions and 30796 deletions
|
|
@ -56,7 +56,7 @@ def name(cp):
|
|||
@lru_cache(maxsize=256)
|
||||
def codepoints_matching_search(parts):
|
||||
ans = []
|
||||
if parts and parts[0]:
|
||||
if parts and parts[0] and len(parts[0]) > 1:
|
||||
codepoints = points_for_word(parts[0])
|
||||
for word in parts[1:]:
|
||||
pts = points_for_word(word)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue