oantolin / orderless

Emacs completion style that matches multiple regexps in any order
GNU General Public License v3.0
776 stars 27 forks source link

Is it possible to include spaces in orderless-literal? #173

Closed arozbiz closed 7 months ago

arozbiz commented 7 months ago

Sometimes I would like to enter a multi word string and have orderless treat the entire string as a literal, rather than have it break it into components at the spaces. One (clunky) way of doing this is using regex: first[[:space:]]second[[:space:]]third. But ideally I could write something like ='first second third' instead. Is something like this possible?

oantolin commented 7 months ago

If you are using the escapeable space splitter (which recently we made the default) you can use backslash to escape a space.

arozbiz commented 7 months ago

Brilliant, thank you!