naens/zwsh

Exit with ^Kq in normal and edit modes

naens opened this issue · 0 comments

naens commented

Never exit without prompt on ^Kq when the document is not empty.

In edit mode:

  • if empty, go to normal mode
  • if not empty, ask confirmation

In normal mode:

  • if empty, close terminal
  • if not empty, ask confirmation

In field mode the keybinding should be disabled.