-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Command palette search results should bold the matching text #6646
Comments
If we're using TextBlocks we can just fill them with |
Yes, that's easy enough, but then we need to hook up a lot more XAML - the Palette knows which characters need to be highlighted, so it would need to set that on each of the commands in the match list, then each of those guys would need to return a It's not impossible, but it's a lot more XAML binding than anything I've done |
Mind if I bump this one into 2.0? If you don't get to it, I'd like to. 😄 |
Sure thing, it's done |
Thanks! |
@DHowett, @zadjii-msft - so this was planned to be a nice warmup exercise for Saturday morning. This was a bad decision 😄.. aka how to ruin a half of your weekend..
On a positive side, it work.. on a negative I need to do a lot of cleanups before this worth a PR |
Hey! I worked on this for a bit too, actually, during a hackathon! I ended up binding the content of a Border to a property that produces a TextBlock itself with its own inline runs constructed at runtime. I’ve been meaning to put it up for review, but I can hold off so we don’t have conflicting changes. Thanks for working on this! |
@DHowett - I kinda enjoyed 😄 . In any case please let me know if you believe it is something I should continue to productize - since if you have a working solution than probably we can skip mine. BTW, I am not complaining and not regretting anything, but consider removing "help wanted" - I've seen some additional items, that were marked as "help wanted" but were at different stages of implementation. |
That’s a very good call (about not keeping the help tag on things we start working on). I expect your solution is better than mine—after all, mine was little more than a hack—so I’d love to see you finish it. A label that can highlight specific ranges is a very useful general-purpose UserControl. |
@DHowett - from what I've learnt observing this community is that your "hacks" are much better than the best contribution I can do! 😄 In any case will continue to productize it during this week (it is in a bad shape, as I didn't work with neither C++, nor XAML in the last 8 years). |
@Don-Vito I love it! Looking forward to the PR |
🎉This issue was addressed in #7977, which has now been successfully released as Handy links: |
Omitted from initial implementation in #6635.
I'm really unsure if this is possible in XAML, but hey, I think it would be important.
The text was updated successfully, but these errors were encountered: