git clone 'git://github.com/boyw165/searchq.git'
A search framework which let you search string or regular expression in the background and queue the search tasks. It uses
ag command as its searching backends. In addition, the search result can be a jotting. So it keeps the search result for you and provides editing function.
The code is still young, feel free to give me adivces.
Note: Support only on linux-liked environment.
searchq-search takes MATCH string and optional ATTRIBUTES properties list, then creates a search task by
There're 3 types of attributes:
:filesproperty name and a value of file-paths string list.
:dirsproperty name and a value of directory-paths string list. The 1st element of the list is a INCLUDES string list. The 2nd element of the list is a EXCLUDES string list. The format of INCLUDES and EXCLUDES depends on the
searchq-backends(Backend should describe the rule in its document).
:fromfileproperty name and a value of file-path string.
(searchq-search MATCH :files '("/path/a" "/path/b") :dirs '(nil nil "/path/dir1" "/path/dir2"))
(searchq-search MATCH :fromfile "/path/inputfile")
(searchq-search MATCH :dirs '(nil ("*.git*" "*.svn*") "/path/dir1" "/path/dir2"))
searchq-search-command takes COMMAND string (you have to provide it manually) and creates a search task.
(searchq-search-command "find /path/1 | xargs grep -nH -e MATCH 2>/dev/null")
searchq-stop-all stops the running task and kills remaining search tasks.
self-insert-command is disabled in the result buffer. But it provides following editing functions:
searchq-toggle-resultto toggle result buffer (show it when it's hidden; hide it when it's present).
searchq-result-delete-item-atptto delete unwanted results.
whereis-symbol-mode(will release at Jue).
searchq-searchfor file and directorty.
Forks and pull requests are welcome!