-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Feature Request: Task Bar jumplist should show items from profile #576
Comments
"DOS but not DOS" .... 🤔 |
I just grabbed that screen shot from the blog post by @shanselman. His icons look better than mine! |
@RobCannon The icon on the menu needs to be 32x32. https://iconverticons.com/online/ Convert to 32x32 icon/png This is the small icon I made: icons.zip |
This is a really good idea |
@fcharlie How can I add icons to the shell list just like that in your picture? |
@fcharlie Perfect! |
This context menu is called the Jumplist, for anyone planning to add this functionality in a PR |
If you guys wouldn't mind, I'd love to take a stab at this! |
@berwyn, presuming that the scope of what you're attempting to take on is:
Then I am OK with you proceeding on this and I will assign you. If things start to get outside the proposal or off the rails, please consult with us here before going further. Disclaimer: You're going to be among the first people we assign to do a feature that aren't on our direct team. It might be rough and neither we nor you know exactly what to expect. Bear with us. We're learning how to be open as much as you're learning how to work in our code. A few notes to take with you as you go:
Fair? |
I am 100% onboard with being a guinea pig for external contributions! And, indeed, I was planning to only introduce the profile items in the flyout to the jumplist. |
@HBelusca I called it that (in my own profile) because cmd.exe isn't DOS, but it is. |
@berwyn to add: I'd probably do the jumplist in the |
@zadjii-msft I may open a draft PR today for this, but I actually met with great success creating the jumplist and its entries, introducing a method On a straight UWP, it seems like the I've also never touched UWP with C++, so it's a learning process in that regard, do I need to declare lifecycle functions in the idl? Because that could also be the problem here (and that only just ocurred to me as I'm tying this). |
Oh yikes, that might be a harder problem that we thought then. As you've discovered, we're not really a real UWP, we're a Win32 application. Our App.cpp/h/idl/xaml is not a real UWP "App" in this sense (it's actually just a trick to get XAML to work right for XAML Islands applications. I'm fairly certain (@DHowett-MSFT call me out if I'm wrong) even if you put Onlaunched in the idl, it wouldn't be called, because the application is getting activated as a traditional Win32 application. So, how could we still make this work? I don't really know how jumplists work, but if they let you specify commandline args, then maybe you could pass a @miniksa any other ideas? I feel like there's gotta be an easier solution out there somewhere. |
I had that thought was well, and it's the direction I started sniffing in last night but didn't get much of a chance to dig into it. Barring any other ideas that crop up, is there a good reference I could look at for handling commandline args in a Microsoft-approved manner? Maybe something in ConHost that could (I assume |
IIRC there was talk of adding |
For the arguments part, I agree. Go ahead and abstract/derive/baseclass/reuse Probably into the Also, I'm doing some research into how jump lists work now to try to give you better advice. By what mechanism did you register the jump list? Is there some UWP/WinRT API to do it? |
I leveraged the WinRT helpers to create the items, since that's on the list of APIs exposed to desktop bridge apps. I haven't had a chance to play with passing a full executable with args in for the I'll pop open a draft PR once I get home and have my hands on the code, should make it easier to discuss/iterate on the code. |
OK, reading that documentation, I think that figuring out how to catch the arguments coming in on the initial wmain and probably figuring out how to single-instance or communicate with the existing running process are going to be the challenges here. I was hoping Jump List registration also included an eventing callback that would be fired in the same process it was registered from, but that seems to be not true. It just seems to be a registration that tells the shell to CreateProcess/ShellExecute something and maybe with arguments. |
Alright, I've opened a draft (#689) to track progress on this. So far, it's just my first attempt at getting the items into the jumplist. I'll probably take some time this weekend to have a stab at parsing the commandline and launching tabs |
I haven't seen it mentioned specifically in this thread; please keep in mind this feature, of pinning script-files to jump list: |
I consider this a very necessary feature. Many times I don't want to launch the default when I launch terminal so it just wastes time to have to launch it to open a tab I don't need and then launch another tab. ConEmu has jumplist functionality and I use it constantly. |
Is any progress being made on this? If no maybe help is needed?
|
Not yet. I believe it's next up on @leonMSFT's todo list - hence why it's in the 1.4 milestone. |
If you need help happy to take a stab. |
This commit introduces Jumplist customization and an item for each profile to the Jumplist. Selecting an entry in the jumplist will pretty much just execute `wt.exe -p "{profile guid}"`, and so a new Terminal will open with the selected profile. Closes #576
🎉This issue was addressed in #7515, which has now been successfully released as Handy links: |
The Task Bar context menu
should show the items from the configured profiles that populate the new shell menu
The text was updated successfully, but these errors were encountered: