Remove menu/shortcut hint text; add reliable move-tab-to-new-window key

- Dropped the "☰ Menu" / "Ctrl+Shift+Click / Ctrl+a m" left-status
  text per request; the menu still opens the same way, it's just no
  longer labeled in the tab bar.
- Dragging a tab out of the fancy tab bar to pop it into its own
  window turned out not to work reliably on this WezTerm build.
  Replaced that expectation with an explicit Leader+Enter keybinding
  that calls pane:move_to_new_window() (documented mux Pane method),
  a scripted equivalent that doesn't depend on the drag gesture.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 01:58:37 +09:00
parent d7eb6d3459
commit b49a9c20b2

View File

@@ -95,15 +95,6 @@ end)
local pane_start_times = {} local pane_start_times = {}
wezterm.on("update-right-status", function(window, pane) wezterm.on("update-right-status", function(window, pane)
window:set_left_status(wezterm.format({
{ Background = { Color = "#89b4fa" } },
{ Foreground = { Color = "#1e1e2e" } },
{ Text = " ☰ Menu " },
{ Background = { Color = "#313244" } },
{ Foreground = { Color = "#cdd6f4" } },
{ Text = " Ctrl+Shift+Click / Ctrl+a m " },
}))
local pane_id = pane:pane_id() local pane_id = pane:pane_id()
if not pane_start_times[pane_id] then if not pane_start_times[pane_id] then
pane_start_times[pane_id] = os.time() pane_start_times[pane_id] = os.time()
@@ -813,6 +804,15 @@ config.keys = {
-- 메인 메뉴: 설정 메뉴와 통합 런처를 다시 표시 -- 메인 메뉴: 설정 메뉴와 통합 런처를 다시 표시
{ key = "m", mods = "LEADER", action = act.EmitEvent("show-main-menu") }, { key = "m", mods = "LEADER", action = act.EmitEvent("show-main-menu") },
-- 현재 탭을 새 창으로 분리 (탭바 드래그 대신 확실하게 동작하는 방법)
{
key = "Enter",
mods = "LEADER",
action = wezterm.action_callback(function(window, pane)
pane:move_to_new_window()
end),
},
-- [2] 워크스페이스(=tmux 세션) 전환/생성 목록 -- [2] 워크스페이스(=tmux 세션) 전환/생성 목록
{ key = "w", mods = "LEADER", action = act.ShowLauncherArgs({ flags = "WORKSPACES" }) }, { key = "w", mods = "LEADER", action = act.ShowLauncherArgs({ flags = "WORKSPACES" }) },
-- [2] SSH 도메인 접속 (config.ssh_domains에 등록한 서버 목록에서 선택) -- [2] SSH 도메인 접속 (config.ssh_domains에 등록한 서버 목록에서 선택)