Everywhere, Simple script for searching directory and file instantly for ubuntu

Hello, Do you ever use the application Everything” on Windows? Everything is a great application for indexing file or folder. Everything store a lot of information about file/directory name and the path to the database. So if you want search a file, Everything search on his own database rather than searching manually on a whole drive.

Everything on Windows 8

So, what about linux? Everything doesn’t work on linux. But, we have a super command “locate“. Unfortunately, the cli make me weird. I can’t easily double click and see my file.

Thanks for my friend (firda) introduced me to “zenity“. A simple Dialog maker. I combine that powerful command, locate and zenity, into one bash file that i call “Everywhere“.

How to install

First, you must have locate and zenity. Open your terminal and write the command

sudo apt-get install locate zenity

Than, download my script here > https://www.dropbox.com/s/r915fw1q17eardm/everywhere?dl=0

I assume that everywhere in ~/ . Give an execute permission and run it.

~/$ chmod  +x everywhere
~/$ ./everywhere

voila, thanks for using everywhere. To open the directory, just double click the path.

Welcome dialog
Welcome dialog
List dialog
List dialog

———————————————————–

Sstt…!!

For easily access to everywhere, edit your keyboard configuration, go to shortcut and add this command

gnome-terminal -x ./everywhere

I give super+e for everywhere

Screenshot from 2014-10-25 20:09:50
Shortcut on Ubuntu

————————————————————

What does Everywhere really do?

As i said before, I just make a gui version of Locate with zenity. Locate store his database and everytime you call Everywhere, he will ask you to update the database. If you want to update, the program call “sudo updatedb” and you must give your password. Update process can take a minute or two. Sure, You can skip this process.

I’m sorry i can’t give a new algorithm to make the searching process faster and still not better than “Everything”. I think, the script can be add more feature and i hope you will help me.

Sorry for bad english, this is my first post with an international language. Any suggestion are welcome and sorry for misspell.

————————————————————————-

Reference

The Inspiration, Everything: http://www.voidtools.com/support/everything/

The main program, Locate: http://manpages.ubuntu.com/manpages/precise/man1/locate.findutils.1.html

The Simply Dialog maker, Zenity: https://help.gnome.org/users/zenity/stable/index.html.en

For bash scripting, TLDP: http://www.tldp.org/LDP/abs/html/index.html

Advertisements

4 thoughts on “Everywhere, Simple script for searching directory and file instantly for ubuntu

  1. Sudah bagus ini, Kang. Ideiide dijelaskan runtut. Penamaan istilah ditaruh ditempat masing-masing. Untuk masalah desktop search, sudahkah akang mencobanya di KDE? Antara Strigi dan Nepomuk (Baloo sekarang). Inovasi akang menarik. Terima kasih sudah membuatnya.

    • Maaf saya hanya pakai ubuntu default yang menggunakan unity, jadi belum mencobanya di DE lain. Strigi dan nepomuk (dan akonadi waktu saya baca referensi lain) sepertinya juga hanya berjalan di KDE ya?

      Terima kasih mas ade sudah hadir disini 😀

Pendapat anda

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s