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 avoid "search at point" in helm-swoop #178

Closed AtomicNess123 closed 4 years ago

AtomicNess123 commented 4 years ago

I'd like to use helm-swoop as my to-go search without the feature of searching "at point" (because I want to type my search keywords, and usually I have to delete whichever helm-swoop picked at point). Thanks!

conao3 commented 4 years ago

How about this configuration (in README sample)?

;; If a symbol or phrase is selected, use it as the initial query.
(setq helm-swoop-pre-input-function
      (lambda ()
        (if mark-active
            (buffer-substring-no-properties (mark) (point))
          "")))
AtomicNess123 commented 4 years ago

Would this disable the "at-point" feature? EDIT: It works, thank you very much!

conao3 commented 4 years ago

OK, thanks!