searchq

https://github.com/boyw165/searchq.git

git clone 'git://github.com/boyw165/searchq.git'
2

MELPA

Queue The Search Tasks, Run Them In The Background And More

A search framework which let you search string or regular expression in the background and queue the search tasks. It uses find, grep, ack or 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.

Demo

screenshot

Basic Usage - searchq-search

Command searchq-search takes MATCH string and optional ATTRIBUTES properties list, then creates a search task by searchq-backends.

screenshot

There're 3 types of attributes:

Example:

(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"))

Advanced Usage - searchq-search-command

Command searchq-search-command takes COMMAND string (you have to provide it manually) and creates a search task.

Example:

(searchq-search-command "find /path/1 | xargs grep -nH -e MATCH 2>/dev/null")

Stop Running Tasks - searchq-stop-all

Command searchq-stop-all stops the running task and kills remaining search tasks.

Search Result - searchq-toggle-result

self-insert-command is disabled in the result buffer. But it provides following editing functions:

screenshot

screenshot

TODO

Contribution

Forks and pull requests are welcome!