Skip to content

Commit 9a46bb4

Browse files
committed
Update documents
1 parent a2e1eca commit 9a46bb4

5 files changed

Lines changed: 30 additions & 27 deletions

File tree

README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
# Obsidian Tracker Plugin
22
![GitHub release](https://img.shields.io/github/v/release/pyrochlore/obsidian-tracker)
33

4-
This is an [Obsidian](https://obsidian.md/) plugin that helps you do tracking in daily notes. You can track:
5-
tags
6-
track the number of occurrences of in-line tags (e.g. #meditation)
7-
track the number of occurrences of front matter tags (e.g. tags: meditation)
8-
track the value after a tag (e.g. #weight:60.5kg)
9-
track the value after a nested inline tag (e.g. #finance/bank1/transfer:100000USD and the parent tag #finance/bank1)
10-
front matter key-value pairs
11-
track the value of a key in the front matter (e.g. mood: 10)
12-
wiki links
13-
track the number of occurrences of wiki links (e.g. [[journal]])
14-
text
15-
track the number of occurrences of texts (e.g. '⭐', 'love', or any text that matches your regex expression)
16-
track the value embedded in texts using regular expression (e.g. walk 1000 steps, weightlifting: 50)
17-
184
<img src="https://raw.githubusercontent.com/pyrochlore/obsidian-tracker/master/docs/images/Screenshot_v1.1.png" width="800">
195

6+
This is an [Obsidian](https://obsidian.md/) plugin that helps you do tracking in daily notes. You can:
7+
### tags
8+
- track the number of occurrences of in-line tags (e.g. #meditation)
9+
- track the number of occurrences of front matter tags (e.g. tags: meditation)
10+
- track the values after tags (e.g. #weight:60.5kg)
11+
- track the values after a nested inline tags (e.g. #finance/bank1/transfer:100000USD and the parent tag #finance/bank1)
12+
13+
### front matter key-value pairs
14+
- track the values of a key in the front matter (e.g. mood: 10)
15+
16+
### wiki links
17+
- track the number of occurrences of wiki links (e.g. [[journal]])
18+
19+
### text
20+
- track the number of occurrences of texts (e.g. '⭐', 'love', or any text that matches your [regex expression](https://github.com/pyrochlore/obsidian-tracker/blob/master/examples/TrackWithRegex.md))
21+
- track the values embedded in texts using regular expression (e.g. walk 1000 steps, weightlifting: 50)
22+
2023
## Installation
2124
### Install from Obsidian Settings Panel
2225
1. From Settings Panel (the icon at the bottom left corner) -> Options -> Community plugins, set 'safe mode' to off.
@@ -29,7 +32,7 @@ track the value embedded in texts using regular expression (e.g. walk 1000 steps
2932
Download the latest [release](https://github.com/pyrochlore/obsidian-tracker/releases). Extract and put the three files (main.js, manifest.json, styles.css) to folder '{{obsidian_vault}}/.obsidian/plugins/obsidian-tracker'.
3033

3134
## Usage
32-
1. Have some tags or texts you want to track in daily notes. Take a look at [Target Evaluation](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/TargetEvaluation.md) for what you can track and how targets are evaluated as numbers.
35+
1. Have some targets you want to track in daily notes. Take a look at [Target Evaluation](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/TargetEvaluation.md) for what you can track and how targets are evaluated as numbers.
3336
2. Add a new note for displaying the tracker.
3437
3. Add tracker code blocks manually or using commands. See [Commands](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/Commands.md) for more detail.
3538
4. Switch the document view mode to 'Preview', then the code block will get rendered.
@@ -47,12 +50,12 @@ This plugin was designed to read code blocks in [YAML format](https://en.wikiped
4750
Providing key '**searchType**' and '**searchTarget**' is the minimum requirement for a successful data collection and rendering. The value of key '**searchType**' can be '**tag**', '**frontmatter**', '**wiki**', or '**text**', and the cooresponding '**searchTarget**' is the name of a tag or a piece of text as your search target.
4851

4952
### Target Evaluation
50-
Depends on the searchType and the format of your targets, the target evaluation would be different. You can simply track the occurrences of a target or track value attached or embedded in it.
53+
Depends on the searchType and the format of your targets, the target evaluation would be different. You can simply track the occurrences of a target or track value attached/embedded in it.
5154

5255
For more information about the tag evaluation, please check documents for [Target Evaluation](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/TargetEvaluation.md)
5356

5457
### Rendering Output
55-
Currently, obsidian-tracker provides two kinds of rendering output, the default one 'line' for line chart and 'summary' for text description.
58+
Currently, obsidian-tracker provides two kinds of rendering output, the default one 'line' for line chart and 'summary' for a text description.
5659

5760
For 'line' output, the plugin will generate a customizable line chart. For 'summary' output, you can use [pre-defined template variables](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/TemplateVariables.md) in text template (key '**template**' under key '**summary**').
5861

@@ -65,8 +68,8 @@ Plugin settings 'default folder' and 'default date format, are removed in versio
6568
## Release Notes
6669
### v1.2.0
6770
- Enable using regular expression in text searching.
68-
- New search type 'frontmatter', searching numerical key-value pair in the front matter.
69-
- New search type 'wiki'.
71+
- New search type 'frontmatter', searching for key-value pair in the front matter.
72+
- New search type 'wiki', searching for wiki links.
7073
- Reduce package size.
7174

7275
### v1.1.0

docs/Commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Commands
22
To smooth the process of making trackers, we provide two commands, "Add Line Chart Tracker" and "Add Summary Tracker; Type Ctrl/Cmd+P to activate the command palette, then type "Tracker" to search it.
33

4-
After a command is selected, a code block will be added to the next line below your cursor. The added code block will contain the most frequently used keys. To see the complete list of input parameters and explanations, check [this document](InputParameters.md).
4+
After a command is selected, a code block will be added to the next line below your cursor. The added code block will contain the most frequently used keys. To see the complete list of input parameters and explanations, check [this document](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/InputParameters.md).
55

66
Now replace the fields for your case and start tracking.

docs/InputParameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ These key-value pairs are placed under the YAML root. They were used for collect
77
| Key | Default | Description |
88
|:--------:|:-------:|:-----------:|
99
| **searchType** | Empty string | The type of searchTarget |
10-
| **searchTarget** | Empty string | [The target to search](TargetEvaluation.md) |
10+
| **searchTarget** | Empty string | [The target to search](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/TargetEvaluation.md) |
1111
| **folder** | Root of this vault | The folder path of your daily notes |
1212
| **dateFormat** | "YYYY-MM-DD" | The date format of your daily note title |
1313
| **startDate** | Min date found | The start date for collecting data |
@@ -47,5 +47,5 @@ These key-value pairs should be placed under the key '**line**'.
4747
## Summary Related Parameters
4848
These key-value pairs should be placed under the key '**summary**'.
4949

50-
| **template** | Empty string | Text template (May include [template variables](TemplateVariables.md)) |
50+
| **template** | Empty string | Text template (you may embed [template variables](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/TemplateVariables.md) |
5151
| **style** | Empty string | css style for the rendered text block |

docs/TargetEvaluation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Target Evaluation
22

3-
According to the [input parameters](InputParameters.md), the provided search target will be counted or evaluated as a value. Obsidian-tracker supports four kinds of searchType: 'tag', 'frontmatter', 'wiki', and 'text', dealing with different types of searching condition.
3+
According to the [input parameters](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/InputParameters.md), the provided search target will be counted or evaluated as a value. Obsidian-tracker supports four kinds of searchType: 'tag', 'frontmatter', 'wiki', and 'text', dealing with different types of searching condition.
44

55
## tag
66

@@ -10,7 +10,7 @@ For tags in frontmatter (e.g. tags: meditation), it works like simple tags and w
1010
```
1111
tags: tagName1, tagName2
1212
```
13-
Set '**searchTarget**' to tagName1 or tagName2 do the work.
13+
Set '**searchTarget**' to tagName1 or tagName2 will make the plugin do his work.
1414

1515
In your content, a value can be attached to the tag in the format of '*#tagName:value*'. Note the value should be appended right after your tag and an extra colon without spaces. If a value is attached this way, the obsidian-tracker will automatically use the provided value instead of the constant one.
1616

@@ -28,4 +28,4 @@ mood: 10
2828
This search type helps you count wiki links in articles.
2929

3030
## text
31-
searchType 'text' is the most powerful one among all. If you simply provide text like 'love', the number of occurrences of tags will be counted. You can provide a regular expression to search for a very complicated target by wrapping it in single quotes. If you want to retrieve a value from it, use the group name in the expression. To see more detail, see [this case](TrackWithRegex.md).
31+
searchType 'text' is the most powerful one among all. If you simply provide text like 'love', the number of occurrences of tags will be counted. You can provide a regular expression to search for a very complicated target by wrapping it in single quotes. If you want to retrieve a value from it, use the group name in the expression. To see more detail, see [this case](https://github.com/pyrochlore/obsidian-tracker/blob/master/examples/TrackWithRegex.md).

docs/TemplateVariables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Template Variables in Summary
1+
# Template Variables
22

33
When you choose 'summary' as the output type (by placing a key 'summary'), you can embed template variables into the value of the 'template' key. In this manner, the plugin will do calculations according to the collected dataset, and render the output with variables replaced by calculated results.
44

@@ -18,4 +18,4 @@ Here are all the predefined template variables available for now.
1818
| {{median}} | Median value |
1919
| {{variance}} | Variance value |
2020

21-
Notice when doing calculations like sum or average, the missing values are ignored. You can set those missing values to zero by setting the value of key 'penalty' to zero. Moreover, if the key 'ignoreZeroValue' is assigned true, zero value will be ignored too. You can check these parameters [here](InputParameters.md)
21+
Notice when doing calculations like sum or average, the missing values are ignored. You can set those missing values to zero by setting the value of key 'penalty' to zero. Moreover, if the key 'ignoreZeroValue' is assigned true, zero value will be ignored too. You can check these parameters [here](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/InputParameters.md)

0 commit comments

Comments
 (0)