You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
20
23
## Installation
21
24
### Install from Obsidian Settings Panel
22
25
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
29
32
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'.
30
33
31
34
## 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.
33
36
2. Add a new note for displaying the tracker.
34
37
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.
35
38
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
47
50
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.
48
51
49
52
### 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.
51
54
52
55
For more information about the tag evaluation, please check documents for [Target Evaluation](https://github.com/pyrochlore/obsidian-tracker/blob/master/docs/TargetEvaluation.md)
53
56
54
57
### 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.
56
59
57
60
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**').
58
61
@@ -65,8 +68,8 @@ Plugin settings 'default folder' and 'default date format, are removed in versio
65
68
## Release Notes
66
69
### v1.2.0
67
70
- 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.
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.
3
3
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).
5
5
6
6
Now replace the fields for your case and start tracking.
Copy file name to clipboardExpand all lines: docs/TargetEvaluation.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Target Evaluation
2
2
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.
4
4
5
5
## tag
6
6
@@ -10,7 +10,7 @@ For tags in frontmatter (e.g. tags: meditation), it works like simple tags and w
10
10
```
11
11
tags: tagName1, tagName2
12
12
```
13
-
Set '**searchTarget**' to tagName1 or tagName2 do the work.
13
+
Set '**searchTarget**' to tagName1 or tagName2 will make the plugin do his work.
14
14
15
15
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.
16
16
@@ -28,4 +28,4 @@ mood: 10
28
28
This search type helps you count wiki links in articles.
29
29
30
30
## 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).
Copy file name to clipboardExpand all lines: docs/TemplateVariables.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Template Variables in Summary
1
+
# Template Variables
2
2
3
3
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.
4
4
@@ -18,4 +18,4 @@ Here are all the predefined template variables available for now.
18
18
| {{median}} | Median value |
19
19
| {{variance}} | Variance value |
20
20
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