4

I've found a command that enables web searches through the whisker menu, but is there a way to search for files with it?

2 Answers 2

5

You can use Catfish to search for files and it can be started from within the Whisker menu. In the Whisker menu properties "Search Actions" tab, create a new search entry with the following parameters:

  • Name = Catfish
  • Pattern = ~
  • Command = catfish --start %s

*Note: you can use whatever pattern is most useful to you.

Once this is done, simply enter in Whisker Menu's input field the pattern indicator followed by the search term.

For example, to search for a file called "New Document", enter "~New Document" in the input field and press enter. Catfish will open and display the search results for you (by default, it will only search in your home directory).


The command catfish --start %s will search in$HOME, but new search actions with new patterns can be added:

  • for searching a mounted drive - use a command like catfish --start /path/to/mountpoint %s

  • for searching the entire system - catfish --start / %s

Setting "s" as "Pattern" for "Search entire system":

enter image description here

enter image description here

4
  • There is no --start option listed for catfish command. Catfish GUI will appear with specified string, but the search will not start automatically until user has pressed the Enter key.
    – user37165
    Jun 12, 2016 at 5:10
  • 2
    The --start option was added in version 1.2.0 for this exact purpose - to auto-start the search.
    – NotARobot
    Jun 12, 2016 at 11:58
  • Now I'm aware why I'm missing the option. So this answer is useful for users running releases newer than 14.04.
    – user37165
    Jun 13, 2016 at 3:16
  • In the image there is a 'space' between the parameter ('s') and the search-term ('whatever'). But that space is not needed in fact.
    – cipricus
    Sep 11, 2020 at 12:48
1

For a way of searching and opening files in Xfce with an application launcher like Whisker-menu, one that is showing as pop-up triggered by shortcut, Synapse is the way to go.

sudo apt install synapse

Open it, click the top right button for properties, check to have it run at startup (add it to startup list).

Under plugins tab, enable Directory Search, Hybrid Search, Locate, Related Files, Zeitgeist.

In case some files are not opened, see this answer.

In case files from NTFS partition are not found, see this answer.

In order to open Synapse with just the Super key, see this answer.


Press DOWN-ARROW button for multiple results:

enter image description here


Clicking TAB and DOWN-ARROW shows multiple options for the selected file:

enter image description here


Just opening Synapse and clicking DOWN-ARROW shows recently opened files (accessed from the file manager but not from Synapse).


If nothing is found, press ENTER to activate locate command.

If files are found but not the one you want, DOWN-ARROW to scroll the list down to the last entry (preceded by a question mark) and press ENTER to activate locate command:

enter image description here


See why some files need locate and some do not.

You must log in to answer this question.