2

What is the way to increase the number of files displayed if searching in making usage of the super key?

How to reproduce?

  1. press the super key

  2. type a search string

    'Files' icon is displayed on the left. On the right, a list of files or directories. If I count correctly '5' items are displayed.

What is the way to increase the '5' items displayed?

1
  • This is probably hard coded, so one would need to edit source code somewhere.
    – vanadium
    Jan 15, 2020 at 14:17

1 Answer 1

1

Workaround

it is possible to increase the number globally..
Meaning for all the search results. Not individually for Files app.

You may create a Gnome-Shell Extension on your own with below content in the extension.js file.

function init() {}

function enable() { imports.ui.search.MAX_LIST_SEARCH_RESULTS_ROWS=10; }

function disable() { imports.ui.search.MAX_LIST_SEARCH_RESULTS_ROWS=5; }

enter image description here

enter image description here

5
  • I am impressed by the effort you made to solve this question! I will review the proposed solution asap. Thanks. Jan 16, 2020 at 9:19
  • I have run gssr.sh (local). ALT+F2 r. Sorry Still 5 items displayed. :-( Gnome is 3.28.2. In the code I have found "3.28". Is 3.28.2 supported? Jan 16, 2020 at 10:07
  • Hi.. Sorry can you run gnome-shell-extension-prefs and enable the extension please..
    – PRATAP
    Jan 16, 2020 at 10:09
  • OK. Thanks. Would you be kind to update the readme on Github. I have lots of experience on 16.04 LTS (Unity) and it is why I didn't know it was necessary to activate the plugin. Jan 16, 2020 at 10:13
  • General comment. It should possible to configure the MAX_LIST_SEARCH_RESULTS_ROWS without the installation of a workaround (plugin). Jan 16, 2020 at 10:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .