anicode
anicode copied to clipboard
add option for word-boundary based match
i realized the feature that i most use in anicode[1] is grep's word-boundaries feature to limit the amount of characters it matches…
$ anicode dog
matches all DOGRA characters[2]
whereas '\bdog\b' matches…
$ anicode '\bdog\b'
1) ⺨ CJK RADICAL DOG
2) ⽝ KANGXI RADICAL DOG
3) 🌭 HOT DOG
4) 🐕 DOG
5) 🐶 DOG FACE
which, most of the time, is what i want.
That's the equivalent of passing -w to grep, so perhaps we should expose this option