emacsorphanage / helm-swoop

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

helm-swoop can't scroll when being managed by popwin #63

Open tuhdo opened 9 years ago

tuhdo commented 9 years ago

Here is how to reproduce:

(popwin-mode 1)
 ;; disable popwin-mode in an active Helm session It should be disabled
 ;; otherwise it will conflict with other window opened by Helm persistent
 ;; action, such as *Help* window.
(push '("^\*helm.+\*$" :regexp t) popwin:special-display-config)
(add-hook 'helm-after-initialize-hook (lambda ()
                                          (popwin:display-buffer helm-buffer t)
                                          (popwin-mode -1)))

 ;;  Restore popwin-mode after a Helm session finishes.
 (add-hook 'helm-cleanup-hook (lambda () (popwin-mode 1)))
dentrinh commented 8 years ago

I am having a similar issue. Took the hooks from above and tried to modify the helm-swoop-split-window-function so that the target buffer would scroll, but to no avail. The swoop session always scrolls synchronously my left-most/top-left-most buffer.

These are two of the functions I tried: (setq helm-swoop-split-window-function 'helm-default-display-buffer) (setq helm-swoop-split-window-function '(lambda ($buf) (display-buffer $buf))