mirror of
https://github.com/signynt/virtual-content.git
synced 2026-07-22 05:46:44 +00:00
Updated readme to include info on dataview rules
This commit is contained in:
parent
6ea861f7e9
commit
a622f3090b
1 changed files with 9 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ This is especially useful if you have many files with the same dataview block. I
|
|||
- Lets you define rules using folderes, tags and properties
|
||||
- Rules can be set to include or exclude subfolders and subtags (recursive matching)
|
||||
- Multi-condition rules are possible, allowing you to define multiple conditions for one rule (using AND/OR)
|
||||
- Dataview filters can be used to create complex rules
|
||||
- Lets you select wether the "virtual content" gets added as a footer (end of file), a header (below properties) or in the sidebar
|
||||
- Lets you choose if all sidebar "virtual content" gets added to the same sidebar tab, or if it should be shown in it's own tab
|
||||
- Allows for "virtual content" to be defined in the plugin settings, or in a markdown file
|
||||
|
|
@ -116,6 +117,14 @@ 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.
|
||||
|
||||
Example dataview rule:
|
||||
```
|
||||
LIST FROM "References/Authors" WHERE startswith(file.name, "Test") OR startswith(file.name, "Example")
|
||||
```
|
||||
|
||||
## 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