flx icon indicating copy to clipboard operation
flx copied to clipboard

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

Open LeoUfimtsev opened this issue 10 years ago • 4 comments

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)

LeoUfimtsev avatar Jan 15 '15 19:01 LeoUfimtsev

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

Silex avatar Jan 16 '15 09:01 Silex

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.

LeoUfimtsev avatar Jan 22 '15 14:01 LeoUfimtsev

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 [email protected] 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

lewang avatar Jan 22 '15 14:01 lewang

@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.

PythonNut avatar Jan 24 '15 18:01 PythonNut