Reload (restart) the current tab #20398

Closed
opened 2026-01-31 07:12:34 +00:00 by claunia · 3 comments
Owner

Originally created by @cronhan on GitHub (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.

Originally created by @cronhan on GitHub (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.
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 07:12:35 +00:00
Author
Owner

@lhecker commented on GitHub (Aug 24, 2023):

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

@lhecker commented on GitHub (Aug 24, 2023): Do you mean #3726? It has shipped in 1.18.
Author
Owner

@cronhan commented on GitHub (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 commented on GitHub (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!
Author
Owner

@hi2u commented on GitHub (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.

@hi2u commented on GitHub (Oct 26, 2023): For anyone wanting to bind a key to the new `restartConnection` feature, this worked for me in my `settings.json` ```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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20398