Flash is a full-text desktop search engine, designed to help users find their files. Using preprocessing techniques, flash creates an index, allowing searching without having to crawl the file system, substantially reducing search times.
Before flash can be installed, ensure that all dependencies are installed by running:
sudo apt install libmagic-devand
sudo apt install libgtk-3-dev libcairo2-dev libglib2.0-devClone the repository:
git clone git@git.cs.sun.ac.za:20721900/flash.gitMove into the flash directory:
cd flashInstall the program:
go installFinally, run the install command to set up flash on your system:
flash installCongrats, you can now use flash! 🎉
Start by adding the directories you want indexed using
flash add <path-to-dir>Once it has been indexed, the files can be searched by either using
flash find <search-query>or
flash guiOnce flash has been installed it can be used as follows:
flash [command]| Command | Description | Usage |
|---|---|---|
| add | Adds a file or directory to the watch list | flash add <path-to-dir> |
| blacklist | Blacklists all files which match a given regex | flash blacklist [command] |
| daemon | Used to control the file monitor daemon | flash daemon [command] |
| find | Searches the index for a given phrase | flash find "<search-query>" |
| gui | Opens a graphical search box | flash gui |
| help | Outputs help for the program | flash help |
| install | Performs all setup required for flash to run | flash install |
| remove | Removes a file or directory from the watch list | flash remove <path-to dir> |
| reset | Removes all files from the index | flash reset |
To edit or build the code yourself, simply clone the repository as shown above. A binary can be built using:
go build main.goOtherwise, the project can be built and run in a single command, using:
go run main.go [command]Where [command] is one of the commands described above.
- Andrew Cullis - Stellenbosch University