Three dots seach oddity

User avatar
Posts: 314
Joined: Mon Nov 30, 2015 9:50 pm
Platform: Mac

Mon Feb 17, 2020 5:48 pm Post

A bit niche this.

I was searching a draft for three periods that hadn't converted to ellipsis, using regex \.\.\.

This finds all documents with the offending dot sequence, but it also lists in the results all documents that haven't been given a name (they show the initial text instead); none of which contained the offending dot sequence.

Expected behaviour is not to list documents that don't contain the regex \.\.\.

Aside: also happens with two dots \.\.

User avatar
Posts: 24311
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza

Mon Feb 17, 2020 9:09 pm Post

Documents that do not have a name use their placeholder text as effective handles, this can be useful in search particularly, but also in accelerating keyboard selection within lists, menus and such. I.e. just because it is printed in grey doesn’t mean that isn’t its title from the perspective of the UI—and if it is generated from a paragraph of text, chances are high it ends in “...”.

Try setting your search scope to “Text” only, instead of “All”. That should weed out these entries from the list. That works well for me, only including items with adapted titles if the items have non-typographic ellipses in the text.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
Posts: 2108
Joined: Sat Nov 06, 2010 1:55 pm
Platform: Mac, Win + iOS
Location: Monroe, WA 98272 (CN97au)

Mon Feb 17, 2020 9:13 pm Post

auxbuss wrote:I was searching a draft for three periods that hadn't converted to ellipsis, using regex \.\.\.

As a workaround, can you just do a non-regex search on ...? Due to past experiences getting bit by unexpected behaviors in various regex libraries I only do regex searches when I actually can't do a simple text match. I confess I haven't played with Scrivener's regex search much yet, so I don't know if it's always on.
Devin L. Ganger, WA7DLG
Not a L&L employee; opinions are those of my cat
Life has a way of moving you past wants and hopes