Add search support for process list in binding page#116
Open
Kill1ngPig wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds search/filtering to the left-side “现有窗口进程” list on the binding page by introducing a cached full dataset and re-rendering the tree based on the current search keyword.
Changes:
- Added a
wx.SearchCtrlabove the left process/window list and wired it to filter dynamically. - Introduced
left_all_windowscache and centralized left-list rendering throughApplyLeftFilter()+InsertTreeList(). - Updated add/remove binding flows to keep the left cache in sync and re-apply the current filter.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为窗口绑定页面左侧“现有窗口进程”列表增加搜索功能,支持按进程名或窗口标题进行动态过滤,清空搜索后可恢复完整列表。
为保证搜索与原有添加/删除绑定、刷新进程等逻辑的一致性,引入了左侧完整窗口数据缓存
left_all_windows。搜索时基于缓存数据进行过滤,并统一通过InsertTreeList()重新渲染列表,而不直接操作树控件。这样可以确保搜索始终基于完整数据,同时避免在多种操作场景下出现数据不一致的问题。部分实现了issue #113 。本次修改仅涉及搜索功能,不包含默认展开/收起行为的调整。