Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gives `ag/search` an optional `files` parameter. If parsed, give this list of files to ag instead of the current directory ("."). I find this useful because I use org-journal, and now I can do something like this to search with ag between two dates, for example 2019-15-5->2019-05-31: ``` (let* ((start (org-journal-calendar-date->time '(5 15 2019))) (end (org-journal-calendar-date->time '(5 31 2019))) (files (sort (org-journal-search-build-file-list start end) #'string<))) (ag/search "foo" "~/myorg/journal-elements/" :files files)) ```
- Loading branch information