search: Add included and excluded history navigation support for project search (#15082)

Currently, had done the function for support included and excluded
history navigate, but the code is more duplicate, I will dive into find
better method to decrease the duplicate code.

Release Notes:

- N/A

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
CharlesChen0823 2024-09-05 17:53:23 +08:00 committed by GitHub
parent 497356b2ba
commit 182f0f2ac8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 168 additions and 45 deletions

View file

@ -25,6 +25,13 @@ pub enum SearchResult {
LimitReached,
}
#[derive(Clone, Copy, PartialEq)]
pub enum SearchInputKind {
Query,
Include,
Exclude,
}
#[derive(Clone, Debug)]
pub struct SearchInputs {
query: Arc<str>,