From eee40f7d1717a7c263a4ea6a4809795cae65e887 Mon Sep 17 00:00:00 2001 From: Benoit de Chezelles Date: Mon, 23 Nov 2020 23:57:34 +0100 Subject: [PATCH] Update permute_any_mods.md --- docs/config/lua/wezterm/permute_any_mods.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/config/lua/wezterm/permute_any_mods.md b/docs/config/lua/wezterm/permute_any_mods.md index fc6a49766..c4bd2735d 100644 --- a/docs/config/lua/wezterm/permute_any_mods.md +++ b/docs/config/lua/wezterm/permute_any_mods.md @@ -15,7 +15,7 @@ difference between `permute_any_mods` and `permute_any_or_no_mods`). An array holding all of those combinations is returned. -The array can be unpacked into a lua table initializer and used like this: +If this is your only binding, or it is the _last_ binding, the resulting array can be unpacked into a lua table initializer and used like this: ```lua local wezterm = require 'wezterm'; @@ -29,6 +29,7 @@ return { } } ``` +(and if you have other bindings before and/or after, use a for loop to iterate and add each binding to your bindings table) This is equivalent to writing this out, but is much less verbose: