diff --git a/README.md b/README.md index dfd0d7f..05218d0 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,17 @@ Linux file search, instant results as you type Attempt at making Linux version of Everything Search Engine, or MasterSeeker, or Hddb File Search, because no one else bothered. Everyone seems to be damn content with linux file searches which are slow, populating results as they go, cli based only, heavily integrated with a file manager, limited to home directory, or are trying to be everything with full-text content search. -![alt tag](http://i.imgur.com/6SciMhk.gif) +![demonstration gif](http://i.imgur.com/g5sud7o.gif) Done in python, using PyQt5 for GUI +What you should know: + +* unfortunately search results are bound to the beginning of the words, not doing substring search +* so a search for the word - "finite" would not include the results that have in the path word - "infinite" +* this is not a small program, database for 1 million files is around 200MB in size +* data are from the last time updatedb button has been pressed and new database created, updatedb running daily on its own does not change this + How it works: * source for the data are [locate](http://linux.die.net/man/1/locate) and [updatedb](http://linux.die.net/man/1/updatedb) commands diff --git a/angrysearch.py b/angrysearch.py index 746d80e..e06afe8 100644 --- a/angrysearch.py +++ b/angrysearch.py @@ -137,7 +137,6 @@ def __init__(self): def initUI(self): self.search_input = QLineEdit() self.main_list = QListView() - self.main_list.setUniformItemSizes(True) self.main_list.setItemDelegate(HTMLDelegate()) self.upd_button = QPushButton('updatedb') @@ -314,7 +313,7 @@ def show_first_500(self): return cur.execute('''SELECT file_path_col FROM vt_locate_data_table - LIMIT 500''') + LIMIT ?''', (self.set['number_of_results'],)) file_list = cur.fetchall() l = [i[0] for i in file_list] @@ -399,11 +398,13 @@ def tutorial(self): ' • locate uses "updatedb" to update its own database', ' • configuration can be find in /etc/updatedb.conf', ' • there you can exclude paths from being searched', - ' • for Btrfs users, you really want to exclude snapshots', - ' • add ".snapshots" to PRUNENAMES if you use snapper', '', - ' • learn more about locate on its manpage', - ' • learn more about updatedb on its manpage', '', + ' • Btrfs users really want to exclude snapshots', + '', + ' • learn more about locate on it\'s manpage', + ' • learn more about updatedb on it\'s manpage', + '', ' • ANGRYsearch database is in /var/lib/angrysearch/', + ' • with ~1 mil files indexed it\'s size is roughly 200MB', ' • config file is in ~/.config/angrysearch/', ' • currently you can set file manager manually there', ' • otherwise xdg-open is used which might have few hickups',