Context
- My table row has a text value similar to “words words words (Mon–Fri)” in it (including the parentheses/brackets and an en dash).
- I want to be able to search for “mon” and have this row appear in the search results.
What currently happens
- If I search for “mon”, the row isn’t shown in the results.
- If I search for “fri”, the row isn’t shown in the results.
- If I search for “(mon”—that is, if I include just the opening bracket—the search never finishes unless I also put a closing bracket, and even then, the row isn’t shown in the results.
- If I search for “(mon-fri)” (using brackets but a hyphen instead of an en dash), the row isn’t shown in the results.
- If I search for “(mon–fri)” (using brackets and an en dash), the row is shown in the results.
Analysis
- It seems that Coda tokenises its search terms on just whitespace boundaries, and not other word boundaries like (at minimum) brackets and en dashes.
- It seems that Coda will not allow a search containing an opening bracket with no closing one.
What I’d like to happen
- If I search for “mon”, a row with “(Mon–Fri)” in it is returned.
- If I search for “fri”, a row with “(Mon–Fri)” in it is returned.
- If I search for “mon-fri”, a row with “(Mon–Fri)” in it is returned.
- If I search for “(mon”, the search is allowed to execute (and a row with “(Mon–Fri)” in it is returned).