Change recent-windows binds to have lower precedence

Otherwise it breaks people's existing binds.
This commit is contained in:
Ivan Molodetskikh
2025-11-18 13:16:51 +03:00
parent 7f19d268b3
commit c256842761
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -138,7 +138,8 @@ recent-windows {
}
```
The recent windows binds have a precedence over the [normal binds](./Configuration:-Key-Bindings.md), meaning that if you have <kbd>Alt</kbd><kbd>Tab</kbd> bound to something else in the normal binds, the `recent-windows` bind will override it.
The recent windows binds have lower precedence than the [normal binds](./Configuration:-Key-Bindings.md), meaning that if you have <kbd>Alt</kbd><kbd>Tab</kbd> bound to something else in the normal binds, the `recent-windows` bind won't work.
In this case, you can remove the conflicting normal bind.
All binds in this section must have a modifier key like <kbd>Alt</kbd> or <kbd>Mod</kbd> because the recent windows switcher remains open only while you hold any modifier key.
+2 -2
View File
@@ -4937,8 +4937,8 @@ fn make_binds_iter<'a>(
let mru_open_binds = mru.is_open().then(|| mru.opened_bindings(mods));
let mru_open_binds = mru_open_binds.into_iter().flatten();
// MRU binds take precedence over general ones.
mru_binds.chain(mru_open_binds).chain(general_binds)
// General binds take precedence over the MRU binds.
general_binds.chain(mru_binds).chain(mru_open_binds)
}
#[cfg(test)]