Key binding for closeTab #6997

Closed
opened 2026-01-31 00:52:35 +00:00 by claunia · 2 comments
Owner

Originally created by @msmigiel on GitHub (Mar 19, 2020).

Description of the new feature/enhancement

There are key bindings for various tab functions (newTab, duplicateTab, etc...) but I do not see one for closing a tab.

Proposed technical implementation details (optional)

In defaults.json, we should have something like:

{ "command": "closeTab", "keys": "ctrl+shift+x" }

Originally created by @msmigiel on GitHub (Mar 19, 2020). # Description of the new feature/enhancement There are key bindings for various tab functions (newTab, duplicateTab, etc...) but I do not see one for closing a tab. # Proposed technical implementation details (optional) In defaults.json, we should have something like: { "command": "closeTab", "keys": "ctrl+shift+x" }
Author
Owner

@zadjii-msft commented on GitHub (Mar 19, 2020):

Thanks for the suggestion! The action closePane will actually act to close a tab if there is only one pane in a tab. This has worked well so far as a effective default for "close tab".

@zadjii-msft commented on GitHub (Mar 19, 2020): Thanks for the suggestion! The action `closePane` will actually act to close a tab if there is only one pane in a tab. This has worked well so far as a effective default for "close tab".
Author
Owner

@kid1412621 commented on GitHub (Mar 22, 2020):

Thanks for the suggestion! The action closePane will actually act to close a tab if there is only one pane in a tab. This has worked well so far as a effective default for "close tab".

The closeTab scenario should like this: if I got multi panes and want to close current tab.

@kid1412621 commented on GitHub (Mar 22, 2020): > Thanks for the suggestion! The action `closePane` will actually act to close a tab if there is only one pane in a tab. This has worked well so far as a effective default for "close tab". The `closeTab` scenario should like this: if I got multi panes and want to close current tab.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6997