codekitchen/tkellem — pull request #26 by zwily (2011-11-13 21:04:40+00:00)
Title: add basic search functionality to the Backlog plugin

Adds a search command to the bot that will return the last 10 lines matching
the provided string in the specified context.

This required sending the bouncer to the bot instead of the just the user,
since we needed to get more state.

Stuff to be done to make better:

* Let users page through results
* Let users ask for X lines of context around one of the results
* Make searching more efficient (we normally want to search from the end of a
backlog)
* Colorize results

The first two items will require keeping some state around for searches
(things like last query, offsets of each result into the file, etc.)