-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a new field to each rule type: :comment. Since Lisp source comments are discarded on read, this provides a way for rule authors to attach a note, or docstring, to each rule.
- Loading branch information
Showing
12 changed files
with
210 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
2021-09-16 Michael Herstine <[email protected]> | ||
2021-10-08 Michael Herstine <[email protected]> | ||
|
||
Address Issue-18. | ||
This commit adds a new field to each rule type: :comment. Since | ||
Lisp source comments are discarded on read, this provides a way | ||
for rule authors to attach a note, or docstring, to each rule. | ||
|
||
2021-09-24 Michael Herstine <[email protected]> | ||
|
||
elfeed-score 1.0. | ||
The last obsolete symbols have been removed, with the exception of | ||
|
@@ -7,6 +14,8 @@ | |
|
||
2021-09-15 Michael Herstine <[email protected]> | ||
|
||
Fixing release workflow | ||
|
||
Remove all symbols made obsolete as of release 0.2.0. | ||
|
||
Revising test suite. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
#+DESCRIPTION: Gnus-style scoring for Elfeed | ||
#+AUTHOR: Michael Herstine | ||
#+EMAIL: [email protected] | ||
#+DATE: <2021-09-16 Thu 08:53> | ||
#+DATE: <2021-10-08 Fri 15:56> | ||
#+AUTODATE: t | ||
#+OPTIONS: toc:nil org-md-headline-style:setext *:t ^:nil | ||
#+STARTUP: overview | ||
|
@@ -23,27 +23,28 @@ While you can manually assign a score to an entry, you will likely find it more | |
For instance, here's a subset of my scoring file at the moment: | ||
|
||
#+BEGIN_SRC elisp | ||
;;; Elfeed score file -*- lisp -*- | ||
(("title" | ||
(:text "OPEN THREAD" :value -1000 :type S) | ||
(:text "raymond c\\(hen\\)?" :value 250 :type r) :tags (t .(@dev))) | ||
("content" | ||
(:text "type erasure" :value 500 :type s)) | ||
("title-or-content" | ||
(:text "california" 150 100 :type s) | ||
(:text "china" 150 100 :type w)) | ||
("feed" | ||
(:text "Essays in Idleness" :value 250 :type S :attr t) | ||
(:text "Irreal" :value 250 :type S :attr t) | ||
(:text "Julia Evans" :value 100 :type :type s :attr t) | ||
(:text "National Weather Service" :value 400 :type S :attr t) | ||
(:text "emacs-news – sacha chua" :value 350 :type S :attr t)) | ||
("authors" | ||
(:text "Jim Geraghty" :value 500 :type s)) | ||
("tag" | ||
(:tags (t . reddit-question) | ||
:value 750)) | ||
(mark -2500)) | ||
;;; Elfeed score file -*- lisp -*- | ||
(("title" | ||
(:text "OPEN THREAD" :value -1000 :type S) | ||
(:text "raymond c\\(hen\\)?" :value 250 :type r) :tags (t .(@dev))) | ||
("content" | ||
(:text "type erasure" :value 500 :type s)) | ||
("title-or-content" | ||
(:text "california" 150 100 :type s) | ||
(:text "china" 150 100 :type w)) | ||
("feed" | ||
(:text "Essays in Idleness" :value 250 :type S :attr t) | ||
(:text "Irreal" :value 250 :type S :attr t) | ||
(:text "Julia Evans" :value 100 :type :type s :attr t) | ||
(:text "National Weather Service" :value 400 :type S :attr t) | ||
(:text "emacs-news – sacha chua" :value 350 :type S :attr t :comment "Essential!")) | ||
("authors" | ||
(:text "Jim Geraghty" :value 500 :type s)) | ||
("tag" | ||
(:tags (t . reddit-question) | ||
:value 750 | ||
:comment "Add 750 points to any entry with a tag of reddit-question")) | ||
(mark -2500)) | ||
#+END_SRC | ||
|
||
Like Gnus scoring, this may look like Lisp code, but it is not directly eval'd. It will be read by the Lisp reader, so it must at least be a valid Lisp s-expression. | ||
|
@@ -72,7 +73,7 @@ The easiest way to install elfeed-score is [[https://github.com/melpa/melpa][MEL | |
If you would prefer to install the package manually, you can also download the Emacs package file on the GitHub releases [[https://github.com/sp1ff/elfeed-score/releases][page]] or from my personal [[https://www.unwoundstack/distros.html][page]]. Then say: | ||
|
||
#+BEGIN_SRC elisp | ||
(package-install-file "elfeed-score-1.0.0.tar") | ||
(package-install-file "elfeed-score-1.1.0.tar") | ||
#+END_SRC | ||
|
||
** Autotools Source Distributions | ||
|
@@ -81,8 +82,8 @@ You can also download Autotools source tarballs (again available either on the G | |
|
||
#+BEGIN_SRC bash | ||
cd /tmp | ||
curl -L --output elfeed-score-1.0.0.tar.gz https://github.com/sp1ff/elfeed-score/releases/download/1.0.0/elfeed-score-1.0.0.tar.gz | ||
tar xvf elfeed-score-1.0.0.tar.gz && cd elfeed-score-1.0.0 | ||
curl -L --output elfeed-score-1.1.0.tar.gz https://github.com/sp1ff/elfeed-score/releases/download/1.1.0/elfeed-score-1.1.0.tar.gz | ||
tar xvf elfeed-score-1.1.0.tar.gz && cd elfeed-score-1.1.0 | ||
export EMACSLOADPATH=$HOME/.emacs.d/elpa/elfeed-20200209.1942:$EMACSLOADPATH | ||
./configure | ||
make | ||
|
@@ -97,16 +98,16 @@ The unit tests require some macros defined by the [[https://github.com/skeeto/el | |
#+BEGIN_SRC bash | ||
cd /tmp | ||
git clone https://github.com/skeeto/elfeed.git | ||
curl -L --output=elfeed-score-1.0.0.tar.gz https://github.com/sp1ff/elfeed-score/releases/download/1.0.0/elfeed-score-1.0.0.tar.gz | ||
tar xvf elfeed-score-1.0.0.tar.gz && cd elfeed-score-1.0.0 | ||
export EMACSLOADPATH=/tmp/elfeed-score-1.0.0:/tmp/elfeed:/tmp/elfeed/tests:$EMACSLOADPATH | ||
curl -L --output=elfeed-score-1.1.0.tar.gz https://github.com/sp1ff/elfeed-score/releases/download/1.1.0/elfeed-score-1.1.0.tar.gz | ||
tar xvf elfeed-score-1.1.0.tar.gz && cd elfeed-score-1.1.0 | ||
export EMACSLOADPATH=/tmp/elfeed-score-1.1.0:/tmp/elfeed:/tmp/elfeed/tests:$EMACSLOADPATH | ||
./configure | ||
make | ||
make check | ||
sudo make install | ||
#+END_SRC | ||
|
||
Again, unless you already use =EMACSLOADPATH=, you'll need to set =EMACSLOADPATH= appropriately to your system, something like =EMACSLOADPATH=/tmp/elfeed-score-1.0.0:/tmp/elfeed:/tmp/elfeed/tests:/usr/share/emacs/25.2/lisp=. | ||
Again, unless you already use =EMACSLOADPATH=, you'll need to set =EMACSLOADPATH= appropriately to your system, something like =EMACSLOADPATH=/tmp/elfeed-score-1.1.0:/tmp/elfeed:/tmp/elfeed/tests:/usr/share/emacs/25.2/lisp=. | ||
** Building From Source | ||
|
||
Finally, you can of course just clone this repo & build there. I've started a [[https://github.com/sp1ff/elfeed-score/wiki][wiki]], whose intended audience are people looking to hack on elfeed-score, that includes build instructions. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
AC_PREREQ([2.69]) | ||
AC_INIT([elfeed-score], [1.0.0], [[email protected]], [elfeed-score], [https://github.com/sp1ff/elfeed-score]) | ||
AC_INIT([elfeed-score], [1.1.0], [[email protected]], [elfeed-score], [https://github.com/sp1ff/elfeed-score]) | ||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AC_CONFIG_SRCDIR([./elfeed-score.el]) | ||
AC_PROG_MAKE_SET | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@set UPDATED 16 September 2021 | ||
@set UPDATED-MONTH September 2021 | ||
@set EDITION 1.0.0 | ||
@set VERSION 1.0.0 | ||
@set UPDATED 8 October 2021 | ||
@set UPDATED-MONTH October 2021 | ||
@set EDITION 1.1.0 | ||
@set VERSION 1.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(define-package | ||
"elfeed-score" | ||
"1.0.0" | ||
"1.1.0" | ||
"Gnus-style scoring for Elfeed" | ||
'((emacs "26.1") (elfeed "3.3.0"))) |
Oops, something went wrong.