mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 22:33:52 +03:00
028026049d
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", }, } ``` |
||
---|---|---|
.. | ||
lua | ||
appearance.md | ||
files.md | ||
font-shaping.md | ||
fonts.md | ||
keys.md | ||
launch.md | ||
mouse.md |