Ray's Knowledge Base
Unlock

rgit's [keys] table is per profile, and an override on a chord replaces the default

FactVerified 19 Oct 2026Holds project: rgit
Fact. A statement and the evidence for it.

Statement#

In rgit's TUI config the key overrides live under a profile name: [keys.magit], [keys.vim] or [keys.<custom>], not a bare [keys] table. An entry maps an action name to a key spec. An override on a chord that a default already uses replaces that default binding (the map is built defaults-first, then overrides); an override on a new chord only adds a second binding for the action, so the default key keeps working too.

Evidence#

2026-10-19, rgit on feat/tui-diff-look: [keys] help = "t" in .rgit/config.toml of a fixture repo had no effect and t still opened the tag menu. [keys.magit] help = "t" took effect: pressing t in the commit view opened the keybindings help. [keys.magit] tag-menu = "C-t" left t bound to the tag menu as well, because that override added a new chord instead of replacing the existing one (crates/rgit-tui/src/keymap.rs build_map inserts defaults, then the overrides).