Search - add search box control and implement search experience#3590
Conversation
…n-Add-SearchBoxControl-and-Search-Experience
There was a problem hiding this comment.
I've only taken a cursory glance at a couple files so far, but I'm just gonna go ahead and pre-emptively block this PR until the spec (#3299) is merged
I am updating the spec today.
zadjii-msft
left a comment
There was a problem hiding this comment.
Fundamentally, this works so that's good. But there's definitely a few problems that need resolving before this can get merged. For me, the two remaining blocking issues are:
- the placeholder text color is wrong in dark mode
RenderData::GetTextBufferEndPositionshould not beGetCursorPosition
The other things I'm concerned about, but not blocking over:
- "Find..." needs to be localizable
Searchevent should have a delegate with more args- Escape should be handled in the control too, as opposed to bubbling
- The whole
_goForward=!_goForward;_Search();_goForward=!_goForwardthing is weird
|
There are still some outstanding comments. |
Unblocking ones are moved to #3942 |
DHowett-MSFT
left a comment
There was a problem hiding this comment.
I'm comfortable with this as long as we follow up on the followup issues.
zadjii-msft
left a comment
There was a problem hiding this comment.
Thanks for cleaning those blocking things up! We can fix the rest in post 😝
|
(I'm merging this since there's a hyper-quorum on it) |
|
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Thanks for merging ! I am working on the follow-ups these days. |
|
🎉 Handy links: |
|
Yeees! |
This is the PR for feature Search: #605
This PR includes the newly introduced SearchBoxControl in TermControl dir, which is the search bar for the search experience. And the codes that enable Search in Windows Terminal.
The PR that migrates the Conhost search module: #3279
Spec (still actively updating): #3299
PR Checklist
These functionalities are included in the search experience.
When the searchbox is open, the user could still interact with the terminal by clicking the terminal input area.
While I already have the search functionalities, currently there are still some known to-do works and I will keep updating my PR:
1) Theme adaptation. The search box background and font color
should change according to the theme,
2) Add background. Currently the elements in search box are all
transparent. However, we need a background.
3) Move button should be highlighted once clicked.
To test: