emacsorphanage / helm-swoop

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

helm-swap-windows not working #196

Open super-tomcat opened 3 years ago

super-tomcat commented 3 years ago

After using helm-swap-windows with an Org file you cannot select an entry in Helm Swoop using either C-n C-p or the up/down cursors.

conao3 commented 3 years ago

confirmed. But I could't handle this with a few minutes.

[MEMO] minimum init.el and repro step.

  1. save below init.el as ~/.debug.emacs.d/helm-swoop/init.el
  2. run Emacs with emacs -q -l ~/.debug.emacs.d/helm-swoop/init.el
  3. on some keyword, press C-S-s to invoke helm-swoop
  4. press C-S-t to invoke helm-swap-windows
  5. move cursor via C-n or C-p could not work as expected
    
    ;; ~/.debug.emacs.d/helm-swoop/init.el

;; you can run like 'emacs -q -l ~/.debug.emacs.d/{{pkg}}/init.el' (when load-file-name (setq user-emacs-directory (expand-file-name (file-name-directory load-file-name))))

(prog1 "leaf" (custom-set-variables '(package-archives '(("org" . "https://orgmode.org/elpa/") ("melpa" . "https://melpa.org/packages/") ("gnu" . "https://elpa.gnu.org/packages/")))) (package-initialize) (unless (package-installed-p 'leaf) (package-refresh-contents) (package-install 'leaf)))

(leaf helm :ensure t :require helm-config :global-minor-mode t :bind (helm-map ("C-S-t" . helm-swap-windows)) :config (leaf helm-swoop :ensure t :leaf-defer nil :bind (("C-S-s" . helm-swoop))))

super-tomcat commented 3 years ago

tried it, and it works okay with a normal file but not with an org file.... it still does what i said above.... doesnt allow you to select any candidates with cursor up/down or C-p C-n, it jumps to the last candidate then stops.

If you swap back to the original windows then works again even with an org file.