Skip to content
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

The filter of the popover needs to add a filter function #2831

Open
liang0-0 opened this issue Sep 27, 2024 · 3 comments
Open

The filter of the popover needs to add a filter function #2831

liang0-0 opened this issue Sep 27, 2024 · 3 comments

Comments

@liang0-0
Copy link

image

The filter of the popover needs to add a filter function
Because some project that considers i18n, and it can also be searched by initials,
I can't find where I can customize the filter function in the current source code
You can add it to editor config json:

{
 i18n: {
    filter: (text) => myFilterFunction(text)
 }
}

3ks

@neSpecc
Copy link
Member

neSpecc commented Oct 28, 2024

Please, clarify the use case and the problem

@liang0-0
Copy link
Author

liang0-0 commented Oct 30, 2024

The list in the pop-up box not only displays English, but also Chinese. If it is Chinese, it needs to support pinyin search, and pinyin search needs to provide a filtering method. Currently, only English list items can be displayed. If Chinese list items appear, normal filtering cannot be performed. @neSpecc

@liang0-0
Copy link
Author

if is use js lib of js-pinyin, the search method will show like this:
rwlb => 任务列表
rw => 任务列表
renwuliebiao => 任务列表
tasklist => 任务列表

the right side 任务列表 is same as English TaskList, but the users can search with diff input , hope u can understand it @neSpecc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants