mirror of
https://github.com/signynt/virtual-content.git
synced 2026-07-22 05:46:44 +00:00
Updated readme to include another dataview example
This commit is contained in:
parent
20a8abbef7
commit
e7590f1901
1 changed files with 6 additions and 1 deletions
|
|
@ -119,12 +119,17 @@ Just select the "Sidebar" option in the settings, and use the "Open virtual cont
|
|||
|
||||
### Applying complex rules using Dataview
|
||||
You can use Dataview queries to create complex rules. For example, you can create a rule that applies to all notes in a specific folder, but only if they begin with a certain prefix.
|
||||
It is recommended to use the Dataview option for very complex rules, as it allows for more flexibility and power than the built-in multi-condition rules.
|
||||
|
||||
Example dataview rule:
|
||||
Example dataview rules:
|
||||
```
|
||||
LIST FROM "References/Authors" WHERE startswith(file.name, "Test") OR startswith(file.name, "Example")
|
||||
```
|
||||
|
||||
```
|
||||
LIST FROM "Tasks/Reports" WHERE (Tags = work AND status = "done") OR progress > 50
|
||||
```
|
||||
|
||||
## Limitations
|
||||
|
||||
Links in the markdown text work natively when in Reading mode, however they don't in Live Preview, so I've added a workaround that gets most functionality back. This means that `left click` works to open the link in the current tab, and `middle mouse` and `ctrl/cmd + left click` works to open the link in a new tab. Right click currently doesn't work.
|
||||
|
|
|
|||
Loading…
Reference in a new issue