From ee2bce51382eb83eaf600b8a940bcaa4aaa92795 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 12 Apr 2022 10:06:56 +0800 Subject: [PATCH] docs: "|" needs to compose with mod SHIFT to work Signed-off-by: Xuanwo --- docs/config/keys.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/keys.md b/docs/config/keys.md index 541184e0e..282a23004 100644 --- a/docs/config/keys.md +++ b/docs/config/keys.md @@ -143,7 +143,7 @@ return { -- timeout_milliseconds defaults to 1000 and can be omitted leader = { key="a", mods="CTRL", timeout_milliseconds=1000 }, keys = { - {key="|", mods="LEADER", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}}, + {key="|", mods="LEADER|SHIFT", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}}, -- Send "CTRL-A" to the terminal when pressing CTRL-A, CTRL-A {key="a", mods="LEADER|CTRL", action=wezterm.action{SendString="\x01"}}, } @@ -168,7 +168,7 @@ return { -- for this example use `setxkbmap -option caps:none` in your terminal. leader = { key="VoidSymbol", mods="", timeout_milliseconds=1000 }, keys = { - {key="|", mods="LEADER", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}}, + {key="|", mods="LEADER|SHIFT", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}}, {key="-", mods="LEADER", action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}}, } }