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

Make index in closeOtherTabs and closeTabsAfter optional #7390

Merged
2 commits merged into from
Aug 25, 2020

Conversation

carlos-zamora
Copy link
Member

@carlos-zamora carlos-zamora commented Aug 25, 2020

Summary of the Pull Request

The index action argument is now optional for closeOtherTabs and closeTabsAfter. When index is not defined, index is set to the focused tab's index.

Also, adds the non-index version of these actions to defaults.json.

PR Checklist

Validation Steps Performed

Opened 4 tabs and ran closeOtherTabs/closeTabsAfter from command palette.

@ghost ghost added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Area-Settings Issues related to settings and customizability, for console or terminal labels Aug 25, 2020
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

Meh, these are nits. I'd love to hear other people's thoughts

src/cascadia/TerminalApp/AppActionHandlers.cpp Outdated Show resolved Hide resolved
src/cascadia/TerminalApp/Resources/en-US/Resources.resw Outdated Show resolved Hide resolved
Copy link
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

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

Looks fine. Req changes due to the handled true/false discussion.

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 25, 2020
@DHowett
Copy link
Member

DHowett commented Aug 25, 2020

This is not specific to your PR, but we need to make sure that "after" works properly when the UI is in RTL layout . . . if that still exists

@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 25, 2020
@DHowett
Copy link
Member

DHowett commented Aug 25, 2020

@msftbot merge this in 1 minutes

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Aug 25, 2020
@ghost
Copy link

ghost commented Aug 25, 2020

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Tue, 25 Aug 2020 19:22:47 GMT, which is in 1 minute

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit 2fdc88f into master Aug 25, 2020
@ghost ghost deleted the dev/cazamor/optional-index branch August 25, 2020 19:25
DHowett pushed a commit that referenced this pull request Aug 25, 2020
## Summary of the Pull Request
The `index` action argument is now optional for `closeOtherTabs` and `closeTabsAfter`. When `index` is not defined, `index` is set to the focused tab's index.

Also, adds the non-index version of these actions to defaults.json.

## PR Checklist
* [X] Closes #7181
* [X] CLA signed
* [X] Tests passed
* [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx
* [X] Schema updated.

## Validation Steps Performed
Opened 4 tabs and ran closeOtherTabs/closeTabsAfter from command palette.

(cherry picked from commit 2fdc88f)
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Area-User Interface Issues pertaining to the user interface of the Console or Terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The index param of closeOtherTabs, closeTabsAfter should be optional
4 participants