jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
2.94k stars 102 forks source link

<C-a>/<C-x> should jump cursor to the next number #203

Open Sciencentistguy opened 1 year ago

Sciencentistguy commented 1 year ago

General information

Basic examination

Problem description

Pressing <C-a> increments the number under the cursor. This is correct. However, in real vi(m), pressing <C-a> seeks to the next number on the line, if the cursor is not on a number.

Reproduction steps

  1. type hello world 1
  2. enter normal mode
  3. 0
  4. <C-a>
  5. ... nothing

Expected behavior

hello world 2 and the cursor to jump to the end of the string

jeffreytse commented 1 year ago

Hi @Sciencentistguy

Thanks for your issue, and it's really a problem and not support on current implementation, I will do an enhancement as soon as possible.

Thanks & Regards