Commit 6c76cdc
committed
Fix showing all icons
[why]
The search term ' ' to show all icons does not work anymore after the
last commit
71dfe12 cheatsheet: Do not remove dashes from index
The reason is that before we split the names into terms, like
`nf-pl-left_hard_divider` has been split into `nf`, `pl`, `left`,
`hard`, and `divider`.
But that made it impossibe to search for (only) `pl-` to show all
powerline icons.
That commit changed the tokenization such that we get instead
`nf-pl-left`, `hard`, and `divider`.
Before we searched to find all icons for `nf` as exact hit, has that was
always part of any icon. But that is not the case anymore.
Now we need to search for `nf-` and that as prefix hit.
[note]
From the above it seems impossible to search for `left`, as that is part
of the new first token, but at its end.
But that is not a problem because we do not only index the tag, but also
the name, which is `left_hard_divider` -> `left`, `hard`, `divider`.
Signed-off-by: Fini Jastrow <[email protected]>1 parent 71dfe12 commit 6c76cdc
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
0 commit comments