[1498] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

modnarrow: narrowing with/without the unclass

daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Thu Oct 29 18:17:16 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
Date: Fri, 5 Jun 2009 19:20:02 -0400 (EDT)
From: Geoffrey Thomas <geofft@MIT.EDU>
To: barnowl-dev@mit.edu
cc: Alexander M Vandiver <alexmv@mit.edu>, Joshua Pollack <fustflum@mit.edu>,
        Alejandro R Sedeno <asedeno@mit.edu>, Paul Baranay <pbaranay@mit.edu>

I have code to make BarnOwl's narrowing commands either include or not 
include the un- and .d classes, depending on the value of the "modnarrow" 
variable. The way it works is that modnarrow is set by default, and uses 
filters named modclass-barnowl etc., but if you unset it, narrowing 
functions will use class-barnowl etc., which does not include the un- and 
.d classes.

There's also support for M-m and M-M doing the opposite of the current 
modnarrow setting (i.e., the opposite of what M-n and M-M do), so you can 
quickly include or ignore variant classes in your narrow.

The code is available in the git branch

   git://geofft.scripts.mit.edu/barnowl modnarrow

(aka "cd /mit/geofft/owl; git log -p modnarrow" if that's easier), and 
I've compiled and installed it in /mit/geofft/barnowl/bin/barnowl for i386 
Linux if you want to play around with it.

Let me know if you have thoughts about merging it. The one change from 
existing behavior (as opposed to additional behavior) is that the meaning 
of the filter e.g. class-barnowl changes to not including the variant 
classes, which can affect you if you use that filter for coloring or 
something.

       Add the "modnarrow" variable.
       Add option to smartnarrow to temporarily invert modnarrow.

  commands.c  |   24 ++++++++++++++----------
  functions.c |   43 ++++++++++++++++++++++++++++---------------
  keys.c      |    2 ++
  variable.c  |    5 +++++
  4 files changed, 49 insertions(+), 25 deletions(-)

-- 
Geoffrey Thomas
geofft@mit.edu


home help back first fref pref prev next nref lref last post