9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Jason Catena <jason.catena@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] nb—search and index notes in files by keyword
Date: Fri,  5 Mar 2010 22:52:10 -0600	[thread overview]
Message-ID: <d50d7d461003052052l2b57bad7v40d230f8adb1b4aa@mail.gmail.com> (raw)

http://swtools.wordpress.com/2010/03/05/nb%E2%80%94search-and-index-notes-in-files-by-keyword/

This isn't complicated, but it hit a sweet spot with me, since I like
to break up information into smallish chunks and index it by keyword.
It collects the keywords into one file per directory, and keeps a list
of all the indexes in a file in $HOME.  It searches all the existing
indexes for the given keyword, then reconstructs the index for the
current directory, so it presents slightly older results fast.  Its
relationship with plan9 is that it's written in rc, and outputs lines
in a /path/file:line format for right-clicking with acme.  I'm posting
it here because I find it really useful, and I wish I'd come up with
it years ago.  The more you put into it the more useful it becomes,
since it's got a fine degree of granularity (the particular keywords
attached to a bit of information) and composability of keywords (just
string a few grep and grep -v after the nb command).

Jason Catena



             reply	other threads:[~2010-03-06  4:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-06  4:52 Jason Catena [this message]
2010-03-06  9:32 ` Peter A. Cejchan
2010-03-07  4:30   ` [9fans] (no subject) lucio
2010-03-07  5:05     ` Anthony Sorace
2010-03-07 17:31       ` ron minnich
2010-03-07 17:43         ` erik quanstrom
2010-03-07 18:14           ` lucio
2010-03-07 19:25             ` cinap_lenrek
2010-03-07 17:42       ` lucio
2010-03-07 17:53         ` erik quanstrom
2010-03-07 18:06           ` lucio
2010-03-07 18:59         ` Iruata Souza
2010-03-07 19:26           ` lucio
2010-03-07 19:36             ` ron minnich
2010-03-07  9:14     ` Skip Tavakkolian
2010-03-07 11:04       ` lucio
2010-03-07 19:06       ` [9fans] Contrib indexes Lyndon Nerenberg
2010-03-07 19:29         ` lucio
2010-03-07 19:31           ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2010-03-07 19:51         ` Anthony Sorace
2010-03-08 21:36           ` Federico G. Benavento
2010-03-08 22:12             ` ron minnich
2010-03-08 21:33 [9fans] nb—search and index notes in files by keyword Steve Simon
2010-03-08 22:59 ` erik quanstrom
2010-03-08 23:29   ` Steve Simon
2010-03-08 23:36     ` erik quanstrom

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=d50d7d461003052052l2b57bad7v40d230f8adb1b4aa@mail.gmail.com \
    --to=jason.catena@gmail.com \
    --cc=9fans@9fans.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).