Closed x-ji closed 7 years ago
What is evil-snipe-scope
set to? If it's set to 'buffer
(or worse, 'whole-buffer
), evil-snipe will try to scan the rest of the document to highlight all matches.
I will put up a patch to improve highlight performance, but you can fix this altogether by setting it to 'visible
(only scans the visible portion of the buffer) or 'line
(only scans the current line), depending on your preference.
Let me know if that helps!
To be more specific: (setq evil-snipe-scope 'visible)
or (setq evil-snipe-scope 'line)
Sorry, was occupied by something else and didn't try it out until today. Limiting the scope worked. Thanks. Though maybe I should leave the issue here to wait for the patch on highlight performance?
Now, highlighting will only focus on the visible window. This should resolve any performance concerns caused by scanning entire files. Feel free to reopen if that isn't the case.
evil-snipe
works fine for me in normal code files/small Org files. However when I try to perform as/S
search in a very large Org file which contains over 10000 lines, Emacs simply freezes and I had to pressC-g
to get out of it. Any idea what happened and how I might debug it? This is observed using Spacemacs on Windows. I'm yet to test it on Ubuntu.System Info :computer: