[gnome-builder] plugins/file-search: remove underline highlight from search



commit 150ef861408ba614e2356f15c62b94c2920a0250
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jul 19 14:27:11 2022 -0700

    plugins/file-search: remove underline highlight from search
    
    If we do highlight, we want to do it later in the process as we do client
    side filtering now after the initial result set is returned.

 src/plugins/file-search/gbp-file-search-index.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/file-search/gbp-file-search-index.c b/src/plugins/file-search/gbp-file-search-index.c
index 569e5cd5c..9de23d563 100644
--- a/src/plugins/file-search/gbp-file-search-index.c
+++ b/src/plugins/file-search/gbp-file-search-index.c
@@ -381,14 +381,9 @@ gbp_file_search_index_populate (GbpFileSearchIndex *self,
       if (ide_search_reducer_accepts (&reducer, match->score))
         {
           g_autoptr(GbpFileSearchResult) result = NULL;
-          g_autofree gchar *escaped = NULL;
-          g_autofree gchar *markup = NULL;
-          const gchar *filename = match->key;
-          g_autofree gchar *content_type = NULL;
+          g_autofree char *content_type = NULL;
           g_autoptr(GIcon) themed_icon = NULL;
-
-          escaped = g_markup_escape_text (match->key, -1);
-          markup = ide_fuzzy_highlight (escaped, delimited->str, FALSE);
+          const char *filename = match->key;
 
           /*
            * Try to get a more appropriate icon, but by filename only.
@@ -400,7 +395,7 @@ gbp_file_search_index_populate (GbpFileSearchIndex *self,
           result = g_object_new (GBP_TYPE_FILE_SEARCH_RESULT,
                                  "context", context,
                                  "score", match->score,
-                                 "title", markup,
+                                 "title", filename,
                                  "path", filename,
                                  NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]