[O] Org Grep news

2014-02-01 Thread François Pinard
Hi, gang. :-)

I took last two days as holidays, to let the pressure out a bit, and
used them to have mere fun with a few things, among which, Org Grep.

The tool used to have one main output, with Emacs commands to transform
that output one-way into two other formats.  I shuffled the code and
added more, so it can switch freely between those three formats, now
called views.  Buttons on the title line ease that switching.

1. The [browse] view is read-only, with a few extra Emacs commands.
2. The [edit] view is full-Org editable, and uses transient checklists.
3. The [tree] view regroups grep hits by directory, hierarchically.

Org Grep yields [browse] view initially.  When there are many hits, one
can switch to the [tree] view and go pruning, using C-x C-c C-w, say,
retaining only what is most promising.  Then switch back to either
[browse] or [edit] on the reduced set of hits.  Convenient for me! :-)

François

P.S. For the curious, it's still https://github.com/pinard/org-grep .



Re: [O] org-grep news

2014-01-04 Thread Alan Schmitt
Hi François,

François Pinard pin...@iro.umontreal.ca writes:

 This is about my little org-grep tool, available at:

https://github.com/pinard/org-grep

 Right out of the README: This tool allows for grepping files in a set
 of Org directories, formatting the results as a separate Org buffer.
 This buffer is assorted with a few specific navigation commands so it
 works a bit like M-x rgrep.

This is very nice. I'm using deft at the moment
(http://jblevins.org/projects/deft/) but I'm trying this as a
lightweight replacement. It looks promising.

Thanks a lot,

Alan



Re: [O] org-grep news

2014-01-04 Thread Bastien
François Pinard pin...@iro.umontreal.ca writes:

 This is about my little org-grep tool, available at:

https://github.com/pinard/org-grep

This is great -- thanks, and a happy new year!

-- 
 Bastien



[O] org-grep news

2014-01-03 Thread François Pinard
Hi, Org people.

First of all, let me wish a Much Nice Year to everybody here! :-)


This is about my little org-grep tool, available at:

   https://github.com/pinard/org-grep

Right out of the README: This tool allows for grepping files in a set
of Org directories, formatting the results as a separate Org buffer.
This buffer is assorted with a few specific navigation commands so it
works a bit like M-x rgrep.

When I announced it, a while ago, someone reported to me that it was not
finding anything at all for him.  As it worked well for me, and the
reporter did not pursue the exploration of the problem with me, I almost
forgot it.  Yesterday, I stumbled on a tiny bug visible to those using
org-grep all bare, with no configuration.  This is now corrected.
People hit by this problem could happily retry the latest version.

Yesterday, to cover one of my own needs, I added the capability to
simultaneously search for other files, would they be Org or not.  This
is implemented by offering hooks able to receive user-defined Emacs Lisp
functions.  These functions return shell code.  So, this capability
requires some Emacs Lisp fluency to be activated, yet maybe not that
much.  The README file contains a small and simple example.

While a few problems remain in the tool, it is already very usable in my
opinion, and surely useful to me daily.  By mere friendship, I feel like
recommending it a bit to my Org fellow friends!

François

P.S.  Who is not as pushy as he appears to be.  Forgive him! :-)