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 a keybinding for ClosePane #2012

Merged
merged 1 commit into from
Jul 19, 2019

Conversation

zadjii-msft
Copy link
Member

Summary of the Pull Request

Closes #993
When the last pane in a tab is closed, the tab will close.
Bound to Ctrl+Shift+W by default.

References

See #1417 for discussion on the default keybindings. The Ctrl+W->CloseTab keybinding is being removed in favor ClosePane.

PR Checklist

  Closes #993
  When the last pane in a tab is closed, the tab will close.
  Bound to Ctrl+Shift+W by default. See #1417 for discussion on the default
  keybindings. The Ctrl+W->CloseTab keybinding is being removed in favor of
  ClosePane.
@zadjii-msft zadjii-msft requested review from miniksa, DHowett-MSFT and carlos-zamora and removed request for miniksa July 17, 2019 19:06
@zadjii-msft zadjii-msft added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Jul 17, 2019
// - <none>
// Return Value:
// - <none>
void Tab::ClosePane()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: CloseActivePane or CloseFocusedPane

@zadjii-msft zadjii-msft mentioned this pull request Jul 17, 2019
4 tasks
@carlos-zamora
Copy link
Member

So, CloseTab still exists, but we're removing the default keybinding for it?

If somebody adds a keybinding for CloseTab, does it still operate as expected and close all the panes, recursively, within the tab? (I trust that it does but I want to double check) I'm guessing when you click the "X" button on the tab header, it does exactly that.

@carlos-zamora carlos-zamora merged commit 5074335 into master Jul 19, 2019
@carlos-zamora carlos-zamora deleted the dev/migrie/f/993-but-on-master-this-time branch July 19, 2019 00:23
mcpiroman pushed a commit to mcpiroman/terminal that referenced this pull request Jul 23, 2019
Closes microsoft#993
  When the last pane in a tab is closed, the tab will close.
  Bound to Ctrl+Shift+W by default. See microsoft#1417 for discussion on the default
  keybindings. The Ctrl+W->CloseTab keybinding is being removed in favor of
  ClosePane.
@ghost
Copy link

ghost commented Aug 3, 2019

🎉Windows Terminal Preview v0.3.2142.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost ghost mentioned this pull request Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a shortcut for Close Pane
3 participants