# HG changeset patch
# User Alexander Steinböck <z3ttacht@grml.org>
# Date 1202309460 -3600
# Node ID 3ca5503d0bfe831e21de31bdafb7a937570502cd
# Parent  6ec86ccc80cfe83d9bf6fa2f0644de069295bda0
Initial config for newsbeuter. Providing .newsbeuter/filter.

diff -r 6ec86ccc80cf -r 3ca5503d0bfe etc/skel/.newsbeuter/filter
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/skel/.newsbeuter/filter	Wed Feb 06 15:51:00 2008 +0100
@@ -0,0 +1,64 @@
+# Filename:      .newsbeuter/filter
+# Purpose:       Filter content of the various views in newsbeuter.
+# Authors:       grml-team (grml.org), (c) Alexander Steinböck <z3ttacht@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2.
+# Latest Change: Sun Feb 03 13:41:23 CET 2008 [z3ttacht]
+################################################################################
+# Usage:
+#   Define filters on the fly by hitting `F'.
+#   Predifined filters - like the bottom ones - can be selected by `f'.
+#   Ctrl-F clears any active filter again.
+# Note:
+#   Search is case-insensitive.
+#   Consider the definded filters as examples.
+################################################################################
+# Available Attributes {{{1
+# Attribute       Context        Meaning
+# --------------------------------------
+# title           article        article title
+# link            article        article link
+# author          article        article author
+# content         article        article body
+# date            article        publication date of the article
+# guid            article        a unique identifier of the article
+# unread          article        indicates whether the article has been read
+# enclosure_url   article        the URL of a possible enclosure (e.g. podcast file)
+# enclosure_type  article        the MIME type of the enclosure URL
+# flags           article        The set of flags of the article
+# feedtitle       feed, article  title of the feed
+# description     feed, article  feed description
+# feedlink        feed, article  link to the feed
+# feeddate        feed, article  publication date of the feed
+# rssurl          feed, article  RSS URL of the feed
+# unread_count    feed, article  number of unread articles in the feed
+# total_count     feed, article  total number of articles in the feed
+# tags            feed, article  all tags that are associated with the feed
+
+# Available Comparison Operators {{{1
+# Operator  Meaning
+# -----------------
+#   =     test for equality ("==" works, too)
+#   !=    test for inequality; logical negation of = operator
+#   =~    test whether regular expression matches
+#   !~    logical negation of the =~ operator
+#   <     less than
+#   >     greater than
+#   <=    less than or equal
+#   >=    greater than or equal
+#   #     contains; this operator matches if a word is contained in a
+#         list of space-separated words (useful for matching tags)
+#   !#    contains not; the negation of the # operator
+# }}}1
+
+# define-filter <description> <filterdefinition>
+  define-filter "unread articles" "unread_count > 0"
+
+# Expression can be grouped and connected via `AND' and `OR'.
+  define-filter "grml related articles" "feedtitle =~ \"grml\" or description =~ \"grml]\" or tags # \"grml\""
+
+  define-filter "zsh related articles" "( feedtitle =~ \"zsh\" or description =~ \"zsh\" )"
+
+  define-filter "flagged articles (article view only) " "flags =~ \"[aA-zZ]\""
+
+## END OF FILE ##################################################################

