Online Help Search for 1-2 characters
suever opened this issue · comments
To help in finding MATL statements, it would be nice to treat 1-2 character search strings as literals rather than smart search. This would result in T
matching the statement true
rather than all possible "T" occurances
My original suggestion was to treat the following as literals: either 1-char strings or 2-char strings that begin with X
, Y
, Z
. But if it simplifies the code, treating all 2-char strings as literals is probably fine.
@lmendo So would you expect them to be case-sensitive or insensitive? (i.e. "XN" would yield Xn
and XN
or just XN
). Also would you expect searching for a literal to show "mentions" in another? For example currently the search "ZA "
also returns YA
since it mentions both ZA
and Za
in it's help text.
I just pushed a change to the site, so check it out and see if it behaves as you expect. For now I have it case sensitive and it triggers the statement search when the search string is either a single character or it's two characters and starts with an X, Y, or Z.
@suever I think it's perfect as it is now! Thank you! Yes, I think it makes sense to do only statement search, not mentions