From cdfa86aebd6fafb66054461ece3276472ffc822d Mon Sep 17 00:00:00 2001 From: Max von Webel Date: Sat, 8 Feb 2025 15:20:00 +0100 Subject: [PATCH] Update user-var-changed.md (#6368) * Update user-var-changed.md By default base64 inserts a line break at some column which will truncate the user var. `-w 0` disables line wrapping * added a note instead of changing the base64 command --- docs/config/lua/window-events/user-var-changed.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/config/lua/window-events/user-var-changed.md b/docs/config/lua/window-events/user-var-changed.md index a7b23933f..bd8e4d3bc 100644 --- a/docs/config/lua/window-events/user-var-changed.md +++ b/docs/config/lua/window-events/user-var-changed.md @@ -13,6 +13,11 @@ printf "\033]1337;SetUserVar=%s=%s\007" foo `echo -n bar | base64` to set the user var named `foo` to the value `bar`. +!!! note + On some systems the `base64` command wraps the output by default after some + amount of characters limiting the maximum length of the value. If this is + the case an argument like `-w 0` might help to avoid wrapping. + Then, if you have this in your config: ```lua