mirror of
https://github.com/skoelle/kctl-tui.git
synced 2026-09-17 20:10:24 +00:00
fix: use maximized instead of fullscreen and disable quit keybindings
- Change wt -F (fullscreen) to wt -M (maximized) — keeps titlebar and taskbar - Use DisableQuitKeybindings() in wt mode to fully disable q and ctrl+c - Hide help text in wt mode to remove visible q quit hint
This commit is contained in:
@@ -355,7 +355,7 @@ func (m *fullModel) startWtSession() tea.Cmd {
|
|||||||
kubeexec.VerboseLog("[debug] panelCmd=%s\n", panelCmd)
|
kubeexec.VerboseLog("[debug] panelCmd=%s\n", panelCmd)
|
||||||
kubeexec.VerboseLog("[debug] k9sCmdA=%s\n", k9sCmdA)
|
kubeexec.VerboseLog("[debug] k9sCmdA=%s\n", k9sCmdA)
|
||||||
|
|
||||||
wtCmd := fmt.Sprintf("wt -F new-tab %s ; split-pane -H -s 0.75 %s", panelCmd, k9sCmdA)
|
wtCmd := fmt.Sprintf("wt -M new-tab %s ; split-pane -H -s 0.75 %s", panelCmd, k9sCmdA)
|
||||||
|
|
||||||
if len(m.cfg.Envs) > 1 {
|
if len(m.cfg.Envs) > 1 {
|
||||||
envB := m.cfg.Envs[1]
|
envB := m.cfg.Envs[1]
|
||||||
|
|||||||
@@ -95,7 +95,8 @@ func newPanelModel(context, ns, team string) *panelModel {
|
|||||||
|
|
||||||
m := &panelModel{context: context, ns: ns, team: team, cfg: cfg, step: stepEnvMenu, list: l, input: ti}
|
m := &panelModel{context: context, ns: ns, team: team, cfg: cfg, step: stepEnvMenu, list: l, input: ti}
|
||||||
if m.isWtMode() {
|
if m.isWtMode() {
|
||||||
l.KeyMap.Quit.SetEnabled(false) // "q" deaktivieren, "ctrl+c" bleibt
|
l.DisableQuitKeybindings()
|
||||||
|
l.SetShowHelp(false)
|
||||||
}
|
}
|
||||||
if loadErr != nil {
|
if loadErr != nil {
|
||||||
m.err = fmt.Errorf("config load failed: %w", loadErr)
|
m.err = fmt.Errorf("config load failed: %w", loadErr)
|
||||||
|
|||||||
Reference in New Issue
Block a user