summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-search-engine.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-09-21 19:09:14 +0000
committerGitHub <[email protected]>2025-09-21 19:09:14 +0000
commitf3998312f42dbd8b76eba71b976015b0813769f7 (patch)
tree41b4fd62889a774b2d1e4d19e2a86c3acb14ab07 /libcaja-private/caja-search-engine.c
parentf093cfa7e4cbb27280576d39d63e5000df9f0d7c (diff)
downloadcaja-f3998312f42dbd8b76eba71b976015b0813769f7.tar.bz2
caja-f3998312f42dbd8b76eba71b976015b0813769f7.tar.xz
File search improvements (#1851)
* search: Respect hidden files setting when searching When starting a search, check the current window's hidden files mode and apply the same setting to search results. This ensures search results match the visibility of files in the current directory view. * search: Add support for globs Add globbing when searching for files. Caja will autodetect if the query contains a glob and change its search to use that instead of substrings. Example: - "*.txt" finds all text files - "photo-?.jpg" finds numbered photo files - "data[0-9]*.csv" finds numbered data files * search: Add location tooltips for search results Display file location in tooltips when hovering over search results in both icon and list views. This can help users tell where files are located since search happens across subdirectories.
Diffstat (limited to 'libcaja-private/caja-search-engine.c')
-rw-r--r--libcaja-private/caja-search-engine.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcaja-private/caja-search-engine.c b/libcaja-private/caja-search-engine.c
index d8d9d9a8..9dd6ab2e 100644
--- a/libcaja-private/caja-search-engine.c
+++ b/libcaja-private/caja-search-engine.c
@@ -125,6 +125,16 @@ caja_search_engine_set_query (CajaSearchEngine *engine, CajaQuery *query)
}
void
+caja_search_engine_set_show_hidden_files (CajaSearchEngine *engine, gboolean show_hidden_files)
+{
+ g_return_if_fail (CAJA_IS_SEARCH_ENGINE (engine));
+
+ if (CAJA_SEARCH_ENGINE_GET_CLASS (engine)->set_show_hidden_files != NULL) {
+ CAJA_SEARCH_ENGINE_GET_CLASS (engine)->set_show_hidden_files (engine, show_hidden_files);
+ }
+}
+
+void
caja_search_engine_start (CajaSearchEngine *engine)
{
g_return_if_fail (CAJA_IS_SEARCH_ENGINE (engine));