Skip to content

feat: file search for Linux/GNOME#884

Merged
ayangweb merged 2 commits intomainfrom
feat/gnome_fs_search_tracker
Aug 25, 2025
Merged

feat: file search for Linux/GNOME#884
ayangweb merged 2 commits intomainfrom
feat/gnome_fs_search_tracker

Conversation

@SteveLauC
Copy link
Copy Markdown
Member

@SteveLauC SteveLauC commented Aug 22, 2025

This commit implements the file search extension for Linux with the
GNOME desktop environment by employing the engine that powers GNOME's
desktop search - Tracker.

It also fixes an edge case bug that the search and exclude path
configuration entries will not work. For example, say I set the search path
to ["~/Documents"], and I have a file named "Documents_foobarbuzz" under
my home directory, this file is not in the specified search path but
Coco would return it because we verified this by checking string prefix.
Claude Code found this when I asked it to write unit tests. Thank both
tests and Claude Code.

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@SteveLauC SteveLauC force-pushed the feat/gnome_fs_search_tracker branch from d5e2ffc to 18950c3 Compare August 22, 2025 10:32
This commit implements the file search extension for Linux with the
GNOME desktop environment by employing the engine that powers GNOME's
desktop search - Tracker.

It also fixes an edge case bug that the search and exclude path
configuration entries will not work.  For example, say I set the search path
to ["~/Dcouments"], and I have a file named "Documents_foobarbuzz" under
my home directory, this file is not in the specified search path but
Coco would return it because we verified this by checking string prefix.
Claude Code found this when I asked it to write unit tests.  Thank both
tests and Claude Code.
@SteveLauC SteveLauC force-pushed the feat/gnome_fs_search_tracker branch from 9616e4a to 08fff67 Compare August 25, 2025 03:06
@SteveLauC SteveLauC changed the title file search for Linux/GNOME de feat: file search for Linux/GNOME Aug 25, 2025
@SteveLauC SteveLauC marked this pull request as ready for review August 25, 2025 03:09
}

impl Query {
fn new(query_string: &str, config: &FileSearchConfig) -> Result<Self, String> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check the feature availability before initializing the actual service? if it is not gnome or other requirements
not ready, we should skip it.

Copy link
Copy Markdown
Member

@medcl medcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, as we only support Ubuntu platform only right now

@ayangweb ayangweb merged commit de3c78a into main Aug 25, 2025
4 checks passed
@ayangweb ayangweb deleted the feat/gnome_fs_search_tracker branch August 25, 2025 11:29
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

Successfully merging this pull request may close these issues.

3 participants