From 21c3775ff78a7de5dc0ab84dedad1ba604806b59 Mon Sep 17 00:00:00 2001 From: Ninjani Date: Sun, 31 Dec 2023 19:22:22 +0100 Subject: [PATCH] update README --- README.md | 76 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 07b6ef0..6c7273e 100644 --- a/README.md +++ b/README.md @@ -137,50 +137,55 @@ you got it from, if ever you feel like you're missing context. You can filter the annotations you want to modify or export using the following options in most gooseberry commands: ``` -FLAGS: - -i, --include-updated - Include annotations updated in given time range (instead of just created) + --from + Only annotations created after this date and time + + Can be colloquial, e.g. "last Friday 8pm" - -n, --not - Annotations NOT matching the given filter criteria + --before + Only annotations created before this date and time + + Can be colloquial, e.g. "last Friday 8pm" - -o, --or - (Use with --tags) Annotations matching ANY of the given tags + --uri + Only annotations with this pattern in their URL + + Doesn't have to be the full URL, e.g. "wikipedia" - -p, --page - Only page notes + --any + Only annotations with this pattern in their `quote`, `tags`, `text`, or `uri` - -a, --annotation - Only annotations (i.e exclude page notes) + --tags + Only annotations with ANY of these tags (use --and to match ALL) + --groups + Only annotations from these groups -OPTIONS: - --from - Only annotations created after this date and time + --exclude-tags + Only annotations without ANY of these tags - Can be colloquial, e.g. "last Friday 8pm" - --before - Only annotations created before this date and time + --quote + Only annotations that contain this text inside the text that was annotated - Can be colloquial, e.g. "last Friday 8pm" - --uri - Only annotations with this pattern in their URL + --text + Only annotations that contain this text in their textual body - Doesn't have to be the full URL, e.g. "wikipedia" [default: ] - --any - Only annotations with this pattern in their `quote`, `tags`, `text`, or `uri` [default: ] +-i, --include-updated + Include annotations updated in given time range (instead of just created) +-n, --not + Annotations NOT matching the given filter criteria - --tags ... - Only annotations with ALL of these tags (use --or to match ANY) + --and + (Use with --tags) Annotations matching ALL of the given tags - --exclude-tags ... - Only annotations without ANY of these tags +-p, --page + Only page notes - --quote - Only annotations that contain this text inside the text that was annotated [default: ] +-a, --annotation + Only annotations (i.e exclude page notes) - --text - Only annotations that contain this text in their textual body [default: ] +-f, --fuzzy + Toggle fuzzy search ``` ## Customization @@ -199,7 +204,7 @@ variable `$GOOSEBERRY_CONFIG` to point to the file. Authorize Hypothesis either by setting the `$HYPOTHESIS_NAME` and `$HYPOTHESIS_KEY` environment variables to your username and developer API token or by running `gooseberry config authorize`. -Gooseberry takes annotations from a given Hypothesis group which you can create/set with `gooseberry config group`. +Gooseberry takes annotations from given Hypothesis group(s) which you can create/set with `gooseberry config group`. ### Knowledge base @@ -241,6 +246,7 @@ The following keys can be used inside the template * `{{ text }}` - The text content of the annotation body * `tags` - A list of tags associated with the annotation. * `{{ group }}` - ID of Hypothesis group, +* `{{ group_name }}` - Name of Hypothesis group, * `references` - List of annotation IDs for any annotations this annotation references (e.g. is a reply to) * `{{ display_name }}` - Display name of annotation creator. This may not be set. @@ -348,12 +354,14 @@ The available options are: * BaseURI - Groups annotations by their base URI * Title - Group annotations by the title of their webpage/article/document * ID - Groups annotations by annotation ID. +* Group - Groups annotations by group ID. +* GroupName - Groups annotations by group name. Multiple hierarchies combined make folders and sub-folders, with the last entry defining pages. e.g. -`hierarchy = ["BaseURI", "Tag"]` would make a separate folder for each base_uri. Within each folder would be a page for each tag consisting of +`hierarchy = ["Group", "Tag"]` would make a separate folder for each group. Within each folder would be a page for each tag consisting of annotations marked with that tag. `hierarchy = ["Tag"]` gives the structure in the `mdbook` figure above, i.e. no folders, a page for each tag. @@ -371,6 +379,8 @@ The available options are: * BaseURI * Title * ID +* Group +* GroupName * Created * Updated