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

Can't reorder tabs when running as Administrator #6893

Closed
ghost opened this issue Jul 13, 2020 · 14 comments
Closed

Can't reorder tabs when running as Administrator #6893

ghost opened this issue Jul 13, 2020 · 14 comments
Labels
Issue-Question For questions or discussion 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 Product-Terminal The new Windows Terminal. Resolution-Answered Related to questions that have been answered

Comments

@ghost
Copy link

ghost commented 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.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 13, 2020
@zadjii-msft
Copy link
Member

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.

@nclemons78
Copy link

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.

@yaira2
Copy link

yaira2 commented Jan 6, 2023

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

@swinder0161
Copy link

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

@zadjii-msft
Copy link
Member

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" }},

@avraam-inside
Copy link

avraam-inside commented 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.

@zadjii-msft
Copy link
Member

@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: microsoft/WindowsAppSDK#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.

@avraam-inside
Copy link

@zadjii-msft thanks for fast answer!

Done: microsoft/WindowsAppSDK#373

@rlwakefield
Copy link

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.

@zadjii-msft
Copy link
Member

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

@rlwakefield
Copy link

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!

@swinder0161
Copy link

swinder0161 commented Dec 15, 2023 via email

@vibonacci
Copy link

@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...

@avraam-inside
Copy link

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question For questions or discussion 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 Product-Terminal The new Windows Terminal. Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

7 participants