From: Antony <spam+lisp_dot_linux@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: grep and sort
Date: Sun, 15 Aug 2010 07:29:48 -0700 [thread overview]
Message-ID: <i48tl3$nn2$1@speranza.aioe.org> (raw)
Hi
I'd like to find and sort all lines that contain 'TODO:'
Sorting needs to be based on content and ignore filename
rgrep works except for the sorting part
The results should be in a grep like buffer so I can click on them
If I can get some basic elisp code for this, that would be nice.
I don't know how to modify the regrep command.
Any pointers?
-Antony
PS:
Reason for sorting
I follow my TODO with a space and two digit number like TOOD: 01 or
TODO: 80 with the numbers representing priority. This has worked very
well as a task management mechanism for me in eclispe and visual studio.
next reply other threads:[~2010-08-15 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-15 14:29 Antony [this message]
2010-08-15 14:58 ` grep and sort David Kastrup
2010-08-16 9:22 ` Antony
[not found] ` <i4b4o3$e53$1@speranza.aioe.org>
2010-09-05 2:27 ` David Combs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='i48tl3$nn2$1@speranza.aioe.org' \
--to=spam+lisp_dot_linux@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.