Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add close_tab keybinding action #4331

Open
mitchellh opened this issue Jan 1, 2025 · 2 comments · May be fixed by #4395
Open

Add close_tab keybinding action #4331

mitchellh opened this issue Jan 1, 2025 · 2 comments · May be fixed by #4395

Comments

@mitchellh
Copy link
Contributor

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.

@FinleyGe
Copy link

FinleyGe commented Jan 2, 2025

In fact, there is a option close_surface to close the "surface": split, tab or windows.
This option could be helpful.

@lg28literconvectionmicrowaveoven

implementation for the gtk apprt: #4033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants