atagen

monolith

public
Star0
Watch0

Commit b14d2e869b21

tarball

atagen <boss@atagen.co>2026-10-19 10:50 UTC

1 file changed+1-1
commands: say which duplicate bind wins

Binds come from a TOML table, which iterates alphabetically, so the bind that wins is the one that sorts first and not the one written first as the warning claimed.
Modified file: crates/monolith/src/commands.rs+1 additions−1 deletions
@@ -25,7 +25,7 @@ impl Binds {
2525 }
2626 if binds.iter().any(|(m, s, _)| *m == b.mods && *s == sym) {
2727 warnings.push(format!(
28- "bind: {:?} with {:?} duplicates an earlier bind, which wins",
28+ "bind: {:?} with {:?} duplicates a bind that sorts before it, which wins",
2929 b.key, b.mods
3030 ));
3131 }