Comment

Comment by xp84

At the risk of angering all the vim-heads (this tip isn’t for anyone who likes vim or even emacs):

  editor = "nano -t"
This nano option is aka --saveonexit

Things accomplished:

- avoids using an overpowered modal editor that requires several keystrokes just to save and quit when done writing my couple of sentence commit message

- avoid even having to tell it I want to save. Of course I want to save. ^x - all done

(In the unlikely event you decide you want to abort the commit, just hit ^k a few times to kill the text and then ^x)

(Edit: Updated to the default exit keybinding which is ^x)

parent xp84 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton