Skip to content

Add close_tab keybinding action #4331

Description

@mitchellh

Discussed in #3778

Originally posted by Qtechinnovation December 28, 2024
I noticed that https://ghostty.org/docs/config/keybind/reference does not mention an option to set a keybind to close a tab, but only to open one. I assumed that since opening a new tab by default uses the rather sensible ctrl+shift+t, that closing the tab would use ctrl+shift+w, but it does not. Is there an option to set a close tab keybind? I found a discussion about a person who forked ghostty to add one, but no interaction with the discussion, so I think this is warranted, especially for all the people who use keybinds as a way to increase productivity.

Details

This would close a tab and all splits within that tab. This should behave like close_window does for tabs and splits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions