forge
Explore
Log in

Don't you dare go Hollow

Change recent-windows binds to have lower precedence

Browse files at this commit

c256842761b8b7eba7c8663cd1b02fcf3ab75ea0Ivan MolodetskikhParent: 7f19d26
Otherwise it breaks people's existing binds.
docs/wiki/Configuration:-Recent-Windows.mdmodified+2 -1
@@ -138,7 +138,8 @@ recent-windows {
138 }138 }
139 ```139 ```
140 140
141-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.141+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.
142+In this case, you can remove the conflicting normal bind.
142 143
143 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.144 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.
144 145
src/input/mod.rsmodified+2 -2
@@ -4937,8 +4937,8 @@ fn make_binds_iter<'a>(
4937 let mru_open_binds = mru.is_open().then(|| mru.opened_bindings(mods));4937 let mru_open_binds = mru.is_open().then(|| mru.opened_bindings(mods));
4938 let mru_open_binds = mru_open_binds.into_iter().flatten();4938 let mru_open_binds = mru_open_binds.into_iter().flatten();
4939 4939
4940- // MRU binds take precedence over general ones.4940+ // General binds take precedence over the MRU binds.
4941- mru_binds.chain(mru_open_binds).chain(general_binds)4941+ general_binds.chain(mru_binds).chain(mru_open_binds)
4942 }4942 }
4943 4943
4944 #[cfg(test)]4944 #[cfg(test)]