summaryrefslogtreecommitdiff
path: root/src/nautilus-query.h
Commit message (Collapse)AuthorAgeFilesLines
* nautilus-search-engine: search by creation timeNishit Patel2021-11-271-1/+2
| | | | | | | this will let user search for the files using the crtime (creation time) of the files Closes #1761
* query: Port MIME type filter to GPtrArrayAntónio Fernandes2018-12-121-2/+2
| | | | | | | | | | We have been using doubly-linked lists to store MIME type names strings. But this is not a great container for strings, and we are copying the lists multiple times. So, use GPtrArray instead. This avoids copies thanks to reference counting, and enables autocleanup thanks to built-in data freeing.
* query: Drop unused ::add_mime_type() APIAntónio Fernandes2018-12-121-1/+0
| | | | | | | Unused since cb7c77a8acf857c3bf16e73bc7beba4b9d09faac So, let's limit the MIME type filter API to a setter and a getters. This will allow porting to an immutable, refcounted GPtrArray next commit.
* query: add local recursive flag for local only searchesMarco Trevisan (Treviño)2018-07-261-0/+1
| | | | This will allow to have a more fine grained experience
* query: Add flags for recursive search typesMarco Trevisan (Treviño)2018-07-261-5/+10
| | | | | | | | | | | | | Use a list of cases to define when the recursive search should be done, instead of a simple true/false boolean. A part from the self-explanatory cases `ALWAYS` and `NEVER`, the `IF_INDEXED` option permits to any search engine that uses an indexed-search to return results from subfolders of the search location. One case we want to address, is the shell-search provider, that should not perform recursive searches, but it could return values from subfolders of the user home if the search is executed by search engines like tracker.
* general: Remove include guards in favor of pragma onceAlexandru Fazakas2018-03-191-5/+2
| | | | | | | | | | | | | | | | | | The traditional include guards are not as easy to handle and require extra thought into the names. Pragma once is an easier, more contributor friendly approach. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294 general: Remove include guards in favor of pragma once The traditional include guards are not as easy to handle and require extra thought into the names. Pragma once is an easier, more contributor friendly approach. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294
* query: Remove unused propertyAntónio Fernandes2018-03-131-4/+0
| | | | | | | | | search_starred is always FALSE, because we don't provide UI to filter search for starred files. Remove it and any related code. Doing so, we are dropping the only uses of hardcoded tag ids outside src/nautilus-tag-manager.c, which makes it possible to set the tag id as a private constant next commit.
* general: Rename from 'favorite' to 'starred'Carlos Soriano2018-02-131-3/+3
| | | | | | | | It was a mix of both terms, given that tracker uses 'favorite' but we use 'starred' in the UI. Since the part that interact with tracker is minimal, is better to be consistent with the UI. This renames 'favorite' to 'starred' except the tracker queries.
* Add favorite filesAlexandru Pandelea2017-11-051-0/+4
| | | | | | | Add option to make files Favorite, by either toggling a star in the list view, or from the context menu. https://bugzilla.gnome.org/show_bug.cgi?id=786039
* general: merge libnautilus-private to srcwip/csoriano/private-to-srcCarlos Soriano2016-04-251-0/+86
And fix make distcheck. Although libnautilus-private seem self contained, it was actually depending on the files on src/ for dnd. Not only that, but files in libnautilus-private also were depending on dnd files, which you can guess it's wrong. Before the desktop split, this was working because the files were distributed, but now was a problem since we reestructured the code, and now nautilus being a library make distcheck stop working. First solution was try to fix this inter dependency of files, but at some point I realized that there was no real point on splitting some of those files, because for example, is perfectly fine for dnd to need to access the window functions, and it's perfectly fine for the widgets in the private library to need to access to all dnd functions. So seems to me the private library of nautilus is somehow an artificial split, which provides more problems than solutions. We needed libnautilus-private to have a private library that we could isolate from extensions, but I don't think it worth given the problems it provides, and also, this not so good logical split. Right now, since with the desktop split we created a libnautilus to be used by the desktop part of nautilus, extensions have access to all the API of nautilus. We will think in future how this can be handled if we want. So for now, merge the libnautilus-private into src, and let's rethink a better logic to split the code and the private parts of nautilus than what we had. Thanks a lot to Rafael Fonseca for helping in get this done. https://bugzilla.gnome.org/show_bug.cgi?id=765543