Skip to content

Commit 47b8b96

Browse files
committed
Update Bases syntax to Obsidian 1.9.2
1 parent 1ca183e commit 47b8b96

42 files changed

Lines changed: 749 additions & 362 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.obsidian/types.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"loc": "multitext",
5050
"monthly-uses": "number",
5151
"runtime": "number",
52-
"pages": "number"
52+
"pages": "number",
53+
"acquired": "date"
5354
}
5455
}

Templates/Bases/Albums.base

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
filters:
22
and:
3-
- contains(property.categories, "[[Albums]]")
4-
- not(contains(file.name, "Template"))
5-
display:
6-
file.name: Album
7-
property.year: Year
8-
property.artist: Artist
9-
property.created: Added
10-
property.rating: Rating
11-
property.genre: Genre
3+
- note.categories.contains(link("Albums"))
4+
- '!file.name.contains("Template")'
5+
properties:
6+
file.name:
7+
displayName: Album
8+
note.year:
9+
displayName: Year
10+
note.artist:
11+
displayName: Artist
12+
note.created:
13+
displayName: Added
14+
note.rating:
15+
displayName: Rating
16+
note.genre:
17+
displayName: Genre
1218
views:
1319
- type: table
1420
name: Albums
15-
filters:
16-
and:
17-
- contains(categories, concat("[[", this.file.name, "]]"))
18-
- not(contains(file.name, "Template"))
1921
order:
2022
- file.name
2123
- artist
@@ -26,7 +28,7 @@ views:
2628
name: Artist
2729
filters:
2830
and:
29-
- contains(artist, concat("[[", this.file.name, "]]"))
31+
- list(artist).contains(this)
3032
order:
3133
- file.name
3234
- artist
@@ -37,7 +39,7 @@ views:
3739
name: Genre
3840
filters:
3941
and:
40-
- contains(genre, concat("[[", this.file.name, "]]"))
42+
- list(genre).contains(this)
4143
order:
4244
- file.name
4345
- artist

Templates/Bases/Backlinks.base

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
filters:
22
and:
3-
- linksTo(file.file, this.file.path)
4-
display:
5-
property.category: Category
6-
file.name: Name
7-
property.created: Created
3+
- file.hasLink(this)
4+
formulas:
5+
Path: file.path
6+
properties:
7+
note.created:
8+
displayName: Date
9+
file.name:
10+
displayName: Title
11+
note.categories:
12+
displayName: Categories
813
views:
914
- type: table
1015
name: Backlinks
1116
order:
1217
- file.name
13-
- category
18+
- categories
1419
- created
20+
sort:
21+
- column: note.created
22+
direction: DESC
23+
- type: table
24+
name: Recent entries
25+
order:
26+
- file.name
27+
- created
28+
sort:
29+
- column: note.created
30+
direction: DESC
31+
limit: 20

Templates/Bases/Board games.base

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
filters:
22
and:
3-
- contains(property.categories, "[[Board games]]")
4-
- not(contains(file.name, "Template"))
5-
display:
6-
file.name: Game
7-
property.rating: Rating
8-
property.last: Last
3+
- categories.contains(link("Board games"))
4+
- '!file.name.contains("Template")'
5+
properties:
6+
file.name:
7+
displayName: Game
8+
note.rating:
9+
displayName: Rating
10+
note.last:
11+
displayName: Last
912
views:
1013
- type: table
1114
name: Table

Templates/Bases/Books.base

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,56 @@
11
filters:
22
and:
3-
- contains(property.categories, "[[Books]]")
4-
- not(contains(file.name, "Template"))
5-
display:
6-
file.name: Name
7-
property.last: Last
8-
property.rating: Rating
9-
property.year: Year
10-
property.genre: Genre
11-
property.author: Author
12-
property.created: Added
3+
- categories.contains(link("Books"))
4+
- '!file.name.contains("Template")'
5+
properties:
6+
note.author:
7+
displayName: Author
8+
file.name:
9+
displayName: Name
10+
note.year:
11+
displayName: Year
12+
note.genre:
13+
displayName: Genre
1314
views:
1415
- type: table
15-
name: Favorites
16+
name: Books
1617
order:
17-
- author
1818
- file.name
19-
- rating
19+
- author
20+
- length
2021
- year
21-
- created
22-
- genre
22+
- rating
23+
- topics
24+
- last
25+
sort:
26+
- column: file.name
27+
direction: ASC
2328
- type: table
24-
name: All
29+
name: Top rated
2530
order:
2631
- file.name
27-
- year
2832
- rating
2933
- last
30-
- genre
34+
sort:
35+
- column: note.last
36+
direction: DESC
3137
- type: table
32-
name: Last read
38+
name: Author
3339
filters:
3440
and:
35-
- not(empty(property.last))
41+
- list(author).contains(this)
3642
order:
3743
- file.name
3844
- year
39-
- rating
40-
- last
4145
- genre
4246
sort:
43-
- column: property.last
47+
- column: note.genre
4448
direction: ASC
4549
- type: table
46-
name: Author
50+
name: Genre
4751
filters:
4852
and:
49-
- contains(author, concat("[[", this.file.name, "]]"))
53+
- list(genre).contains(this)
5054
order:
5155
- file.name
5256
- year

Templates/Bases/Clippings.base

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
filters:
22
and:
3-
- contains(property.categories, "[[Clippings]]")
4-
- not(contains(file.name, "Template"))
5-
display:
6-
file.name: Title
7-
property.author: Author
8-
property.created: Clipped
9-
property.published: Published
3+
- note.categories.contains(link("Clippings"))
4+
- '!file.name.contains("Template")'
5+
properties:
6+
file.name:
7+
displayName: Title
8+
note.author:
9+
displayName: Author
10+
note.created:
11+
displayName: Clipped
12+
note.published:
13+
displayName: Published
1014
views:
1115
- type: table
1216
name: Clippings
13-
filters:
14-
and:
15-
- contains(categories, concat("[[", this.file.name, "]]"))
16-
- not(contains(file.name, "Template"))
1717
order:
1818
- file.name
1919
- author
@@ -26,7 +26,7 @@ views:
2626
name: Author
2727
filters:
2828
and:
29-
- contains(author, concat("[[", this.file.name, "]]"))
29+
- list(author).contains(this)
3030
order:
3131
- file.name
3232
- author

Templates/Bases/Companies.base

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
display:
2-
file.name: Company
3-
property.url: Link
1+
filters:
2+
and:
3+
- categories.contains(link("Companies"))
4+
- '!file.name.contains("Template")'
5+
properties:
6+
file.name:
7+
displayName: Company
8+
property.url:
9+
displayName: Link
10+
note.url:
11+
displayName: URL
12+
note.people:
13+
displayName: People
414
views:
515
- type: table
6-
name: Table
7-
filters:
8-
and:
9-
- contains(categories, concat("[[", this.file.name, "]]"))
10-
- not(contains(file.name, "Template"))
16+
name: Companies
1117
order:
1218
- file.name
13-
- url
19+
- url
20+
- people
21+
columnSize:
22+
note.url: 239

Templates/Bases/Daily.base

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,63 @@
11
filters:
22
or:
3-
- linksTo(file.file, this.file.path)
4-
- contains(property.created, this.file.name)
5-
- contains(property.last, this.file.name)
6-
- contains(property.end, this.file.name)
7-
display:
8-
file.name: Entry
9-
property.created: Created
10-
property.categories: Categories
3+
- file.name.contains(this.file.name)
4+
- created == this.file.name
5+
- start == this.file.name
6+
- end == this.file.name
7+
- file.links.contains(this.file)
8+
properties:
9+
file.name:
10+
displayName: Entry
11+
note.categories:
12+
displayName: Categories
13+
note.created:
14+
displayName: Created
15+
note.tags:
16+
displayName: Tags
1117
views:
1218
- type: table
1319
name: Daily notes
1420
filters:
1521
and:
16-
- not(taggedWith(file.file, "daily"))
17-
- not(taggedWith(file.file, "monthly"))
22+
- '!tags.contains("daily")'
23+
- '!tags.contains("monthly")'
1824
order:
1925
- file.name
20-
- categories
2126
- created
27+
- categories
28+
- tags
2229
sort:
30+
- column: note.tags
31+
direction: ASC
32+
- column: note.created
33+
direction: DESC
2334
- column: file.name
2435
direction: ASC
25-
- column: property.created
36+
- column: note.categories
37+
direction: ASC
38+
- type: table
39+
name: Monthly
40+
filters:
41+
and:
42+
- '!tags.contains("daily")'
43+
- '!tags.contains("monthly")'
44+
order:
45+
- file.name
46+
- categories
47+
- created
48+
sort:
49+
- column: note.created
50+
direction: ASC
51+
- type: table
52+
name: Yearly
53+
filters:
54+
and:
55+
- '!tags.contains("daily")'
56+
- '!tags.contains("monthly")'
57+
order:
58+
- file.name
59+
- categories
60+
- created
61+
sort:
62+
- column: note.created
2663
direction: ASC
27-
columnSize:
28-
file.name: 263

Templates/Bases/Events.base

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
filters:
22
and:
3-
- contains(property.categories, "[[Events]]")
4-
- not(contains(file.name, "Template"))
5-
display:
6-
file.name: Event
7-
property.loc: Location
3+
- categories.contains(link("Events"))
4+
- '!file.name.contains("Template")'
5+
properties:
6+
note.end:
7+
displayName: End
8+
note.loc:
9+
displayName: Location
10+
note.start:
11+
displayName: Start
812
views:
913
- type: table
1014
name: Events
1115
order:
1216
- file.name
13-
- loc
1417
- start
15-
- type: table
16-
name: Type
17-
filters:
18-
and:
19-
- contains(type, concat("[[", this.file.name, "]]"))
20-
order:
21-
- file.name
18+
- end
2219
- loc
23-
- start
24-
columnSize:
25-
file.name: 226
26-
property.loc: 199
2720
sort:
28-
- column: property.start
21+
- column: note.start
2922
direction: DESC

0 commit comments

Comments
 (0)