-
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
Selected tab title not used for Export Text
file name
#13948
Comments
It's much worse than that: it actually only exports the active tab. It can't export a non-active tab. How? It takes |
So this and #13942 are somewhat related. Of the tab related context menu items "Duplicate Tab", "Split Tab", "Export Text" and "Find", the only one that does what you expect on an unfocused tab is "Split Tab". The callbacks are all set up in terminal/src/cascadia/TerminalApp/TabManagement.cpp Lines 193 to 233 in 95a9d8c
They delegate to:
I guess the quick win would be to replicate what |
Hmm doesn't look like it's that straight forward - |
Generally speaking, I'd rather us fix the event plumbing so that things that come out of (1) the pane, (2) the tab and (3) the terminal control are tagged up appropriately so we know their origination chain. Is that something doable on a reasonable time horizon? |
maybe |
Changing |
I'd come to the same conclusions. There's no point 3 people working on it though, so I'll leave it to you 🙂 |
…#14673) ## Summary of the Pull Request Updates the tab event handling so that the "Export Text" and "Find" tab context menu items work when a tab isn't focused. ## PR Checklist * [x] Closes #13948 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Validation Steps Performed Manually tested.
🎉This issue was addressed in #14673, which has now been successfully released as Handy links: |
Windows Terminal version
main 1ef4a42
Windows build number
10.0.19044.0
Other Software
No response
Steps to reproduce
Use the tab's active title for "Export Text"
patch applied, commit 2c341c8Foo
was the active tab andBar
was used for export:Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: