NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.83k stars 228 forks source link

Ability to use normal mode when rewording a commit #1241

Closed stevenxxiu closed 5 months ago

stevenxxiu commented 5 months ago

Is your feature request related to a problem? Please describe.

I can't enter normal mode when rewording commits. Hitting Esc exits the operation. This makes text editing rather challenging.

Describe the solution you'd like

I see https://github.com/NeogitOrg/neogit/blob/c0b1d4dfc8ba6371857868ca7c4d33954cf002fd/lua/neogit/lib/input.lua#L37 using vim.fn.input(). Perhaps the new vim.ui.input() can be used instead? This allows the use of say dressing.

Describe alternatives you've considered

Using arrow keys isn't ideal.

Additional context

N/A

CKolkey commented 5 months ago

You will be very happy to know that on the nightly branch, the rebase-reword experience features a proper buffer :)

Screenshot 2024-04-07 at 21 19 10