Skip to content

Commit

Permalink
Update TargetEvaluation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrochlore authored May 20, 2021
1 parent 4ddbd40 commit c95202f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/TargetEvaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ According to the [input parameters](https://github.com/pyrochlore/obsidian-track
Simple tags in the format of '*#tagName*' in the file content are evaluated as a constant value (default value 1.0). You can override the value by assigning the key '**constValue**' in the code block. Use the tag name (the name after #) as the value of key '**searchTarget**' or use quoted tag ('**#tagName**') to make it work.

For tags in frontmatter (e.g. tags: meditation), it works like simple tags and will be evaluated as a constant value. For example,
---
\-\-\-
tags: tagName1, tagName2
---
\-\-\-
Set '**searchTarget**' to tagName1 or tagName2 will make the plugin do his work.

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.
Expand All @@ -20,9 +20,9 @@ If you don't want value-attached tags in your content, you can use the '**frontm

## frontmatter
This search type is used to query the key-value pairs in the front matter. If you don't want these values been seen in your article, the front matter would be the best place to record. For example,
---
\-\-\-
mood: 10
---
\-\-\-

## wiki
This search type helps you count wiki links in articles. For example,
Expand Down Expand Up @@ -53,7 +53,7 @@ separator: '@'
......
\`\`\`

More dvField example can be found [here](https://github.com/pyrochlore/obsidian-tracker/blob/master/examples/TestMultipleTargetsMultipleValues.md#multiple-values-in-text).
More dvField example can be found [here](https://github.com/pyrochlore/obsidian-tracker/blob/master/examples/TestMultipleTargesMultipleValues.md#multiple-values-in-dvfield-dataview-inline-field).

## table
This search type is a special one because it does not search over files in the specified folder. Instead, it looks into a given file, finds the specified table, and retrieves data from specified columns. Here is an example,
Expand All @@ -70,4 +70,4 @@ line:

In this case, "data/Tables" is the path of the file of interest. The number in the first brackets after the path ([0]) is the index of the table of interest in the file, starts from 0. And the number in the second brackets is the index of the column containing target data. If there are multiple values in table cells, you can provide a third index to identify them.

More table examples can be found [here](https://github.com/pyrochlore/obsidian-tracker/blob/master/examples/TestTable.md).
More table examples can be found [here](https://github.com/pyrochlore/obsidian-tracker/blob/master/examples/TestTable.md).

0 comments on commit c95202f

Please sign in to comment.