RMichelsen / Nvy

Nvy - A Neovim client in C++
MIT License
334 stars 28 forks source link

Support `:cq` #41

Closed statiolake closed 2 years ago

statiolake commented 2 years ago

Terminal Neovim and Neovim-qt has support for :{N}cq, which quits the Neovim with error code {N}. This feature is useful in applications which uses editor as a user interface --- especially git. For example, it can safely abort git commit during editing commit message, since git aborts committing if editor returns non-zero exit code. You can abort a commit by simply typing :q! without saving commit message, but :cq is safer in a sense that it will abort the commit message even if you unintentionally save it while editing. Same goes for git rebase -i and many other git commands.

RMichelsen commented 2 years ago

Looks good, merging.