Enhancing the Nautilus search option

In Nautilus if I press CTRL+F inside a folder I get a search box that helps me search in the current directory and sub directories for specific names and types of files, but what if I want to:

  • Find ALL files (including files without extensions)
  • Find a file without an extension (Without the dot symbol or without any other name/extension separator)
  • Find a file with/without a special character
  • Find all files that start/not start with a character
  • Find all files that end/not end with a character
  • Find all files that start/no start with a character but end/not end with a character
  • Find only files/folders
  • Find files with specific text in them
  • Find files with less/more/equal than/to X size
  • Find files modified/created in X date

I ask since the KDE's search has all of this ways of searching for especific types of files and is much better in thism giving a pretty good freedom for when I want to go searching for virtually anything.


Solution 1:

Sounds like a job for gnome-search-tool.

gnome-search-tool example

It can perform partial matches on the file name and search on more options:

  • File content
  • Modification date
  • Size
  • File emptiness
  • Owner/Group
  • Name pattern exclusion
  • Name regular expression match
  • Hidden and backup files

It can also:

  • Follow symbolic links
  • Exclude other filesystems

You can define a a location to search. In my example I have two .gpl files in that directory but only one containing the word Server.

Solution 2:

How to you use wildcards, especially the * (star) in Linux Ubuntu Nautilus GUI File Search?

I also was just struggling with this issue, but I think I found an answer.

Here are the equivalent Windows and Nautilus search patterns:

Windows: diagram*.ppt

Nautilus: diagram ppt

Basically, try using a spacebar character in Nautilus where you would use a * character normally. I think I FINALLY figured this out, after years of trying... sigh.

Solution 3:

When you're performing a normal search with Nautilus, it will search within the current folder and all subfolder for files with the search pattern in their names. You can limit the type of files you want by clicking on the '+' button once the search is started and adding a rule on the file type.

That's pretty much all you can do, I think. For advanced search, advanced users use the command line program find and other users don't have any solutions.

Solution 4:

I am going to address the "first, actual, question". after extensive search and irssi, circa sep 2013, the answer appears to be;

No, Not possible - that the Nautilus ctrl-F search cannot find ALL files (including files without extensions).

Please understand I am truly not seeking to be negative, in fact i believe by actually addressing the problem this may actually get this fixed.

Giving the advice that the user should instead use a different program (gnome-search-tool), or do something else instead of what was wanted (for files with the (a more constrained) search pattern in their names) is ambiguous and ultimately unhelpful.

it is either a simple, no this is not possible. or yes, followed by the method to achieve the aim. further advice, if present, should follow an answer to the actual question.

Solution 5:

I wanted to add, apart from the answers provided and extending on the answer by Octavian, a simple way of enhancing the search option is by activating type-ahead. With the following terminal line we can make the search more intuitive:

gsettings set org.gnome.nautilus.preferences enable-interactive-search false