Hey there! I want to discuss a proposal for adding a new feature to toggle the recursive search option.
The problem:
The search function is very useful for locating files inside the current directory. However, in very populated directories (especially while browsing large projects that contain folders like node_modules
), the search becomes unusable because it returns too many useless results.
The current solution:
We already have a solution for this problem: the option to disable the recursive search, which works well. However, this creates another difficulty: sometimes you do want to use the recursive search.
The side effect:
We lose the ability to perform recursive searches. This isn’t unexpected, as it’s exactly what the setting indicates. However, having to access the preferences to change it for a single search and then disabling it afterwards is overkill and harms the experience of using Nautilus.
The proposal:
Initially, I have two ideas:
- A shortcut:
- You can toggle this setting quicker by just pressing a key combination, even while in search view.
- A toggle button could be helpful, but I know GNOME tends to have a minimalist approach, so maybe just adding the shortcut to the “shortcuts” panel is already good enough.
- A friendly message:
- The message "Searching only in this folder"¹ always appears. It could have a clickable action like “Searching only in this folder. Do you want to expand your search?” or something similar, which when clicked, temporarily enables the recursive search until you exit the search view.
The first approach doesn’t require UI changes (if implementing only the shortcut), no new settings, and will possibly not impact QA at any level, as it is just toggling some existing option faster. If an icon is considered (which I don’t think is needed to be honest), then the design will need to be discussed, as I have no suggestion in that regard.
The second approach might be more user-friendly but also more confusing in some cases, so tests and further discussions would be necessary.
This is my first post here, by the way.
Thank you for your attention!
¹ I don’t know if that’s the message in English; I’m sorry! But it’s the blue bar that appears when you search for something while having recursive search disabled.