Can't reorder tabs when running as Administrator #9594

Closed
opened 2026-01-31 01:58:42 +00:00 by claunia · 14 comments
Owner

Originally created by @ghost on GitHub (Jul 13, 2020).

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Run Windows Terminal as Administrator

Expected behavior

You should be able to reorder the tabs.

Actual behavior

The tabs cannot be reordered.

Originally created by @ghost on GitHub (Jul 13, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? ``` # Steps to reproduce Run Windows Terminal as Administrator # Expected behavior You should be able to reorder the tabs. # Actual behavior The tabs cannot be reordered.
Author
Owner

@zadjii-msft commented on GitHub (Jul 13, 2020):

Huh, I'm not sure we really have an open issue tracking the status of this, but this is something that we can't support right now due to some platform limitations. Turns out, even if we tried to support reordering tabs while elevated, the application would actually just crash 😨. See #4874, #5564 and others for more details.

This might be made better by not needing to run the Terminal elevated, which we're hoping to land as a part of #5000, though, no promises.

@zadjii-msft commented on GitHub (Jul 13, 2020): Huh, I'm not sure we really have an open issue tracking the status of this, but this is something that we can't support right now due to some platform limitations. Turns out, even if we tried to support reordering tabs while elevated, the application would actually just crash 😨. See #4874, #5564 and others for more details. This might be made better by _not needing to run the Terminal elevated_, which we're hoping to land as a part of #5000, though, no promises.
Author
Owner

@nclemons78 commented on GitHub (Aug 11, 2022):

If #5000 isn't going to be able to include the elevation fixes as it currently indicates, is there any progress towards this specific issue? It's rather a pain, since working with Vagrant + Hyper-V requires me to use elevation.

@nclemons78 commented on GitHub (Aug 11, 2022): If #5000 isn't going to be able to include the elevation fixes as it currently indicates, is there any progress towards this specific issue? It's rather a pain, since working with Vagrant + Hyper-V requires me to use elevation.
Author
Owner

@yaira2 commented on GitHub (Jan 6, 2023):

@zadjii-msft we're seeing this same issue in Files with WinAppSdk.

@yaira2 commented on GitHub (Jan 6, 2023): @zadjii-msft we're seeing this same issue in [Files](https://github.com/files-community/Files) with WinAppSdk.
Author
Owner

@swinder0161 commented on GitHub (Feb 13, 2023):

Very much needed functionality. Any workaround available with some key shortcuts maybe?

@swinder0161 commented on GitHub (Feb 13, 2023): Very much needed functionality. Any workaround available with some key shortcuts maybe?
Author
Owner

@zadjii-msft commented on GitHub (Feb 14, 2023):

Moving tabs isn't bound to a key, but it is in the Command Palette with the following actions:

        { "command": { "action" : "moveTab", "direction": "forward" }},
        { "command": { "action" : "moveTab", "direction": "backward" }},
@zadjii-msft commented on GitHub (Feb 14, 2023): [Moving tabs](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#move-tab) isn't bound to a key, but it is in the Command Palette with the following actions: ```json { "command": { "action" : "moveTab", "direction": "forward" }}, { "command": { "action" : "moveTab", "direction": "backward" }}, ```
Author
Owner

@avraam-inside commented on GitHub (Apr 19, 2023):

@zadjii-msft Hi!

The year is 2023. A lot of requests for this functionality are closed - while the functionality itself is still missing.

I need a terminal in administrator mode and with the ability to move tabs normally by mouse.

Except in the application code there can be no problems

Please reopen the request and make the functionality normally.

@avraam-inside commented on GitHub (Apr 19, 2023): @zadjii-msft Hi! The year is 2023. A lot of requests for this functionality are closed - while the functionality itself is still missing. I need a terminal in administrator mode and with the ability to move tabs normally by mouse. Except in the application code there can be no problems Please reopen the request and make the functionality normally.
Author
Owner

@zadjii-msft commented on GitHub (Apr 19, 2023):

@avraam-inside Thanks for the feedback! As we discussed in #3581, dragging & dropping XAML elements in elevated applications is something that's strictly not supported by the platform currently. We've got ongoing threads with them internally, but there's nothing else we can do ourselves to support this. There's some discussion of the topic here: https://github.com/microsoft/WindowsAppSDK/discussions/373, but I'm not sure there's a dedicated WinAppSDK thread to that request. I'd recommend filing one there! That's the best place to request & show support for that feature request.

@zadjii-msft commented on GitHub (Apr 19, 2023): @avraam-inside Thanks for the feedback! As we discussed in #3581, dragging & dropping XAML elements in elevated applications is something that's strictly not supported by the platform currently. We've got ongoing threads with them internally, but there's nothing else we can do ourselves to support this. There's some discussion of the topic here: https://github.com/microsoft/WindowsAppSDK/discussions/373, but I'm not sure there's a dedicated WinAppSDK thread to that request. I'd recommend filing one there! That's the best place to request & show support for that feature request.
Author
Owner

@avraam-inside commented on GitHub (Apr 19, 2023):

@zadjii-msft thanks for fast answer!

Done: https://github.com/microsoft/WindowsAppSDK/discussions/373

@avraam-inside commented on GitHub (Apr 19, 2023): @zadjii-msft thanks for fast answer! Done: https://github.com/microsoft/WindowsAppSDK/discussions/373
Author
Owner

@rlwakefield commented on GitHub (Dec 14, 2023):

I truly hope this can be solved soon because I have to run Terminal as an administrator all of the time at work due to what I need to execute with it. So I really could use the ability to re-organize the tabs through drag 'n drop.

If there isn't an option to do drag 'n drop for a while, can we get something like a workaround where you can right-click on a tab and tell it to "Move tab to the left", "Move tab to the right", "Move tab to the beginning" or "Move tab to the end"? At least this would allow us to move them around. Might not be efficient, but it would work.

Thanks.

@rlwakefield commented on GitHub (Dec 14, 2023): I truly hope this can be solved soon because I have to run Terminal as an administrator all of the time at work due to what I need to execute with it. So I really could use the ability to re-organize the tabs through drag 'n drop. If there isn't an option to do drag 'n drop for a while, can we get something like a workaround where you can right-click on a tab and tell it to "Move tab to the left", "Move tab to the right", "Move tab to the beginning" or "Move tab to the end"? At least this would allow us to move them around. Might not be efficient, but it would work. Thanks.
Author
Owner

@zadjii-msft commented on GitHub (Dec 15, 2023):

FWIW there are moveTab action in the command palette, under "Move Tab forward" / "backward". Those can be bound to keys in the settings

@zadjii-msft commented on GitHub (Dec 15, 2023): FWIW there are `moveTab` action in the command palette, under "Move Tab forward" / "backward". Those can be bound to keys in the settings
Author
Owner

@rlwakefield commented on GitHub (Dec 15, 2023):

Thanks @zadjii-msft . I completely missed that. Now, if only they would add it to the right-click menu of the tabs. And maybe add another option to "Move Tab to Beginning" and "Move Tab to End". Just my thoughts/2 cents of course.

Thanks!

@rlwakefield commented on GitHub (Dec 15, 2023): Thanks @zadjii-msft . I completely missed that. Now, if only they would add it to the right-click menu of the tabs. And maybe add another option to "Move Tab to Beginning" and "Move Tab to End". Just my thoughts/2 cents of course. Thanks!
Author
Owner

@swinder0161 commented on GitHub (Dec 15, 2023):

You can add shortcut also in json

{
"command":
{
"action": "moveTab",
"direction": "forward"
},
"keys": "shift+right"
},
{
"command":
{
"action": "moveTab",
"direction": "backward"
},
"keys": "shift+left"
}

On Fri, Dec 15, 2023 at 6:32 AM Ryan Wakefield @.***>
wrote:

Thanks @zadjii-msft https://github.com/zadjii-msft . I completely
missed that. Now, if only they would add it to the right-click menu of the
tabs. And maybe add another option to "Move Tab to Beginning" and "Move Tab
to End". Just my thoughts/2 cents of course.

Thanks!

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/terminal/issues/6893#issuecomment-1857106366,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADBBZ7VT3Z5A62Z5KORLXTYJOOTTAVCNFSM4OYG2XN2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBVG4YTANRTGY3A
.
You are receiving this because you commented.Message ID:
@.***>

@swinder0161 commented on GitHub (Dec 15, 2023): You can add shortcut also in json { "command": { "action": "moveTab", "direction": "forward" }, "keys": "shift+right" }, { "command": { "action": "moveTab", "direction": "backward" }, "keys": "shift+left" } On Fri, Dec 15, 2023 at 6:32 AM Ryan Wakefield ***@***.***> wrote: > Thanks @zadjii-msft <https://github.com/zadjii-msft> . I completely > missed that. Now, if only they would add it to the right-click menu of the > tabs. And maybe add another option to "Move Tab to Beginning" and "Move Tab > to End". Just my thoughts/2 cents of course. > > Thanks! > > — > Reply to this email directly, view it on GitHub > <https://github.com/microsoft/terminal/issues/6893#issuecomment-1857106366>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AADBBZ7VT3Z5A62Z5KORLXTYJOOTTAVCNFSM4OYG2XN2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBVG4YTANRTGY3A> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@vibonacci commented on GitHub (Dec 15, 2023):

@swinder0161
That is pretty nifty and works.

However, this is still not the proper solution.

The Windows platform should be adjusted so that something completely arbitrary and logically unrelated, like administrator rights, should not affect an UI feature to perform a drag and drop operation.
VSCode can do it in Electron...

@vibonacci commented on GitHub (Dec 15, 2023): @swinder0161 That is pretty nifty and works. However, this is still not the proper solution. The Windows platform should be adjusted so that something completely arbitrary and logically unrelated, like administrator rights, should not affect an UI feature to perform a drag and drop operation. VSCode can do it in Electron...
Author
Owner

@avraam-inside commented on GitHub (Dec 15, 2023):

Guys, what are you really doing!

It's not IT without dancing with a tambourine! Without inventing bicycles, workarounds and crutches!

@swinder0161 Thanks for the shortcut!

@avraam-inside commented on GitHub (Dec 15, 2023): Guys, what are you really doing! It's not IT without dancing with a tambourine! Without inventing bicycles, workarounds and crutches! @swinder0161 Thanks for the shortcut!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9594