emacsorphanage / helm-swoop

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

Enable fuzzy-matching for Helm Swoop #42

Closed tuhdo closed 9 years ago

tuhdo commented 9 years ago

Helm has its built-in fuzzy searcher and can be enabled with :fuzzy-match t per helm source. I wish to have an option to enable fuzzy searching with Helm Swoop. Is it ok if you add this feature?

PythonNut commented 9 years ago

+1

ReneFroger commented 9 years ago

+1.

Kethku commented 9 years ago

+1

ShingoFukuyama commented 9 years ago

Added :)

ReneFroger commented 9 years ago

Is this enabled by default, or you need to configure Swoop manually to enable the fuzzy searching?

ReneFroger commented 9 years ago

Is there any way to disable the fuzzy matching for helm-swoop? The results are unusable for me at this moment.

ShingoFukuyama commented 9 years ago

If you do not prefer the fuzzy matching, you can disable it like below:

(setq helm-c-source-swoop-match-functions
      '(helm-mm-exact-match
        helm-mm-match
        ;;helm-fuzzy-match
        ;;helm-mm-3-migemo-match
        ))
(setq helm-c-source-swoop-search-functions
      '(helm-mm-exact-search
        helm-mm-search
        helm-candidates-in-buffer-search-default-fn
        ;;helm-fuzzy-search
        ;;helm-mm-3-migemo-search
        ))
ReneFroger commented 9 years ago

It worked now again in the usual way with your snippet. I like the fuzzy flx feature for helm-for-files. but with Helm Swoop I search on specific keywords, which makes fuzzy search undesirable. Thanks for your reply.