Skip to content

Add a close_tab action / shortcut — Ctrl+W closes the whole pane (all tabs) and the workspace #93

@elite-benni

Description

@elite-benni

Type: Feature request / UX

Version: limux-bin 0.1.19 (Arch, GTK4/libghostty)

Summary

There is currently no keyboard shortcut to close a single tab. The only way to close one tab is clicking the × on the tab in the top bar. Ctrl+W is bound to close_focused_pane, which destroys the entire pane — and because tabs are nested inside a pane, this takes every tab in that pane with it. If the pane is the only one in the workspace, the workspace collapses too.

Steps to reproduce

  1. Open a workspace with a single (unsplit) pane.
  2. Open two or more tabs in it (Ctrl+T).
  3. Press Ctrl+W.

Expected

Ctrl+W closes only the focused tab. With multiple tabs open, the other tabs and the workspace remain.

Actual

Ctrl+W closes the whole pane — all tabs in it — and since it's the only pane, the workspace closes as well. All work in that workspace is gone in one keystroke. I believe I would not need a shortcut to destroy the workspace. (but thats just my opinion)

There is no close_tab action in the action list at all, so Ctrl+W's "close" intent unavoidably operates at the pane level.

Proposed fix

  • Add a close_tab action that closes only the focused tab within the active pane.
  • Suggested default: bind close_tab to Ctrl+W (matching virtually every other terminal/browser), and move close_focused_pane to Ctrl+Shift+W or similar.
  • Make it available in the Keybindings editor so users can rebind it.

Impact

Ctrl+W is universal muscle memory for "close this tab." In limux it silently destroys the whole pane and workspace, which is an easy and costly accident.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions