** Description changed: Tmux doesnt have exit quit whole session shortcut i have session restore plugin if i quit one pane by one and one window by one it takes 2 minutes in middle it can save session in wrong possition and will restore not full tmux session solution need command to exit whole session need shortcut for tmux kill-session with warning question otherwise only option is tmux kill-server killing all sessions + + Feature Request: Add default key binding to kill the current session with confirmation + Problem / Use Case + + Currently, tmux provides default key bindings with confirmation prompts + for killing a single pane (Prefix + x) and killing a single window + (Prefix + &), as well as killing sessions interactively via choose-tree + (Prefix + s, then x). However, there is no single direct default + shortcut to close the active session immediately. + + When using session-saving plugins (such as tmux-resurrect or tmux-continuum), manually exiting panes and windows one by one to close a session takes time and can trigger autosaves mid-exit, resulting in an incomplete layout being saved. Running tmux kill-server is too destructive when multiple sessions are active. + Proposed Solution + + Add a default key binding in key-bindings.c to kill only the current + session after a confirmation prompt—for example, Prefix + Q (which is + currently unbound by default): + + bind-key -N "Kill current session" Q confirm-before -p "kill-session #S? + (y/n)" kill-session + + Benefits + + Brings parity with Prefix + x (pane) and Prefix + & (window). + Prevents accidental session termination via confirm-before. + Avoids partial state saves in session-restore workflows without requiring users to drop to a shell or open choose-tree. + ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: tmux 3.4-1ubuntu0.1 ProcVersionSignature: Ubuntu 7.0.0-28.28~24.04.1-generic 7.0.12 Uname: Linux 7.0.0-28-generic x86_64 ApportVersion: 2.28.3-0ubuntu0.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: KDE Date: Tue Aug 11 07:00:18 2026 InstallationDate: Installed on 2026-02-14 (178 days ago) InstallationMedia: Kubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 (20260210) SourcePackage: tmux UpgradeStatus: No upgrade log present (probably fresh install)
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2163216 Title: Tmux doesnt have exit quit whole session shortcut To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/2163216/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
