This commit adds a couple of helper methods that provide insight into the state of the keyboard layer. The intent is for users to add status information about the keyboard state. This commit also ensures that we schedule an update when the leader key duration expires, and ensures that we close out the leader state for an invalid key press. refs: #686 closes: #688 ```lua local wezterm = require 'wezterm'; wezterm.on("update-right-status", function(window, pane) local leader = "" if window:leader_is_active() then leader = "LEADER" end local dead = "" if window:dead_key_active() then dead = "DEAD" end window:set_right_status(leader .. " " .. dead) end); return { leader = { key="a", mods="CTRL" }, colors = { dead_key_cursor = "orange", }, } ```
This directory contains the sources for the documentation. Read the generated documentation at: https://wezfurlong.org/wezterm