zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

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

Open Sciencentistguy opened this issue 2 years ago • 1 comments

General information

  • Terminal: alacritty
  • OS: NixOS / macOS
  • ZSH framework: None
  • ZSH version: 5.9
  • ZVM version: 0.9.0

Basic examination

  • [x] I have read through the README page
  • [x] I have the latest version of zsh-vi-mode
  • [x] I have tested with another terminal program

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

Sciencentistguy avatar Feb 22 '23 11:02 Sciencentistguy

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

jeffreytse avatar Mar 17 '23 02:03 jeffreytse