Catfish finds all files in the folder - instead of just the folder
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Catfish finds all files in the folder - instead of just the folder
I use catfish to search for files. If I use the "locate" back-end - it works correctly. If I use the "find" back-end, catfish will find files and folders containing the word I'm searching for in their name - but it will also list in the results every single file in the the folder which has been found. It's like it is performing a search on the full path of those files, not just their name. I've tried with "Exact match" ticked and unticked, I tried with wildcards and without - doesn't seem to make any difference.
I prefer to use it sometimes with "find" - as it finds recent files which have not been indexed yet.
I'm using catfish 0.3.2.
Any suggestions as to what might I be doing wrong? All reviews and articles online about catfish mention nothing about this behaviour.
So it is behaving as programmed, if not as you would like or intuitively expect.
catfish --help output does not list any options to change the behaviour and I found no reference to modifying behaviour via a configuration file or environment variables so the only option is to change the source and recompile to .pyc.
Just one more question - any ideas how to modify the code above to remove the "wholename" and "iwholename" options? I've tried removing them (and just leaving empty '' instead) and catfish compiles - but when trying to search with find, it complains of wrong arguments. Do I need to remove anything else in that piece of code, or get rid of the single quotes as well?
Don't python here either; But looked up PyGtk2 using pkgtool and then googled it, as it is a dependency, as is Glade2. Found this for PyGtk2: http://www.pygtk.org/pygtk2tutorial/...roduction.html
Wonder if it is a path issue?
Found this for Glade2: http://glade.gnome.org/
In any case learning python & Xml is way off task for search functionality, i finally know how to do manually. Got bigger fish nipping me. Simple is really a relative term in this forum
It essentially replaces "-wholename" and "-iwholename" with "-name" and "-iname" arguments. It works just fine after this change. Not really sure why both arguments are needed - "-iname" would have done just fine - but I kept it as close to the original as possible.
I've sent the patch to the author - but had no reply. Maybe he will get around to it sometime. Otherwise, you can just patch it yourself.
I don't use catfish that much myself (I mainly use find on the command line) - I have few users who prefer not to learn too much Linux - just use it. I know, the idea abhors some technical people - but some people like to spend their time learning other stuff, not computers.
Excellent work. Didn't test your version - but hope it all works just the same. It might come in handy for somebody else looking for a fix. Thanks for posting
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.