From ac711ce1086c9b375994e3171a11565d91422374 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 25 Dec 2022 00:33:08 +0100 Subject: [PATCH] Change naming of color_mapping to tag configuration --- README.md | 4 ++-- extract/extract.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 18702f7..cf68cfa 100644 --- a/README.md +++ b/README.md @@ -49,10 +49,10 @@ This should generally be an alright default but is here to be changed for exampl --- -The plugin contains a configuration sub-category of `color_mapping`: Here, you can define meaning for your highlight/annotation colors. For example, if you always highlight the main arguments and findings in orange and always highlight things you have to follow up on in blue, you can assign the meanings 'important' and 'todo' to them respectively as follows: +The plugin contains a configuration sub-category of `tags`: Here, you can define meaning for your highlight/annotation colors. For example, if you always highlight the main arguments and findings in orange and always highlight things you have to follow up on in blue, you can assign the meanings 'important' and 'todo' to them respectively as follows: ```ini -[[[color_mapping]]] +[[[tags]]] orange = "important" blue = "todo" ``` diff --git a/extract/extract.py b/extract/extract.py index 676ce46..47e9d36 100644 --- a/extract/extract.py +++ b/extract/extract.py @@ -136,7 +136,7 @@ class ExtractPlugin(PapersPlugin): "formatting", "{%quote_container> {quote} %}[{page}]{%note_container{newline}Note: {note} %}{%tag_container #{tag}%}", ) - self.color_mapping = settings.get("color_mapping", {}) + self.color_mapping = settings.get("tags", {}) def update_parser(self, subparsers, _): """Allow the usage of the pubs extract subcommand"""