emacsorphanage / helm-swoop

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

add hooks helm-swoop-goto-line-action-hook and helm-swoop-before-goto-line-action-hook #103

Closed jixiuf closed 6 years ago

jixiuf commented 8 years ago

101

(defun push-mark-before-helm-swoop()
  (bm-bookmark-add nil nil t)             ; push bookmark for bm.el
  )
(add-hook 'helm-swoop-before-goto-line-action-hook 'push-mark-before-helm-swoop)

demo for evil user:
(defun push-mark-before-helm-swoop()
  (isearch-update-ring helm-pattern evil-regexp-search))
(add-hook 'helm-swoop-after-goto-line-action-hook 'push-mark-before-helm-swoop)
alphapapa commented 7 years ago

Looks like a great addition, can this be merged?

ShingoFukuyama commented 6 years ago

Thank you for the nice suggestion! It's merged.