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

Reload (restart) the current tab #15872

Closed
cronhan opened this issue Aug 24, 2023 · 3 comments
Closed

Reload (restart) the current tab #15872

cronhan opened this issue Aug 24, 2023 · 3 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@cronhan
Copy link

cronhan commented Aug 24, 2023

Description of the new feature/enhancement

Some of my workflows necessitate essentially closing and re-opening the current tab, and it is not the default profile. While it is technically possible using "duplicate" followed by closing the current tab, I feel a nicer flow in this case would be a "reload current tab" action. I could not find such an action in the current list using the command palette, hence this issue.

Proposed technical implementation details (optional)

An action (command?) and right-click option on a tab that says "Reload tab" or similar (I don't think "Restart tab" makes sense). Selecting this option starts a new shell/whatever (e.g. pwsh) in the same tab, as if one had duplicated and closed the current one.

@cronhan cronhan added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Aug 24, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Aug 24, 2023
@lhecker
Copy link
Member

lhecker commented Aug 24, 2023

Do you mean #3726? It has shipped in 1.18.

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 24, 2023
@cronhan
Copy link
Author

cronhan commented Aug 24, 2023

Indeed, sorry for creating the duplicate, I think I missed it because the default search searches only open issues. I'm on the store version so will be looking out for the update!

@cronhan cronhan closed this as completed Aug 24, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 24, 2023
@hi2u
Copy link

hi2u commented Oct 26, 2023

For anyone wanting to bind a key to the new restartConnection feature, this worked for me in my settings.json

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": [
        {
            "command": "restartConnection",
            "keys": "alt+shift+r"
        }
    ]
}

The JSON schema seems to think it's invalid, but it works for me.

Looks like "$schema": "https://aka.ms/terminal-profiles-schema" needs to be updated to lint for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

4 participants