Open futurist opened 8 years ago
I'm afraid I don't understand the use-case. In vim, point is on the character, in emacs, point is between characters, Evil simulates the vim behaviour I believe.
When would it be wanted to treat the next sexp not as such and instead select the parent? Or is what you mean that the point must touch the sexp for it to be recognized? If so, you can test this very easily with the return value of the search function, which can be examined using sp-get
macro.
Please see the different of below command, for example:
(isearch-forward-symbol-at-point)
(isearch-forward-symbol)
(isearch-forward-symbol-at-point)
Do incremental search forward for a symbol found near point. Like ordinary incremental search except that the symbol found at point is added to the search string initially as a regexp surrounded
Think of Vim and Emacs search all include a feature, that whether a searching pattern should also match char under point.
sp-forward-sexp
and other sp- searching command could also provide this feature. like below:Here, char under cursor is a pair, if with
char under point
option, the targetsexp
should be(1==2)
; if not, target should be the whole(if ...)
I'm trying do some customize with sp, but found I've going this pitfall several times.
Or, sp already had this feature that I don't know already?
(above also need for string)