Accidentally triggering a destructive command is one of the worst feelings
during daily development. Keybindings that alter remote branch history—like
git push --force—should require deliberate intent so they aren’t hit by a
stray keypress.
Inspired by a commit in thallada’s neovim-config, shifting keymaps for
destructive operations from lowercase to uppercase (<Leader>gf →
<Leader>gF) adds a crucial layer of friction.
The Problem with Lowercase Shortcuts for Destructive Actions
When mapping Git commands inside NeoVim, it is common to group them under a
<Leader>g prefix: