-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add entry link override functionality.
- Loading branch information
Bob Nadler
committed
Nov 10, 2023
1 parent
1f68735
commit ab2ffe6
Showing
3 changed files
with
25 additions
and
9 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,5 +1,9 @@ | ||
#+TITLE: Changes | ||
|
||
*** 0.2.0 (2023-11-10) | ||
|
||
- Add entry link override functionality (=< text >= annotation). | ||
|
||
*** 0.1.0 (2023-09-22) | ||
|
||
- Initial release |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
;; Copyright (C) 2023 Robert Nadler <[email protected]> | ||
|
||
;; Author: Robert Nadler <[email protected]> | ||
;; Version: 0.1.0 | ||
;; Version: 0.2.0 | ||
;; Package-Requires: ((emacs "25.1") (elfeed "3.4.1")) | ||
;; Keywords: news | ||
;; URL: https://github.com/rnadler/elfeed-curate | ||
|
@@ -283,14 +283,17 @@ Add a hook to either `elfeed-tag-hooks` or `elfeed-untag-hooks`" | |
(authors-str (if (= (length author-list) 0) "" (concat " (" author-list ")"))) | ||
(other-groups (elfeed-curate-concat-other-groups entry group)) | ||
(groups-str (if (= (length other-groups) 0) "" (concat " **[" other-groups "]**")))) | ||
(insert (format "- [[%s][%s]]%s%s\n" | ||
(elfeed-entry-link entry) | ||
(elfeed-entry-title entry) | ||
authors-str groups-str)) | ||
(when (> (length annotation) 0) | ||
; Try to keep annotation content under the entry link. | ||
(insert (format " %s\n" | ||
(replace-regexp-in-string "\n" "\n " annotation)))))) | ||
(if (string-match "<\\(.*\\)>" annotation) | ||
(insert (format "- %s%s\n" (match-string 1 annotation) groups-str)) | ||
(progn | ||
(insert (format "- [[%s][%s]]%s%s\n" | ||
(elfeed-entry-link entry) | ||
(elfeed-entry-title entry) | ||
authors-str groups-str)) | ||
(when (> (length annotation) 0) | ||
; Try to keep annotation content under the entry link. | ||
(insert (format " %s\n" | ||
(replace-regexp-in-string "\n" "\n " annotation)))))))) | ||
|
||
(defun elfeed-curate-tag-to-group-name (tag) | ||
"Convert TAG to a human readable title string. | ||
|