fsearch icon indicating copy to clipboard operation
fsearch copied to clipboard

cmdline interface and file browser integration

Open jarun opened this issue 7 years ago • 4 comments

Hi,

Awesome utility! I've been using it for sometime and I'm more than glad.

A Reddit user was looking for a search utility when I suggested fsearch. He mentioned that he is looking for a cli way of using it. AFAIK, there is no such provision today. However, I think it would be great if you can make some well-defined APIs available. I could probably integrate it in my own file browser nnn in which I'm thinking of implementing file search myself.

The second request would be related to fsearch in its current form. Is there a documented way I can use fsearch from a file browser menu? I am using Thunar.

Once again, thanks a ton for saving a lot of my time everyday!!!

jarun avatar May 02 '17 09:05 jarun

That's actually what I've been working on recently -- build a libfsearch library with all the core functionality. The code of FSearch is already pretty much separated into two parts - a gui part based on GTK+ and all the search and database functionality which for the most part only depends on a C standard library. So most of the work is figuring out a nice API.

Integration into Thunar or similar tools currently doesn't work, but it's already on my todo.

cboxdoerfer avatar May 02 '17 10:05 cboxdoerfer

Wow!!! This is unexpected! I took a quick look into the code and it seemed there's a tight coupling with GTK. Thanks for the update!

jarun avatar May 02 '17 10:05 jarun

@cboxdoerfer is it possible to launch fsearch with the absolute path to a directory (from /) as argument? Then I can add a new key which can launch fsearch in the current directory directly. nnn is very very GUI friendly too :). I think this would be a comfortable use case for many users.

jarun avatar May 12 '17 05:05 jarun

As I checked, it's not possible right now. Would request you to consider the option to support path-limited search.

jarun avatar May 13 '17 04:05 jarun