Skip to content

Commit

Permalink
0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brenan committed Mar 7, 2021
1 parent c28f813 commit 0f1c8f5
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 5 deletions.
32 changes: 31 additions & 1 deletion docs/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,37 @@
Functions provide various procedures and operations beyond simple arithmetic and comparisons. A list of all function
references, sorted by general purpose, is shown below:

## Constructors

Constructors which create values.

##### `object(key1, value1, ...)`

Creates a new object with the given keys and values. Keys and values should alternate in the call, and keys should
always be strings/text.

```
object() => empty object
object("a", 6) => object which maps "a" to 6
object("a", 4, "c", "yes") => object which maps a to 4, and c to "yes"
```

##### `list(value1, value2, ...)`

Creates a new list with the given values in it.

```
list() => empty list
list(1, 2, 3) => list with 1, 2, and 3
list("a", "b", "c") => list with "a", "b", and "c"
```

---

## Objects, Arrays, and String Operations

Operations that manipulate values inside of container objects.

##### `contains(object|list|string, value)`

Checks if the given container type has the given value in it. This function behave slightly differently based on whether
Expand All @@ -26,7 +55,6 @@ the first argument is an object, a list, or a string.
contains("yes", "no") = false
```
##### `extract(object, key1, key2, ...)`
Pulls multiple fields out of an object, creating a new object with just those fields.
Expand Down Expand Up @@ -54,6 +82,8 @@ reverse(list(1, 2, 3)) = list(3, 2, 1)
reverse(list("a", "b", "c")) = list("c", "b", "a")
```
---
## String Operations
##### `regexmatch(pattern, string)`
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dataview",
"name": "Dataview",
"version": "0.1.8",
"version": "0.1.9",
"minAppVersion": "0.10.13",
"description": "Complex data views for the data-obsessed.",
"author": "Michael Brenan <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-dataview",
"version": "0.1.8",
"version": "0.1.9",
"description": "Advanced data views for Obsidian.md.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class DataviewPlugin extends Plugin {

this.addSettingTab(new DataviewSettingsTab(this.app, this));

console.log("Dataview Plugin - Version 0.1.8 Loaded");
console.log("Dataview Plugin - Version 0.1.9 Loaded");

if (!this.workspace.layoutReady) {
this.workspace.on("layout-ready", async () => this.prepareIndexes());
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"0.1.5": "0.10.13",
"0.1.6": "0.10.13",
"0.1.7": "0.10.13",
"0.1.8": "0.10.13"
"0.1.8": "0.10.13",
"0.1.9": "0.10.13"
}

0 comments on commit 0f1c8f5

Please sign in to comment.