I find Helm's space separated queries very useful.

However, on occasion, particularly while using the @ prefix (searching for match within a buffer in helm-mini) I would like to be able to specify a single search string which includes a space.

E.g. @Find\ buffer\ matching\ this\ text

Is this possible?

  • Any chance you could just enter a space literal with C-q followed by <space>?
    – Dan
    Oct 9 '14 at 13:14
  • @Dan I think that requires an extra key press compare with escape character.
    – Tu Do
    Oct 9 '14 at 13:47
  • @TuDo Thanks for opening the ticket.
    – conorbev
    Oct 10 '14 at 12:01

I don't think it's possible. I opened an issue here.

Edit: It's not possible.


It is possible to search names with spaces using \\ escaping. For example if there are two buffers opened, one named "file with spaces" and the second named "filewithoutspaces", then, in helm-mini, pattern "with spaces" will find both buffers, while pattern "with spaces \\ " (note the space at the end) will find only the buffer with space in name.

Still, I cannot find a way to search with space in buffer contents.

  • Using @kwas's answer, I was able to find a way to do this: \.ID\\ = appears to be an effective way to search for the flat string .ID =. Jan 8 '20 at 1:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.