Fix menu button and keep settings in WezTerm

This commit is contained in:
2026-07-17 00:53:34 +09:00
parent 0f9632a678
commit fb37c2ff50

View File

@@ -96,14 +96,12 @@ local pane_start_times = {}
wezterm.on("update-right-status", function(window, pane)
window:set_left_status(wezterm.format({
{ Hyperlink = { uri = "wezterm://main-menu" } },
{ Background = { Color = "#89b4fa" } },
{ Foreground = { Color = "#1e1e2e" } },
{ Text = " ☰ Menu " },
{ Hyperlink = { uri = "" } },
{ Background = { Color = "#313244" } },
{ Foreground = { Color = "#cdd6f4" } },
{ Text = " Ctrl+a m " },
{ Text = " Alt+Click / Ctrl+a m " },
}))
local pane_id = pane:pane_id()
@@ -416,12 +414,6 @@ wezterm.on("show-main-menu", function(window, pane)
show_main_menu(window, pane)
end)
wezterm.on("open-uri", function(window, pane, uri)
if uri == "wezterm://main-menu" then
show_main_menu(window, pane)
return false
end
end)
-- 시작 시 첫 화면으로 메인 메뉴를 띄워 설정과 연결 메뉴에 바로 접근합니다.
wezterm.on("gui-startup", function(cmd)
@@ -516,6 +508,11 @@ config.mouse_bindings = {
mods = "CTRL|SHIFT",
action = act.PasteFrom("Clipboard"),
},
{
event = { Up = { streak = 1, button = "Left" } },
mods = "ALT",
action = act.EmitEvent("show-main-menu"),
},
{
event = { Up = { streak = 1, button = "Left" } },
mods = "CTRL",