You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Here's the only part of helm-swoop to include "evil".
;; Receive word from evil search ---------------
(defunhelm-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.
On a closer look, evil-mode requires evil-jumps package, which defines
(defunevil-set-jump (&optionalpos)
"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-looprepeat 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.
Activity
abo-abo commentedon Oct 19, 2015
I'm not familiar with
evil-jumper.Here's the only part of
helm-swoopto include "evil".Can you explain what exactly you want me to do? Even better, a patch would be welcome.
abo-abo commentedon Nov 13, 2015
Please test. It seems to work, at least with evil-mode off.
sooheon commentedon Nov 13, 2015
Confirmed work with evil-mode as well. Thanks.
srustamo commentedon Aug 25, 2016
evil-jumper is OBSOLETE. evil-jumper has been merged into upstream evil-mode; therefore this functionality is already available by default..
So, the jump list does not get updated.
Perhaps testing for the
evil-modeinstead ofevil-jumper-modewould help?srustamo commentedon Aug 25, 2016
On a closer look,
evil-moderequiresevil-jumpspackage, which definessrustamo commentedon Aug 25, 2016
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.
abo-abo commentedon Aug 25, 2016
@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
evil-jumper, please consider submitting a PR.