Allow searching for words surrounded by non-whitespace word boundaries like brackets, en dashes, etc

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).

Seems to work fine in my tests… what am I missing?

I think the poster is searching from the doc search box, and not the table search box.

I have noticed that they do not function in the same way.

Perhaps, but there are a dozen references to “row”. :expressionless:

I apologise: I mean to refer to the doc search box, not the view-local search box. I’ll see if I can get the top post amended accordingly.