emacsorphanage / helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
GNU General Public License v3.0
688 stars 55 forks source link

How to search for an expression with spaces? #179

Open AtomicNess123 opened 4 years ago

AtomicNess123 commented 4 years ago

Say I need to look for "quantum physics". If I type the expression the search will highlight separate instances of each word.

conao3 commented 4 years ago

Good catch, thanks. The issue is highlight only, isn't it?

AtomicNess123 commented 4 years ago

Mmm, what do you mean? I'd like to find all instances of the expression "quantum [space] physics" not just "quantum" and "physics" :))

conao3 commented 4 years ago

OK, what I see has a difference from yours.

Screenshot_2020-05-04_21-44-45

What are you looking for about this example? Highlight in *scratch* is broken, but the candidate is good I think.

AtomicNess123 commented 4 years ago

You have the same problem: as you see, it searches for individual instances. How to search for the whole expression?

image

conao3 commented 4 years ago

Please try quantum\ physics. You want to search space literally, need to escape it. Normally, space is interpreted AND to refine search.

AtomicNess123 commented 4 years ago

It doesn't work, unfortunately :(

image

conao3 commented 4 years ago

Screenshot_2020-05-04_22-02-50

FYI, It works for me. I research it later.

AtomicNess123 commented 4 years ago

OK, thanks for your time.