-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Add the "Move Tab to New Window" item to the context menu of the tabs #15127
Comments
Want to tackle my first issue for this project. I installed all the prerequisites as described in README as far as I know. Had some trouble with Configuration manager when first opening the project in Visual Studio. Cleared everything between For the OpenConsole.sln file. Properties for Cascadia Package have been set in the Debug menu to "Native Only" for "Application process" and "Background task process". x64 Platform has been selected. I tried x86 , makes no difference. |
Oh you can almost certainly ignore the warning that VS shows about the incorrect configurations. I'd revert all your changes to And that should just work. Our sln is a crazy hodgepodge of c++ and C# code and unsurprisingly, VS does not care for that 😅 Lemme know if you run into any other issues |
Reverted all changes to OpenConsole.sln by removing and recloning the project. Restored and updated submodules Ignored warning about incorrect configurations. Build it, had an issue with nuget packages: Solved that by building with Powershell. This installed the packages, but this time build ended with errors. |
Huh. I've literally never seen that before. That'll require some searching. When you built it from the command-line the first time, it worked and you didn't run into that? Utterly bewildering. |
Silly question - does the username covered up with the blue splodge contain any odd characters - like a space? |
Yes It contains a space. Update 1: Update 2 : |
Got it running in VS thanks very much to @ianjoneill ! |
“That'll require some searching.” Can I expect you to do the searching. Or is it more like you expect me to do the searching and try various different things. And I can expect a small hint here and there? PS: I'll get to picking up this issue now I got Debugger working. |
I mean, yea? I was planning on trying to look into that error myself if you couldn't figure it out. Pretty much my biggest priority is helping keep folks unblocked. I'm all for giving hints - heck, I've got an entire project board full of "walkthroughs" I've written for issues: https://aka.ms/terminal-walkthroughs. Speaking of which, I should probably write one for this issue too! |
|
@zadjii-msft Your walkthroughs look really cool, in the sense that you build it like a game!! I love that. Btw, the software not being able to be build when someone has a username that contains a space. This may be a new issue? If so, I could make a new issue for it. |
I started exploring the code base a bit and have some questions: Where are cpp files inside solution explorer, like where is TerminalTab.cpp? |
That looks great! Presumably you figured it out, but the .cpp files are nested under the .h files (usually). Some of them are nested under the .idl's or .xaml's. Honestly, I don't know why VS chooses to do it that way 🤷 I've honestly only ever used the "Go to files" shortcut (which I think is sound to ctrl+shift+t) in VS. Way easier than trying to navigate the project structure. Just type bits of the file name and go. But then again, I'm more of a Sublime / VsCode user than a VS one - I just use big VS for building and debugging 😆 |
!! Making sure you notice it needs a different Glyph, currently uses the Duplicate glyph. |
Ah yea - those are probably a little out of date. But yea I'd honestly just use one of the following two icons from the built-in Segoe Fluent Icons
|
I Noticed you hadn't commented for a couple days. When are you available to respond to questions? Do you have certain days you are working on this project? |
Did the Pull Request. By contributing to this Open Source Project. I intend to become a better Engineer. Would appreciate any tips/advice you can give. Let me know if something need to be changed. |
I really appreciate the time and effort you took to write the Walkthrough for this. But that made it way too easy for me. In the future I would very much like less hand holding. |
Actually, why is, the duplicate not working like that? Not sure about why duplicating would be useful. Don't think I often do that for a terminal window. PS: Have been getting a bit more into windows terminal lately. Check out this pimp: |
Hadn't figured it out yet. Thanks! I am familiar with the ctrl+shift+t shortcut in VS. So you have 2 windows open VSCode program and one VS? And then VSCode on one screen and VS on the other or? |
I am worried that next time I take on an issue and I ask a question, you'll provide me the filenames and specific functions again where changes need to be made. And feel like your response doesn't address my concern. A big part of me helping out in this Open Source project is wanting to become a better Engineer. Getting pointed to the filenames and particularly the specific functions in the filename conflicts with that. Basically the give a man a fish idea: “If you give a man a fish, you feed him for a day. If you teach a man to fish, you feed him for a lifetime.” A good Engineer is able to think for themselves, find the specific files and specific parts e.g. functions themselves. So I would like to know if it's also possible that you give me more vague hints? E.g. only point to the filename but not the functions. What kind of hints would you give to a junior / entry level engineer at Microsoft? |
Ah sorry, let me be more specific: IMO, just getting the project to build and run can often be its own problem. (as you so observed!) If you want more challenging issues, I'd be all for helping point you at some of those. I've found that for myself, starting with an easy win always gets me into a better headspace for harder problems later in the day / week. These issues: https://github.com/orgs/microsoft/projects/686/views/4 are some that I think are probably a comparable difficulty, that I've never gotten around to writing walkthroughs for yet. Basically as you go up in difficulty, the hints I can give are going to get more abstract. I can always give less hints if you'd like 😛
oof that's a good question - when's the last time we even had one of those 😅 Honestly I might just point them at a similar PR or two in the past and be like "alright, this issue is a lot like #foo, and maybe a little like #bar, so do it just like those two PRs". |
#14909 might be a good example - something similar to what you just did, so you're already familiar with the problem space. Not a ton of hints in that one either... (I can always look for others if that doesn't seem interesting 😉 ) |
I added you on LinkedIn. You haven't added me back, why is that? |
@zadjii-msft I like this one #6366 |
Honestly, I can't say I've written any serious production quality C#. A couple small projects here and there. An early prototype of the Terminal was C#. But noting more than a couple files. That being said, I used basically the same workflow for both C++ and my Python side projects. That way I don't really have to worry about how the project is laid out on the filesystem - as long as I know where I'm going, then it's easy enough to just pop open the file by name.
But seriously though - I've been working through re-writes of the Console codebase for 8 years now. I helped design the architecture of the Terminal codebase itself. That's been my 9-5 for years, at this point, it's just instinct.
No, but it really should. We used to have a giant wall in the office with every library we owned, the paths to the files, and how they all connected. Not sure if that survived in Redmond after all the office moves though. There's surely a photo floating around twitter somewhere, but I don't know how to find it. Best I could find was these diagrams, which are admittedly from 2019, before the code was even OSS: |
Maybe you should put this somewhere in the general docs for this project. It would probably also be valuable to others. So the commandline clients are connected to the windows terminal via a ConPTY Process which is Conhost.exe do I understand that correctly? |
Yep, that needs to be probably significantly updated. Probably will soon, likely as a part of #15065 & #6999.
Yep! That lets conpty emulate the Win32 Console API, while the Terminal only really needs to "speak" in ANSI escape "VT" sequences, which is more like every other terminal that exists. |
) ## Summary of the Pull Request Add the "Move Tab to New Window" item to the context menu of the tabs ## References and Relevant Issues #15127 ## Detailed Description of the Pull Request / Additional comments Add the "Move Tab to New Window" item to the context menu of the tabs. ![Detailed_description_of_commit_PR1](https://github.com/microsoft/terminal/assets/15957528/915ac07b-1fdd-456b-b180-2645dbc29e48) ## Validation Steps Performed Checked Code Style https://github.com/microsoft/terminal/blob/main/doc/STYLE.md ## PR Checklist - [ V] Closes #15127 - [?] Tests added/passed - [ X] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ V] Schema updated (if necessary) --------- Co-authored-by: Mike Griese <migrie@microsoft.com>
Awesome. What is the protocol for this Open Source Project in terms of releasing the fixes? |
We usually release new Preview builds like, once every 3-6 months. Exact timing is usually pretty fungible, based on how the actual release cycle is going, or if there are major events (see: Build). I don't think we've really started discussion of when 1.19 will be yet.
That's uh.... c o m p l i c a t e d. Technically, the version of the Terminal that actually ships with Windows 11 is like, Terminal 1.12. Yea. That old. There's internal rEaSoNs why that is, but essentially, people should immediately get the newest version of Terminal Stable (as of last week, 1.17), as soon as they log in and the Store gets them an update. So basically, whenever Terminal 1.20 Preview comes out, 1.19 will get moved to the Stable channel, which is when this feature will be "pre-installed" on Windows 11. |
I just checked version 1.17.11461.0 into Windows for the insider program participants! 😉 |
like Mozilla Firefox
in the context of this task?
Screenshots of Windows Terminal Preview 1.17.1023 and Mozilla Firefox 111.0.1 (64-bit), Microsoft Windows 10.0.19045.2788.
Originally posted by @Korb in #1256 (comment)
The text was updated successfully, but these errors were encountered: