hlissner / evil-multiedit

Multiple cursors for evil-mode, based on iedit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Why this line

justbur opened this issue · comments

https://github.com/hlissner/evil-multiedit/blob/master/evil-multiedit.el#L281-L282

I don't understand the purpose of this. I have evil-multiedit-thing-at-point-fn to always grab symbols, but with this line if I try to use the match all function on the - of an elisp function, I only match all hyphens in the file, which is definitely not what I want ever. What is the purpose of this check in evil-multiedit--match-bounds?

This was to allow people to quickly mark delimiters straight from normal mode, e.g.

But you can do this from visual mode and it doesn't mirror Atom/Sublime Text's multi-caret behavior, so you're right, it's quite strange (and it shouldn't override user customization!). I will push a fix in a couple minutes.

Maybe in the future you could use the syntax table of the major-mode so that you don't accidentally grab parts of symbols?

Great idea. Problem is I'm not familiar with how to use the syntax table. I'll look into it.