Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Simple file searcher that doesn't use baloo or tracker?

  1. #1

    Default Simple file searcher that doesn't use baloo or tracker?

    Does any one know of one ? Something like kde3's kfind that can use the find / locate index if needed. Currently I am having to use midnight commander which is fine but sometimes I want to save the output.

    I looked at installing kfind on lxde but it had an enormous number of kde dependencies - including phonon. Must be a noisy search. Odd really as I did think it was still a kde3 application.

    John
    -
    Leap 42.2 KDE 5.26
    3.6gig Xeon, 64bit SATA Raid home - Linux Raid 1
    All software on a flash drive, SATA swap & Temp files,

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,450

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    If you are happy to use the console, locate (in the package mlocate) will do what you need.

  3. #3
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    3,974

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    Quote Originally Posted by ajohnw View Post
    Does any one know of one ? Something like kde3's kfind that can use the find / locate index if needed. Currently I am having to use midnight commander which is fine but sometimes I want to save the output.

    I looked at installing kfind on lxde but it had an enormous number of kde dependencies - including phonon. Must be a noisy search. Odd really as I did think it was still a kde3 application.

    John
    -
    I use Recoll, great for my purposes, you can define what it does & does not index, and you control the indexing. It is available in KDE: Extra
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~
    If I helped you, consider clicking the Star at the bottom left of my post.

  4. #4

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    I noticed Recoll but it's a qt app and I want something for lxde using gtk. I'm guessing it will bring in loads of things I don't want having gone to a lot of trouble to get just lxde. I can try adding the repo and see just what it will bring in. Maybe like sddm it doesn't need rather a lot of things that would have been installed if I just said ok to YAST. Doesn't look to be viable though other than maybe from source.

    This is a troublesome area. I can't for instance believe that a C++ programmer would tie phonon-gstreamer-backend to Kfind unless they have a screw loose.. All kfind should do is make use of kernel and maybe bash facilities. Once it gets more complicated than that why have it? Lxde is using openbox which is supposed to support others so if it was stand alone should run it.

    Lxde's pcmanfm search doesn't function so suppose it's tied to tracker which I uninstalled as I have no need for it's capabilities.

    There is another but using tracker comes and goes. The only one left seems to be midnight commander and that also has a facility to exclude specified directories. Useful when there can be 100's of gb about that wont contain what is being searched for.

    John
    -
    Leap 42.2 KDE 5.26
    3.6gig Xeon, 64bit SATA Raid home - Linux Raid 1
    All software on a flash drive, SATA swap & Temp files,

  5. #5

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    Quote Originally Posted by john_hudson View Post
    If you are happy to use the console, locate (in the package mlocate) will do what you need.
    That''s my conclusion - that or midnight commander but I really do wonder why some one doesn't maintain a simple search that will run on any desktop arrangement that uses the same facilities and also hopefully includes the ability to exclude directories.

    John
    -
    Leap 42.2 KDE 5.26
    3.6gig Xeon, 64bit SATA Raid home - Linux Raid 1
    All software on a flash drive, SATA swap & Temp files,

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,306
    Blog Entries
    2

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    I've never used a graphical frontend for locate, but "catfish" is recommended at the following link
    https://unix.stackexchange.com/quest...end-for-locate

    You can install
    locate
    Code:
    zypper in mlocate
    catfish
    https://software.opensuse.org/packag...h_term=catfish

    Note that AFAIK locate can only find files and is based on the full text string entered (which can be only the file name or include parts of the path to the file), not text within the file... But, is lightweight and lightning fast.

    Usage is simple... the database locate uses is updated every 24hrs, and must be updated only once(initial population) immediately after install and then after that only if you're searching for something new that changed within the last 24hrs.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    I just found catfish and tried it. Simple test looking for anything called config system wide. It came back with 8,000 odd pretty quickly but not just files and folder, anything with config in it. Need to look more as it may be possible to change that. It also told me that the index needed updating. That happens in seconds.

    A better option looks to be spaceFM that come with a separate search facility that is bought up by running it with a search postfix. The official version is the latest one. It installed with 2 start button entries. One for file management and another for search. Same test just came up with folders and files very quickly. It's a fork of the original pcmanfm and as a file manager has more capability than dolphin. A lot more than pcmanfm. All of dolphin's current features as far as I can see and some more. Handy because if I want to try common firefox user settings for instance I can create the links from lxde rather than having to do it via kde. Also I can mount kde's / etc if I need to. There is a lot to take in on their help page

    file:///usr/share/doc/packages/spacefm/spacefm-manual-en.html

    The link to that is built in. One thing I would like to know is just how it is doing the search. Maybe some one can have a read. It's not clear to me.

    From my point of view it lacks 3 things. I can't copy / paste a search output. Not much of a problem really when searches don't take a long time. More importantly no content search and no directory exclusion from searches. The directories to be searched can be specified though. Content search isn't popular because that wont be very fast but my main use is finding system files. I don't care how long it takes because any other way of finding out about what does what is likely to take a lot lot longer.

    Yes I have even been known to search binaries for text. That really does take a long time.

    SpaceFM seems to still be under active development as well. I am glad to see some one has some sense.

    Many people find baloo type indexing of everything is a bit of a joke so something is needed that can do it the hard way for if it's needed rather than just doing the lot. I also get the impression that none of the cataloguers make any use of the kernel output when files are changed. I'm 100% sure ms work that way and the fact that files are being indexed is only apparent when the index is initially built. Maybe that has changed and if baloo can be pointed at certain directories I may well use it including file content. The dependencies that c++ can generate though are to me worrying. It can lead to many things only running on one desktop or pollution of the one some one wants to use. Choice of desktop is supposed to be a linux plus - bit of a joke in some ways really.

    John
    -
    Leap 42.2 KDE 5.26
    3.6gig Xeon, 64bit SATA Raid home - Linux Raid 1
    All software on a flash drive, SATA swap & Temp files,

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,306
    Blog Entries
    2

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    Quote Originally Posted by ajohnw View Post
    I just found catfish and tried it. Simple test looking for anything called config system wide. It came back with 8,000 odd pretty quickly but not just files and folder, anything with config in it. Need to look more as it may be possible to change that. It also told me that the index needed updating. That happens in seconds.
    -
    As I described, you can improve on your results if you include a little bit of the path with your file name.
    Also, read the locate MAN page for various options

    Eg
    By default, your example returns every string name that includes "config" in the name, eg sysconfig.
    You can search <only> for the specified word (not part of any other word) as follows
    Code:
    locate -b '\config'
    And if you were looking specifically for the configuration file for samba, you could include part of the known path, search the following
    Code:
    locate samba/config
    As always, there are also good resources on the Internet, eg the following from the Linux Information Project
    http://www.linfo.org/locate.html

    Since you returned results,
    I doubt you really needed to "update indexing" but if you ever need to do so, just run "update" in an elevated console, it'l take only about 30 seconds or so to update your locate database.

    I don't know how much of these command line options are supported in catfish, that's always the case when a graphical frontend is used.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  9. #9

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    From what I have seen of spaceFM it's ideal if some one want a file manager that has all of the facilities in Dolphin and more plus a search. When I installed it in lxde I don't think anything other than it's code was added. I'm going to see if it will install on kde for the search. It seems to be quicker than kfind. I have a feeling that it doesn't use the locate index but not sure. It does allow the directories to be searched to be specified as well - add and remove style. I feel a don't search a directory option would be better but having to add several to a search isn't too bad.

    There does seem to be a content search plugin for it but as it's a script I'm not totally sure what it does or how to install it.. I'll have a go sometime tomorrow. There are a number of other plugins as well.

    John
    -
    Leap 42.2 KDE 5.26
    3.6gig Xeon, 64bit SATA Raid home - Linux Raid 1
    All software on a flash drive, SATA swap & Temp files,

  10. #10
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,306
    Blog Entries
    2

    Default Re: Simple file searcher that doesn't use baloo or tracker?

    Quote Originally Posted by ajohnw View Post
    From what I have seen of spaceFM it's ideal if some one want a file manager that has all of the facilities in Dolphin and more plus a search. When I installed it in lxde I don't think anything other than it's code was added. I'm going to see if it will install on kde for the search. It seems to be quicker than kfind. I have a feeling that it doesn't use the locate index but not sure. It does allow the directories to be searched to be specified as well - add and remove style. I feel a don't search a directory option would be better but having to add several to a search isn't too bad.

    There does seem to be a content search plugin for it but as it's a script I'm not totally sure what it does or how to install it.. I'll have a go sometime tomorrow. There are a number of other plugins as well.

    John
    -
    I don't know about nowadays,
    But back a few years (early KDE4?), KDE used its own instance of locate. I remember then, another technology was being introduced with additional capabilities.

    The point though is that even if locate might be used in any way, it'd be its own instance and wouldn't be related to an instance installed through the mlocate package.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •