juliapath / evil-numbers

Increment and decrement numbers in Emacs
GNU General Public License v3.0
39 stars 6 forks source link

Restore ability to increment numbers left of cursor #26

Closed rien333 closed 3 years ago

rien333 commented 3 years ago

After years of using cofi/evil-numbers, I'm quite used to being able to have my cursor one character to the left of a number, and then running evil-numbers/* commands.

The following did work previously, but now just outputs evil-numbers/inc-at-pt: No number at point or until end of line

foo(1█; # the block is the cursor

This behavior was included in version 0.4, to which I've downgraded for now.

ideasman42 commented 3 years ago

The behavior you described diverges from VIM, since this package aims to replicate the functionality of VIM, this is not considered a bug.


Note, there could be an option (off by default) to search backwards when searching forward doesn't yield any results.

rien333 commented 3 years ago

I think including this as an option makes sense.

I don't use this package because it's just like Vim (never used it as an emacs user), but (1) because melpa now downloads this fork, instead of cofi/evil-numbers, and (2) because its more maintained than the original. In any case, I find it kinda odd that this package aims to replicate Vim, since the readme actually explictly mentions a behavior that diverges from Vim. (+it doesn't explictly describe itself as a duplicate of Vim)