forge
Explore
Log in

Don't you dare go Hollow

Docs: document reverse switching functionality introduced in #1670 (#3782)

Browse files at this commit

599db847f857b8a7ff78ce02f15acab5d5d9fee1UnverifiedEmir Karamehmetoglu and Ivan MolodetskikhParent: d1a0380
* document the reverse switching functionality introduced in #1670

Toggling in reverse through preset widths & heights was added in #1670.

However, it's really difficult to find in the docs. The sole exception is a comment in the default config.kdl, but that only documents one of the new settings (width).

I had to open up `bindings.rs` on github source code to even find the right setting for the other. This information should be available in the docs or config somewhere.

## Alternatives Considered

I considered documenting the preset-toggling functionality, including reverse toggling, in `bindings` wiki, but then the original (non-reversed) toggling would be documented in multiple places. More importantly, bindings seems to be a guide on how to set bindings, not what actions are available for use with bindings.

* Update docs/wiki/Configuration:-Layout.md

* Update docs/wiki/Configuration:-Layout.md

---------
docs/wiki/Configuration:-Layout.mdmodified+2 -0
@@ -177,6 +177,7 @@ layout {
177 ### `preset-column-widths`177 ### `preset-column-widths`
178 178
179 Set the widths that the `switch-preset-column-width` action (Mod+R) toggles between.179 Set the widths that the `switch-preset-column-width` action (Mod+R) toggles between.
180+<sup>Since: 25.08</sup> You can use the `switch-preset-column-width-back` action (not bound by default) to toggle in reverse.
180 181
181 `proportion` sets the width as a fraction of the output width, taking gaps into account.182 `proportion` sets the width as a fraction of the output width, taking gaps into account.
182 For example, you can perfectly fit four windows sized `proportion 0.25` on an output, regardless of the gaps setting.183 For example, you can perfectly fit four windows sized `proportion 0.25` on an output, regardless of the gaps setting.
@@ -229,6 +230,7 @@ layout {
229 <sup>Since: 0.1.9</sup>230 <sup>Since: 0.1.9</sup>
230 231
231 Set the heights that the `switch-preset-window-height` action (Mod+Shift+R) toggles between.232 Set the heights that the `switch-preset-window-height` action (Mod+Shift+R) toggles between.
233+<sup>Since: 25.08</sup> You can use the `switch-preset-column-width-back` action (not bound by default) to toggle in reverse.
232 234
233 `proportion` sets the height as a fraction of the output height, taking gaps into account.235 `proportion` sets the height as a fraction of the output height, taking gaps into account.
234 The default preset heights are <sup>1</sup>&frasl;<sub>3</sub>, <sup>1</sup>&frasl;<sub>2</sub> and <sup>2</sup>&frasl;<sub>3</sub> of the output.236 The default preset heights are <sup>1</sup>&frasl;<sub>3</sub>, <sup>1</sup>&frasl;<sub>2</sub> and <sup>2</sup>&frasl;<sub>3</sub> of the output.