Search for Files in GhostBSD

Add your Tips and tricks to configure and tweak your GhostBSD System here.
Post Reply
User avatar
NevilleGoddard
Developer
Posts: 517
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan

Search for Files in GhostBSD

Post by NevilleGoddard »

There is a very useful application called catfish that can be used to search your computer for files. Catfish is a GTK based search utility. You can search for files using the command line but catfish makes things much easier.
To install just open OctoPkg, enter "catfish" in the search bar and install.
Or by command line "pkg install catfish".
To use catfish, simply launch the program enter the file name in the search bar and click the magnifying glass icon or press enter and catfish will find the file for you.
If you are using xfce, you can set up a custom action to use catfish by simply right-clicking while using the file manager.
To set this custom action up, open Thunar, the file manager and go to Edit -> Configure custom actions.
When the "Configure custom actions" window opens up click the + button on the right side to add the custom action.
When this window opens enter name (Whatever you like) and Description (Whatever you like) and then command .
In this window put this in "catfish --path=%f" without the " of course.
If you want an icon, click on the Icon button and enter catfish in the search bar. If nothing comes up enter search and you will find a system search icon that can be used. You could also search /usr/local/share/icons by clicking the "Image files" option from "select icon from" tab.
Then click on the "Appearance conditions" tab and under "Appears if selection contains" dialogue make sure all boxes are ticked or checked. Then click OK and then close and shut file manager.
Now open file manager (Thunar) and right click on an empty space somewhere and you should see your custom action there with the name and icon you chose.
Kernelpanic
Posts: 37
Joined: Tue Sep 29, 2015 4:59 pm

Re: Search for Files in GhostBSD

Post by Kernelpanic »

Thanks for this trick ;)
User avatar
NevilleGoddard
Developer
Posts: 517
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan

Re: Search for Files in GhostBSD

Post by NevilleGoddard »

No worries. :D
amgpuma
Posts: 8
Joined: Thu Mar 12, 2015 2:54 am

Re: Search for Files in GhostBSD

Post by amgpuma »

I know its and old post, I actually I installed GhostBSD 11.1 few days ago. I manage to install all desired packages except catfish; for whatever reasons has not been added or deleted from the repository. I saw there is a rather old 2016 version available at FreeBSD freshports https://www.freshports.org/sysutils/catfish/ although I'm not sure whether I should add freshports to GhostBSD; read somewhere that by adding freshports will "pollute" the sys and jeopardise it. I haven't seen any updated ref. only one last from the #4 version in the wiki, about installing additional software.
Thanks in advance
User avatar
NevilleGoddard
Developer
Posts: 517
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan

Re: Search for Files in GhostBSD

Post by NevilleGoddard »

Yes, it's usually not a good idea to mix ports and packages, but I haven't experienced any issues with catfish so far. The problem is that catfish is not in the repositories for some reason. Maybe the repo problem will be fixed soon for catfish.
amgpuma
Posts: 8
Joined: Thu Mar 12, 2015 2:54 am

Re: Search for Files in GhostBSD

Post by amgpuma »

OK then you suggest to add this port or just wait for a while, it's not a big drama though
User avatar
NevilleGoddard
Developer
Posts: 517
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan

Re: Search for Files in GhostBSD

Post by NevilleGoddard »

Yes, I'd wait for a while. The package should hopefully come into the repos soon. If it doesn't install the port.
There is also another program called "recoll". See how that works for you.
amgpuma
Posts: 8
Joined: Thu Mar 12, 2015 2:54 am

Re: Search for Files in GhostBSD

Post by amgpuma »

I know recoll, but this is most a text rather than a file finder.tks anyway.
Post Reply