From 5e46672cf44f10fb879f2fb9ab8a5b19384dcd5c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 5 Dec 2020 11:21:17 +0100 Subject: config: ignore “self” when detecting key binding collisions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, foot would not accept the following: [key-bindings] minimize=Escape minimize=Escape Now it does. I.e. key combos in the action being updated are ignored when detecting collisions. The example above is contrived; a real world example could be to remove certain combos from an action with multiple combos; perhaps to free up a combo for another action. Example: [search-bindings] cancel=Escape This would previously cause an error since `cancel=Control+g Escape` by default. Closes #233 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 74a8932e..d50a39af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,6 +96,11 @@ means foot can be PGO:d in e.g. sandboxed build scripts. See ### Deprecated ### Removed ### Fixed + +* Error when re-assigning a default key binding + (https://codeberg.org/dnkl/foot/issues/233). + + ### Security -- cgit v1.3