-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make compatible with evil-jumper #268
Comments
I'm not familiar with Here's the only part of ;; Receive word from evil search ---------------
(defun helm-swoop-from-evil-search ()
"Invoke `helm-swoop' from evil isearch"
(interactive)
(if (string-match "\\(isearch-\\|evil.*search\\)" (symbol-name real-last-command))
(helm-swoop :$query (if isearch-regexp
isearch-string
(regexp-quote isearch-string)))
(helm-swoop)))
;; When doing evil-search, hand the word over to helm-swoop
;; (define-key evil-motion-state-map (kbd "M-i") 'helm-swoop-from-evil-search) Can you explain what exactly you want me to do? Even better, a patch would be welcome. |
Please test. It seems to work, at least with evil-mode off. |
Confirmed work with evil-mode as well. Thanks. |
So, the jump list does not get updated. Perhaps testing for the |
On a closer look, (defun evil-set-jump (&optional pos)
"Set jump point at POS.
POS defaults to point."
(unless (or (region-active-p) (evil-visual-state-p))
(push-mark pos t))
(unless evil--jumps-jumping
;; clear out intermediary jumps when a new one is set
(let* ((struct (evil--jumps-get-current))
(target-list (evil--jumps-get-jumps struct))
(idx (evil-jumps-struct-idx struct)))
(cl-loop repeat idx
do (ring-remove target-list))
(setf (evil-jumps-struct-idx struct) -1))
(evil--jumps-push))) |
I'm not sure what is your stance on people commenting closed tickets, but I think keeping related stuff threaded helps other people find related stuff quicker. Let me know if you prefer separate tickets instead. |
@srustamo Please open a new issue. I don't like reading messages from ages ago just to get a context of how it applies to the new message. Regarding the change in |
If using helm-swoop, after finding and moving point to a result, I can easily go back to my point before helm-swoop was called with
evil-jumper/backward
. With swiper, the previous point is not saved onto the evil-jumper "stack", and I have to go back by mark. Would it be possible to add this support?The text was updated successfully, but these errors were encountered: