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

Delete to the beginning of the line doesn't work

Open ecbaldwin opened this issue 3 years ago • 1 comments

General information

Basic examination

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

Problem description

I was trying to delete from the cursor to the beginning of the line in normal mode. I tried two methods:

  1. d0 should delete from the character before the cursor to the beginning of the line. It does nothing.
  2. d^ should delete from the character before the cursor to the first non-whitespace character on the line. It deletes them PLUS the character the cursor was sitting on.

Reproduction steps

  1. On a fresh command prompt, type sudo id
  2. Type <esc>b to place the curson on the i
  3. Type d0 to delete sudo -- nothing happens but it should have deleted it
  4. Type d^ as a second attempt to delete sudo -- it deletes sudo but also deletes the i in id. Vi doesn't delete the i

Expected behavior

Should delete from the character before the cursor to the beginning of the line.

ecbaldwin avatar Sep 21 '21 20:09 ecbaldwin

Hi @ecbaldwin

Thanks for your reporting, I will work on this issue as soon as possible.

Thanks and Regards

jeffreytse avatar Sep 22 '21 14:09 jeffreytse