Skip to content

Commit

Permalink
clean up for release, some more readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DoTheEvo committed Mar 13, 2015
1 parent bd0c57e commit 5c78603
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ Done in python, using PyQt5 for GUI
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
* program exports all locate data in to a temp file 'locate * > /tmp/tempfile'
* configuration for updatedb is in /etc/updatedb.conf' where paths can be excluded from indexing
* if you use btrfs file system, you really want to exclude your snapshots there
* if you for example use snapper to manage your snapshots you add [.snapshots to PRUNENAMES](http://i.imgur.com/I8Vq4go.png)
* ANGRYsearch exports all locate data in to a temp file 'locate * > /tmp/tempfile'
* from the tempfile a database is build and indexed
* then its available for querys, returning 500 results per search
* config file can be find in ~/.config/angrysearch
* [file manager](http://i.imgur.com/mVgU7Bg.png) with which to open results can be set there
* on double-click or enter the file_manager gets executed with path as parameter
* if its a dictionary it gets path to that dictionary
* if its a file, path by default leads to the conatining dictionary
* if its a directory it gets path to that directory
* if its a file, path by default leads to the containing directory
* this behaviour can be changed in config by setting file_manager_receives_file_path to true
* there are exceptions ignoring this settings because they can highlight the file
* currently its dolhpin, nemo, nautilus, doublecmd
* there are exceptions ignoring this setting because they can select/highlight the file
* currently it's dolhpin, nemo, nautilus, doublecmd
* these will on double-click open containing folder, highlight-selecting the file
* without anything set in the config, xdg-open is used to detect default file manager
* without any changes to the config, xdg-open is used to detect default file manager
9 changes: 4 additions & 5 deletions angrysearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ def show_first_500(self):
if cur.fetchone() is None:
self.status_bar.showMessage('0')
self.tutorial()
self.center.upd_button.setFocus()
return

cur.execute('SELECT file_path_col FROM locate_data_table LIMIT 500')
Expand Down Expand Up @@ -369,13 +368,13 @@ def detect_file_manager(self):
def tutorial(self):
chat = ['', ' ANGRYsearch', '',
' • uses "locate" command to create own database',
' • locate uses "updatedb" command for its own database',
' • locate uses "updatedb" to update its own database',
' • configuration can be find in /etc/updatedb.conf',
' • there you can exclude/include paths for searching',
' • 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',
' • add ".snapshots" to PRUNENAMES if you use snapper', '',
' • learn more about locate on its manpage',
' • learn more about updatedb on its manpage',
' • learn more about updatedb on its manpage', '',
' • ANGRYsearch database is in /var/lib/angrysearch/',
' • config file is in ~/.config/angrysearch/',
' • currently you can set file manager manually there',
Expand Down

0 comments on commit 5c78603

Please sign in to comment.