Skip to content

Commit

Permalink
readme updated and the html delegate tweaked
Browse files Browse the repository at this point in the history
  • Loading branch information
DoTheEvo committed Apr 24, 2015
1 parent f359874 commit 281c47a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions angrysearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 281c47a

Please sign in to comment.