summaryrefslogtreecommitdiff
path: root/src/nautilus-query-editor.c
AgeCommit message (Collapse)Author
2026-07-26general: Use Explicit default flagsKhalid Abu Shawarib
2026-07-26general: Store properties' GParamSpec in an arrayKhalid Abu Shawarib
2026-07-26general: Fix GObject final definitionsKhalid Abu Shawarib
There are many objects declared as final but not defined as final.
2026-04-06search-info-popover: Refine spacing and improve wording clarityparzival
2026-02-28query-editor: Don't initiate search info queries for internal schemesKhalid Abu Shawarib
2026-02-28query-editor: Query for filesystem infoKhalid Abu Shawarib
Reading from NautilusFile might not not give correct results since Its info might not be loaded. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3514
2026-01-14style: Use style classes over object namePeter Eisenmann
This follows what is used in other modern code bits, such as grid and list view styling. It will also slightly help with porting to Blueprint as there is an (unreported) bug of replacing the template class name in other properties with "template".
2025-11-01search-popover: Allow multiple file type filtersKhalid Abu Shawarib
2025-08-07query: Take over FTS and recursive settingPeter Eisenmann
Both, searching content and searching recursively, depend on the location and on a preference. NautilusQuery already handles the search location, so extend setting a new location to also handle these settings. Provide update functions to keep listening to setting changes in query-editor. This prevents changing queries already passed to search providers.
2025-08-07search-directory: Add query location getterPeter Eisenmann
Allows to remove some usages of NautilusQuery.
2025-08-02search: Remove tags in search entryPeter Eisenmann
This fixes issues with search tags on small windows. The highlighted filter button combined with highlighted tags in the search popover are the replacement.
2025-08-02query-editor: Highlight button on active filtersPeter Eisenmann
2025-08-02search-popover: Use tag clouds for FTSPeter Eisenmann
Uses tag cloud instead of toggle buttons. Also adds a button for content-only search, but keep it hidden as the search backend doesn't support this yet. It matches the latest mockup at [1]. [1] https://gitlab.gnome.org/Teams/Design/app-mockups/-/blob/master/files/files-search-filters-aday.png Co-authored-by: Anuraag Reddy Patllollu <anuraagreddy74@gmail.com>
2025-07-11query-editor: Update popover without setting queryPeter Eisenmann
2025-07-11query-editor: Initialize FTS from settingPeter Eisenmann
Popover always updates the setting, use it from there. This is in preparation of removing the query from the search popover
2025-07-11search-popover: Use signal for FTS statePeter Eisenmann
2025-07-11general: Rename and move time type enumPeter Eisenmann
2025-07-11query-editor: Connect to popover signals swappedPeter Eisenmann
I originially did this to work around crashes that I later fixed, but it is nicer anyway, so here it is.
2025-06-21search-editor: Fix query leakKhalid Abu Shawarib
2025-06-16query-editor: Use idle_add_onceKhalid Abu Shawarib
2025-06-16query-editor: Don't emit changed signal if text didn't changeKhalid Abu Shawarib
This avoid throwing away search when copy pasting the same text or when just adding a space to the start or end of the search text.
2025-06-14Rename tracker-related classes to localsearchPeter Eisenmann
2025-01-26general: Add context to translatable stringsKhalid Abu Shawarib
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3734
2025-01-25query-editor: Remove redundant string stripKhalid Abu Shawarib
Already done by nautilus_query_editor_set_query()
2024-11-11query-editor: Add tooltip to buttonKhalid Abu Shawarib
2024-11-03Update nautilus-query-editor.cAleksandr Melman
2024-10-25nautilus-query-editor: Tweak the "Search Locations" button from the search ↵Automeris naranja
info popover Make the button to have a pill shape and align it to the center. Generally status pages (the popover uses an AdwStatusPage) that have buttons have this same design pattern.
2024-08-04query-editor: Popdown popover on button clickCorey Berla
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/3524
2024-08-04query-editor: Bail out on cancelled async callKhalid Abu Shawarib
This call will be cancelled when the editor is disposed. It should not use the editor reference until it verifies that it wasn't cancelled.
2024-08-03query-editor: Display popover information for non-indexed foldersAnuraag Reddy Patllollu
The popover now displays information when a folder is not indexed or contains subfolders that are not indexed.
2024-08-03query-editor: Display popover information for remote and external drivesAnuraag Reddy Patllollu
The popover now displays information when a folder is is a remote or an external drive.
2024-08-03query-editor: Add search information popover to query editorAnuraag Reddy Patllollu
The original design for providing search information used a banner, which does not align with modern conventions. This commit introduces a new popover to display the same information inside an adwaita status page
2024-06-02general: Remove Other LocationsAntónio Fernandes
It's going to be replaced with a new Network view.[0] For now this removes only the direct support in nautilus code proper. The code imported from GtkPlacesView is kept to be recycled for a new purpose. [0] https://gitlab.gnome.org/GNOME/nautilus/-/issues/2785
2024-02-08general: update and add symbolic assetsSam Hewitt
- renamed assets from generic devkit names to nautilus specific names - updated folder-search, external-link and cancel-operation with newer assets - added network-computer symbolic for future use in the sidebar
2024-02-05window-slot: Introduce global search modeAntónio Fernandes
Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/3013
2024-02-05query-editor: Use new iconsAntónio Fernandes
As per design mockups. The search original icon is going to be used for a new button which opens the global search mode, and as a prefix icon is that mode. Also update tooltip accordingly.
2024-02-05window-slot: Always hide search bar when changing locationAntónio Fernandes
We have code which tries not to hide the search entry in case the user opens it and, before inserting any query, decides to switch location. This was introduced by commit 9ab3c5c7d7f7162193559ad643707dc1a2bc69fc According to that commit message, it was restoring an old behavior that was lost during a refactoring. I did not confirm this nor track the original reason for this behavior, but, if I had to guess, I'd say it comes from before "just-type" search was introduced. Otherwise, why go to the trouble of keeping the search entry visible when you can just type anyway? I see no reason to assume the location change means they want to search another location. They may have just recalled the exact path they were looking for, so they lost the reason to search. Anyway, this behavior is not working at all in recent versions. Not sure when it stopped working, but apparently nobody has missed it. Least this dead code interfere with the upcoming global search mode, let's remove it.
2024-02-05query-editor: Create query even if location is NULLAntónio Fernandes
We have been hitting warnings about NULL queries when doing global searches, and this was the cause. There is no good reason not to create a query, even if we are not going to use it. Fix this before we make global search more prominent.
2024-02-05query-editor: Ensure clear button is hidden when emptyAntónio Fernandes
We have an idle callback to deal with search text changes while avoiding performance impact. We also freeze this completely if the text changes are done programatically and not from user typing. But the idle callback is also responsible for hiding the clear icon, which means we don't hide it if the entry is cleared programatically (e.g. when leaving search using the Escape key or the toggle button in the headerbar). Since there is no performance cost to changing this visibility of the child widget, we can just move this code to the synch hanlder, before the change_frozen interrupt.
2024-02-05query-editor: Fix null dereferenceKhalid Abu Shawarib
This conjunction makes no sense and might even lead to NULL pointer dereference. This bug has been introduced just after the GTK4 port, by commit 45c77d24669519bab75f2ae59926fcad0c8a7d53 Just make it a disjunction. This allows the clear button to correctly hide when the user clear the text.
2023-12-01general: Improve tooltips and follow HIG guidelinesAutomeris naranja
Use header capitalization, make tooltips short and change the "Show operations" tooltip from nautilus-progress-indicator so it can be more descriptive. https://developer.gnome.org/hig/patterns/feedback/tooltips.html
2023-08-13query-editor: Make :location write-onlyAntónio Fernandes
This property is meant to be used only as a "socket" for the slot to set the current location, for use in new queries. This is used internally and, as such, it makes no sense to expose a getter. The location being searched should be obtained from the query itself, not the query editor. For that we have a get_query(), and the query parameter in the ::changed signal.
2023-08-13search-directory: Stop getting :base-modelAntónio Fernandes
The only use case for reading it is in order to get the location. This can be obtained from the query instead, which is more convenient to use after the last commit.
2023-08-09general: Consistently use network scheme macroAntónio Fernandes
2023-06-19query-editor: Select All text when using search shortcutabu_shawarib
Change the `focus-search` action behavior to select all text when a search refocusing action occurs so it's easier to type a new query. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2819
2023-06-09query-editor: Don't trigger search once clearedAntónio Fernandes
We trigger search after a short time interval after the user stops typing, as a performance saving measure. To implement that behaviour, we need to ignore text changes that are done programatically and not by the user typing. In that case, we don't setup the timer that triggers the search. But in that case we also don't clear a previously set timer. Although the previous commit has already fixed the visible effects of this bug, the timed callback is still called, which may cause other unknown bugs. So, let's always clear the timer when the search text changes, even if programatically, such as when clearing the text when closing search. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2875
2023-05-20query-editor: Do not artificially delay searchCarlos Garnacho
With the changes done in the previous commits, the Tracker search engine can take quite a pounding without breaking a sweat. Worrying about spamming search engines is no longer a concern with queries done the right way, so we do not need to artificially delay search. The goal is that search feels responsive even to a fast typist. Since this delay also applied to showing the search entry after starting type-to-search, this also fixes the apparent stall when one started typing.
2023-05-09general: Add missing tooltips to some buttonssunflowerskater
Acc. HIG, all controls from headerbars must have a tooltip. https://developer.gnome.org/hig/patterns/feedback/tooltips.html Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2754
2022-12-25general: Stop using gtk_widget_show and gtk_widget_hideCorey Berla
Replace with gtk_widget_set_visible() or gtk_window_present() In some cases we use gtk_widget_show() unnecessarily because widgets are visible by default
2022-12-15query-editor: Add placeholder textsunflowerskater
The search bar from the main window doesn't have a placeholder, which the HIG generally requires. Add the necessary placeholder. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2698