lewang / flx

Fuzzy matching for Emacs ... a la Sublime Text.
GNU General Public License v3.0
518 stars 37 forks source link

Q: Can you search file contents rather than file names? #68

Open LeoUfimtsev opened 9 years ago

LeoUfimtsev commented 9 years ago

Hello,

I started learning Emacs like 2 hours ago.

I then learned about Outline mode.

I now seek a way to search only the headings from the outline mode and thought maybe flx would help me.

Can I use flx to search the content of a file rather than searching file names?

(sorry if this is very obvious)

Silex commented 9 years ago

IMHO to search file contents you should use something like https://github.com/Wilfred/ag.el or M-x rgrep

LeoUfimtsev commented 9 years ago

Thank you for the answer. What I meant is that I was looking for fuzzy search fithin the scope of one file, not across many files.

lewang commented 9 years ago

Hi,

I'm not sure if ido can be used to do an interactive occur type of functionality. I suspect not as ido doesn't deal with longs trings very well because it's restricted to the minibuffer.

On Thu, Jan 22, 2015 at 9:22 AM, LeoUfimtsev notifications@github.com wrote:

Thank you for the answer. What I meant is that I was looking for fuzzy search fithin the scope of one file, not across many files.

— Reply to this email directly or view it on GitHub https://github.com/lewang/flx/issues/68#issuecomment-71026732.

Le

PythonNut commented 9 years ago

@LeoUfimtsev if you simply want to fuzzy search symbols in a buffer, you might take a look at flx-isearch.

If you want to search outline headings, which are not symbols, you can discuss adding that feature in an issue in that repo. The infrastructure is there, and adding probably won't be too hard.