[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Linux Search
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 65
Thread images: 13
File: everything.webm (3 MB, 856x644) Image search: [Google]
everything.webm
3 MB, 856x644
>Linux will never have everything search engine.... blabla

so here is angrysearch - attempt at making something like Everything Search Engine for Linux

>github
https://github.com/DoTheEvo/ANGRYsearch

so.. here comes the new update only ~2 weeks after the last one

>NEW: regex search mode on F8 key press
>FIX: mimetypes detection while navigating by keyboard
>FIX: date and size columns are no longer indexed and included in search
>>
File: regex.gif (343 KB, 604x338) Image search: [Google]
regex.gif
343 KB, 604x338
regex search in action

major new thing is the support of regex search which someone suggested in the last thread
was pretty skeptical about its usefulness but it is actually pretty awesome to play with regex

some things to point out about regex search

>case insensitive
for more comfy use
>only filenames and directory names are searched
normal non-regex search modes search full path
this allows you to use name of directories containing files you search for as one of the search terms to narrow shit down, like: "home png" would show everything that has home and png somewhere on its full path
but regex search is all about finding the files/directories by what they are, by the nature of their name, not their path
>search not match
means that it is searching for occurrences of regex you type, not requiring that regex flawlessly matches whole filename
so writing 'png' will be literal characters and fill show files/directories having "png" somewhere in the name
if match would be used then it would require something like: ".*png.*"

regex is the slowest of search modes
implementation was not as trivial as I first thought it would be as for some reason the application freezes if more than one regex search is done at the same time.
Probably because its not pure sqlite like other search modes, but uses python regex as custom regexp sqlite function. This forced some workaround making it slower.. but as is apparent from the gif, its still decently fast
>>
Nobody wants this. Stop advertising it here
>>
>>54703589
Everybody wants it
its the best GUI search that linux got to date
>>
You really need to modularize your code a bit more...
>>
>>54704059
any specifics?
some decisions are for easier maintainability and bug hunting
I might rewrite the whole thing if I would level up on my skill and had some idea on improvements
long term, distant future aspirations were learning some C and use that to do some multithreaded brute force searching
>>
>>54703589
what the hell kind of threads *do* you want, then?

Some anon developing software is probably the most /g/-related thread on the board right now. Wouldn't you rather have this than "trips has to buy winrar"?
>>
>>54703589
No, nobody wants you here.
>>
File: bigguy.gif (257 KB, 219x146) Image search: [Google]
bigguy.gif
257 KB, 219x146
>>54703571
Great you brought the shittier version of the find command to windows
>>
>if you have trouble starting the application, restart the pc
nice meme

captcha: 2^9
>>
>>54703571
>>54704389
>>Linux will never have everything search engine.... blabla
Sorry didnt read op. I thought you were trying to meme about linux. Looks pretty cool
>>
>>54704476
it cleares the \tmp
and thats where on update the database is created so to get rid of it if something goes bad while crawling
>>
>>54704541
this aint windows friendo. I aint gonna restart my pc because you can't write proper code.
>>
>>54703796
>>54704331
>>54704378
Fuck off OP. We can all see the IP counter
>>
>>54704541
>it cleares the \tmp
>\tmp
>\

just stay on windows you fag
>>
File: kys.png (6 KB, 346x111) Image search: [Google]
kys.png
6 KB, 346x111
>>54704595
Still here?
>>
>>54704595
all me
>>
>>54704618
oh fuck, my cover is blown
well.. I would not be missing everything enough to make it my ownself if I did not spent loads of time using it on windows
>>
>>54704629
Nice edit
>>
>>54704541
So just tell us what to delete or make a script that does it?
>>
>>54703571
nice project OP good luck and thanks for making /g/ a little better with actual fucking technology
>>
Anyone tried this on OpenBSD?
>>
>>54704719
/tmp/angry_database.db
and it does get deleted when it might cause trouble as I just checked the code for
os.remove(


dunno, I guess the restart is not really essential, but it feels like a normal thing to recommend when troubeshooting something
>>
>>54703571
https://en.wikipedia.org/wiki/Locate_%28Unix%29

You're 34 years too late.
>>
File: uw0tm9.jpg (29 KB, 608x352) Image search: [Google]
uw0tm9.jpg
29 KB, 608x352
>>54704904

>it feels like a normal thing to recommend when troubeshooting something
>>
File: 1462810272006.webm (378 KB, 1232x803) Image search: [Google]
1462810272006.webm
378 KB, 1232x803
>>54705449
as always.. do this with locate
>>
>54705496
>2.56GB

get out YIFY normie
>>
Thanks OP. I've used this for a long time now.
>>
>>54704792
This
>>
it crawls through a mounted partition which takes a fuckload of time.
>>
>>54706056
Everything chews through my 16+ TB DAS in <0.5 seconds, angrysearch takes ages.

Everything updates its DB in real time too, no crawling bullshit.
>>
Why GPL2?
>>
>>54705449
locate is so slow compared to grep.
http://jvns.ca/blog/2015/03/05/how-the-locate-command-works-and-lets-rewrite-it-in-one-minute/
>>
File: p27kt6y.gif (611 KB, 608x507) Image search: [Google]
p27kt6y.gif
611 KB, 608x507
>>54706056
>>54706187
I am curious..
how long does it takes
and how many files total in the end?

storage drives even though large usually dont have hundreds of thousands files, unlike system drives
it should not be extremely long...

for me its SSD + 2x3TB HDD and in full mode it takes ~2 minutes on cold start update(if you run after you already run update it will be much faster cause shit is caching somewhere)

>>54706056
you can exclude 'mnt' if you want...

>>54706187
Everything is fucking magic mazing, it uses freely accessible NTFS master table to get initial data and then monitors NTFS change journal...
>>
>>54706256
Because 3 is cancer
>>
>>54703571
>Linux will never have everything search engine

find / -regextype posix-extended -iregex '.*PATTERN.*' 2>/dev/null


or, if the mlocate db is up to date (run updatedb):
locate -i 'PATTERN'
>>
>>54706715
Find doesn't page the fs though. Don't like it, dont use it.
>>
>>54703571
thanks, i see my request from last thread is implemented.
keep up the good work
>>
>>54707572
it was good idea
>>
File: screencast-2016-05-23-181222.gif (21 KB, 658x462) Image search: [Google]
screencast-2016-05-23-181222.gif
21 KB, 658x462
>>
File: the anime is confused.jpg (37 KB, 348x342) Image search: [Google]
the anime is confused.jpg
37 KB, 348x342
python ./angrysearch.py
autodetected file manager: thunar
zsh: segmentation fault (core dumped) python ./angrysearch.py
>>
File: 1340423283364.jpg (44 KB, 446x400) Image search: [Google]
1340423283364.jpg
44 KB, 446x400
>>54703571
Pretty handy since windows executables could be any fricking place, while linux executables are in /usr/bin.
>>
>>54703589
Fuck off windowsfag.
>>
>>54703589
I want it
>>
>>54703571
>NEW: regex search mode on F8 key press
Thanks sempai
>>
>>54703571
>what is mlocate
>>
>>54703571
>what is fzf, peco, zaw
>>
We have had find and locate for decades, nobody gives a fuck.
>>
>>54703571
I'm giving it a try. So far I'm just updating the database.

Might want to make it so that the update interface has a fixed size on all those objects. It's currently impossible to read while it's updating because long filenames cause everything to resize.
>>
Works well, OP. I have a ton of ebooks and research articles and this makes browsing through them easier.
>>
>>54703589
this is good stuff, fuck off
>>
> everything
I guess you never used spotlight on osx op. It's far superior and comes built-in on osx. Install Alfred and you got an even more advanced shit
>>
>>54714445
Sorry, I meant to add that this is only an issue if you resize the 'Database Update' window.
>>
>>54704331
This
>>
find -type f | grep -i chrome


it's fast
>>
What data structures does this use?
>>
>>54715020
linked list :^)
>>
>>54703571
Get a better logo.
>>
catfish does the same thing but it doesn't cache stuff
>>
>>54715429
I'm not OP but a quick google search reveals that catfish uses locate and find as it's backend. Locate builds a database and if your database is out of sync you may have to rebuild it with updatedb as root.
http://linux.die.net/man/8/updatedb

I haven't used catfish so I can't say if they're really the same otherwise.

I am liking this software, though I'm not approaching it as a "search" program so much as a "browse" program. To clarify what I mean, I have a huge library of movies, ebooks, comics, games, etc... It's simply too large to properly organize or browse with a normal file browser. This instant search lets me explore the search space without actually having to know precisely what I'm looking for.

There's a guy named Bret Victor who makes software and gives talks on software like this. He's worth checking out.
>>
why not just use locate
>>
>>54704904
Maybe if you're talking to your gandmother.
>>
>>54703589
Are you retarded?
Everything is a basic os functionality by now, if you don't have it, get the fuck out.
>>
seems quite fast
>>
>>54715410
got any suggestions?
Thread replies: 65
Thread images: 13

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.