Lepton icon indicating copy to clipboard operation
Lepton copied to clipboard

Feature request: search gist content

Open kergoth opened this issue 7 years ago • 10 comments

It'd be nice if the search covered more than just description/filename, as quite often what I'm looking for is a command inside a shell script or something :) For example, GistBox supports this (though has other weaknesses, i.e. the tags are local to the app, not stored in the gists).

kergoth avatar Feb 08 '17 15:02 kergoth

@kergoth

Thanks for feedback. Lepton uses "lazy loading" for gists, which means the gist content is not fetched until users click on it. This mechanism limits the local search's capability, since it can only search for what has been downloaded.

The next release(the coming weekend) will have a big improvement on the search quality, like fuzzy search and unicode support. But as I just mentioned, I haven't come up with a good solution for content search yet.

All suggestions or PR will be welcome:)

P.S. GistBox is a cool project, but its development seems to be slow recently. That's one of reasons I start a new project for Gist.

hackjutsu avatar Feb 08 '17 17:02 hackjutsu

Fair enough, I figured the fetching was the issue, as I'm guessing the gist api doesn't provide content search. Thanks for the quick reply, I look forward to playing with Lepton more, you've done nice work so far. It's a shame github's built in gist UI is so limited, particularly for those of us with a lot of gists :)

kergoth avatar Feb 08 '17 20:02 kergoth

+1

AStupidBear avatar Apr 15 '17 13:04 AStupidBear

Still a highly desired feature.

ghost avatar Mar 18 '19 18:03 ghost

+1 this drastically limits the functionality of this otherwise super cool app.

supremeo avatar May 28 '19 15:05 supremeo

I'd prefer a toggle or button that went ahead and forced a download of all gists so that we could do content search.

In other words, search continued to just search description and filename, but we could force it to go ahead and download everything so it could be searched.

dmwyatt avatar Dec 25 '19 19:12 dmwyatt

Since gists are mostly text, it will not take much storage space to download them all. I guess full text search on the cached gists would be a good choice.

zhezh avatar Apr 08 '20 12:04 zhezh

I just cannot beleive there is not a single tool which supports searching through the contents of your gists. How hard should it be to download all gists throught the GutHub API, put them in an sqllite file and do some good old information retreival?!?

palexof avatar May 03 '20 15:05 palexof

+1 This feauter is really required. I would also agree that text files should not take to much space.

ikaygorodov avatar Sep 07 '21 20:09 ikaygorodov

Github support search content via in:file, can we utilize it?

ljian3377 avatar Oct 15 '21 09:10 ljian3377