From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: New org-grep Date: Tue, 28 Jan 2014 00:50:01 -0500 Message-ID: <87ppnc1wqe.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W81Yq-0001EE-An for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 00:50:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W81Yl-0003cp-J1 for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 00:50:12 -0500 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:51052 helo=mercure.progiciels-bpi.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W81Yl-0003cG-F5 for emacs-orgmode@gnu.org; Tue, 28 Jan 2014 00:50:07 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, fellow Org lovers. I babbled a bit, here, about my org-grep[1] project. I just added some machinery to re-organize the hits buffer it produces, in such a way that the Org file uses an hierarchical structure of headers which reflects the directories where the various hits were found. This is triggered by the "s" (structure) command within an already produced hits buffer. The difficulty for me was to tame some trickery recursion, while still aiming algorithmic speed, but it was fun! Each one his own misery :-). Some slowness remains for the user, which comes from Emacs redisplay. I wrote this because, when there are many hits in a search, it is sometimes difficult to get a kind of "project view" on all the results. Keep happy, all! Fran=C3=A7ois ------------- [1] https://github.com/pinard/org-grep