I have answered myself a few times here on how to search files with Pantheon Files (here and here) but I now realize that the drop-down list of search results has no more than ten items.

enter image description here

At the end there are three points that suggest more results are to be found but clicking that shows nothing.

enter image description here

1 Answer 1


Actually this limit of 10 is hard-coded in the software code of pantheon-files (libwidgets/View/SearchResults.vala, lines 59-61)

    const int MAX_RESULTS = 10;
    const int MAX_DEPTH = 5;
    const int DELAY_ADDING_RESULTS = 150;

You can even increase this number in order to display more results, but nevertheless the number of results displayed stays limited. You can change the number 10 after MAX_RESULTS = to the value wanted in the file and rebuild the package (debuild -us -uc).

So you still might want to file a feature request to implement a way of showing all results when you click on the "…", however.

  • 1
    There is a branch in the pipeline that increases the number of results shown and limits each category of results separately so that a lot of hits in one category does not hide hits in another category. Dec 6, 2016 at 23:18
  • You can even increase this number in order to display more results : can you give an example on how exactly to increase the number of results? (let's say 20, 25, 30...).
    – user170
    Dec 7, 2016 at 15:31
  • nevertheless the number of results displayed stays limited : that shouldn't be a problem, as the number of files on a computer is also limited :). But 10 is more "limited" than 30 or 40
    – user170
    Dec 7, 2016 at 15:32
  • 1
    @cipricus Post edited, basically you just change the number 10 to the number you want (I tested with 16 and 24: if you put more than 16, there might not be enough place to display the results, though).
    – lemonslice
    Dec 7, 2016 at 18:20
  • 2
    @cipricus: I think lemonslice is talking about getting the source code, editing it, recompiling and installing the custom version. This is not very easy unless you are familiar with such things. There isnt an option in the program as supplied. If the branch I mentioned is accepted into Elementary then it will eventually be released as an update. Dec 8, 2016 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.