nakagami / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Ctrl+D hope dedent in insert mode #14

Closed nakagami closed 2 days ago

nakagami commented 2 weeks ago

The insert mode ends and page down and scrolling occurs, now. In the case of the last line, the cursor moves to the first character position and still in insert mode. Both behaviours are wrong.

Correctly, in insert mode, the first character of the line at the cursor matches the indent position. And you remain in insert mode.

nakagami commented 2 weeks ago

Currently being handled by the function here. https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/src/prompt_toolkit/key_binding/bindings/vi.py#L993-L999

nakagami commented 1 week ago

Insert mode not to be left out by https://github.com/nakagami/pyvim/commit/f38c10797de10591fee61a6c9a2c9781c6afbc95 , now. For me, this is not perfect, but it's better.

I just need to fix dedent.