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

[feature] Customize filtering #37

Open
tchock opened this issue Oct 20, 2023 · 0 comments
Open

[feature] Customize filtering #37

tchock opened this issue Oct 20, 2023 · 0 comments

Comments

@tchock
Copy link

tchock commented Oct 20, 2023

Currently the filtering of the search results with filterItems() are quite plain (it just filters with .includes() of the items array).

Adding a custom filtering function to filterItems() would be really nice, it could make it possible to do more complex filtering without the need to copy paste and adjust the filterItems function to your own codebase.

Background:
I am building a way to execute commands, like a function, but through the command palette. The function arguments are prompted to the user one by one, with options being displayed in the list as some kind of auto correction.
I want to add a way to select multiple options with a glob pattern and it would be nice to already preview all the matching options.

I don't want to reproduce the nested filtering logic that already is included in filterItems, so a custom filtering function would be quite handy.

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

1 participant