From 47b8b962dedc1e171a5dea42ee51191796310adc Mon Sep 17 00:00:00 2001 From: Steph Ango <10565871+kepano@users.noreply.github.com> Date: Thu, 5 Jun 2025 11:42:17 -0700 Subject: [PATCH] Update Bases syntax to Obsidian 1.9.2 --- .obsidian/types.json | 3 +- Templates/Bases/Albums.base | 32 ++--- Templates/Bases/Backlinks.base | 29 ++++- Templates/Bases/Board games.base | 15 ++- Templates/Bases/Books.base | 72 ++++++----- Templates/Bases/Clippings.base | 24 ++-- Templates/Bases/Companies.base | 27 ++-- Templates/Bases/Daily.base | 63 +++++++-- Templates/Bases/Events.base | 29 ++--- Templates/Bases/Evergreen.base | 23 ++-- Templates/Bases/Everything.base | 24 ++++ Templates/Bases/Games.base | 32 ++--- Templates/Bases/Genre.base | 29 +++-- Templates/Bases/Journal.base | 12 +- Templates/Bases/Meetings.base | 24 ++-- Templates/Bases/Movies.base | 169 ++++++++++++++++++++----- Templates/Bases/People.base | 14 +- Templates/Bases/Place type.base | 24 ---- Templates/Bases/Places.base | 73 ++++++++--- Templates/Bases/Podcast episodes.base | 35 +++-- Templates/Bases/Podcasts.base | 12 +- Templates/Bases/Posts.base | 22 ++-- Templates/Bases/Products.base | 133 +++++++++++++------ Templates/Bases/Projects.base | 31 +++-- Templates/Bases/Ratings.base | 39 ++++++ Templates/Bases/Recipes.base | 31 +++-- Templates/Bases/Shows.base | 65 ++++++---- Templates/Bases/Trips.base | 45 ++++--- Templates/Director Template.md | 2 +- Templates/Monthly Note Template.md | 2 +- Templates/Movie Genre Template.md | 2 +- Templates/Movie Template.md | 2 - Templates/Music Genre Template.md | 2 +- Templates/Musician Template.md | 2 +- Templates/Place Type Template.md | 2 +- Templates/Podcast Episode Template.md | 1 - Templates/Podcast Template.md | 2 +- Templates/Restaurant Template.md | 1 - Templates/Show Episode Template.md | 2 - Templates/Show Template.md | 2 - Templates/Video Game Genre Template.md | 2 +- Templates/Video Game Template.md | 2 - 42 files changed, 772 insertions(+), 385 deletions(-) create mode 100644 Templates/Bases/Everything.base delete mode 100644 Templates/Bases/Place type.base create mode 100644 Templates/Bases/Ratings.base diff --git a/.obsidian/types.json b/.obsidian/types.json index 2517419..16b8b49 100644 --- a/.obsidian/types.json +++ b/.obsidian/types.json @@ -49,6 +49,7 @@ "loc": "multitext", "monthly-uses": "number", "runtime": "number", - "pages": "number" + "pages": "number", + "acquired": "date" } } \ No newline at end of file diff --git a/Templates/Bases/Albums.base b/Templates/Bases/Albums.base index 97b0397..f16c39a 100644 --- a/Templates/Bases/Albums.base +++ b/Templates/Bases/Albums.base @@ -1,21 +1,23 @@ filters: and: - - contains(property.categories, "[[Albums]]") - - not(contains(file.name, "Template")) -display: - file.name: Album - property.year: Year - property.artist: Artist - property.created: Added - property.rating: Rating - property.genre: Genre + - note.categories.contains(link("Albums")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Album + note.year: + displayName: Year + note.artist: + displayName: Artist + note.created: + displayName: Added + note.rating: + displayName: Rating + note.genre: + displayName: Genre views: - type: table name: Albums - filters: - and: - - contains(categories, concat("[[", this.file.name, "]]")) - - not(contains(file.name, "Template")) order: - file.name - artist @@ -26,7 +28,7 @@ views: name: Artist filters: and: - - contains(artist, concat("[[", this.file.name, "]]")) + - list(artist).contains(this) order: - file.name - artist @@ -37,7 +39,7 @@ views: name: Genre filters: and: - - contains(genre, concat("[[", this.file.name, "]]")) + - list(genre).contains(this) order: - file.name - artist diff --git a/Templates/Bases/Backlinks.base b/Templates/Bases/Backlinks.base index 757334e..4b05ae3 100644 --- a/Templates/Bases/Backlinks.base +++ b/Templates/Bases/Backlinks.base @@ -1,14 +1,31 @@ filters: and: - - linksTo(file.file, this.file.path) -display: - property.category: Category - file.name: Name - property.created: Created + - file.hasLink(this) +formulas: + Path: file.path +properties: + note.created: + displayName: Date + file.name: + displayName: Title + note.categories: + displayName: Categories views: - type: table name: Backlinks order: - file.name - - category + - categories - created + sort: + - column: note.created + direction: DESC + - type: table + name: Recent entries + order: + - file.name + - created + sort: + - column: note.created + direction: DESC + limit: 20 diff --git a/Templates/Bases/Board games.base b/Templates/Bases/Board games.base index a0d24f9..941b323 100644 --- a/Templates/Bases/Board games.base +++ b/Templates/Bases/Board games.base @@ -1,11 +1,14 @@ filters: and: - - contains(property.categories, "[[Board games]]") - - not(contains(file.name, "Template")) -display: - file.name: Game - property.rating: Rating - property.last: Last + - categories.contains(link("Board games")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Game + note.rating: + displayName: Rating + note.last: + displayName: Last views: - type: table name: Table diff --git a/Templates/Bases/Books.base b/Templates/Bases/Books.base index b17a346..1de950b 100644 --- a/Templates/Bases/Books.base +++ b/Templates/Bases/Books.base @@ -1,52 +1,56 @@ filters: and: - - contains(property.categories, "[[Books]]") - - not(contains(file.name, "Template")) -display: - file.name: Name - property.last: Last - property.rating: Rating - property.year: Year - property.genre: Genre - property.author: Author - property.created: Added + - categories.contains(link("Books")) + - '!file.name.contains("Template")' +properties: + note.author: + displayName: Author + file.name: + displayName: Name + note.year: + displayName: Year + note.genre: + displayName: Genre views: - type: table - name: Favorites + name: Books order: + - file.name - author - - file.name - - rating - - year - - created - - genre - - type: table - name: All - order: - - file.name + - length - year - rating + - topics - last - - genre - - type: table - name: Last read - filters: - and: - - not(empty(property.last)) - order: - - file.name - - year - - rating - - last - - genre sort: - - column: property.last + - column: file.name direction: ASC + - type: table + name: Top rated + order: + - file.name + - rating + - last + sort: + - column: note.last + direction: DESC - type: table name: Author filters: and: - - contains(author, concat("[[", this.file.name, "]]")) + - list(author).contains(this) + order: + - file.name + - year + - genre + sort: + - column: note.genre + direction: ASC + - type: table + name: Genre + filters: + and: + - list(genre).contains(this) order: - file.name - year diff --git a/Templates/Bases/Clippings.base b/Templates/Bases/Clippings.base index 9f9eec8..d191253 100644 --- a/Templates/Bases/Clippings.base +++ b/Templates/Bases/Clippings.base @@ -1,19 +1,19 @@ filters: and: - - contains(property.categories, "[[Clippings]]") - - not(contains(file.name, "Template")) -display: - file.name: Title - property.author: Author - property.created: Clipped - property.published: Published + - note.categories.contains(link("Clippings")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Title + note.author: + displayName: Author + note.created: + displayName: Clipped + note.published: + displayName: Published views: - type: table name: Clippings - filters: - and: - - contains(categories, concat("[[", this.file.name, "]]")) - - not(contains(file.name, "Template")) order: - file.name - author @@ -26,7 +26,7 @@ views: name: Author filters: and: - - contains(author, concat("[[", this.file.name, "]]")) + - list(author).contains(this) order: - file.name - author diff --git a/Templates/Bases/Companies.base b/Templates/Bases/Companies.base index 63c1be4..eaf3c4a 100644 --- a/Templates/Bases/Companies.base +++ b/Templates/Bases/Companies.base @@ -1,13 +1,22 @@ -display: - file.name: Company - property.url: Link +filters: + and: + - categories.contains(link("Companies")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Company + property.url: + displayName: Link + note.url: + displayName: URL + note.people: + displayName: People views: - type: table - name: Table - filters: - and: - - contains(categories, concat("[[", this.file.name, "]]")) - - not(contains(file.name, "Template")) + name: Companies order: - file.name - - url \ No newline at end of file + - url + - people + columnSize: + note.url: 239 diff --git a/Templates/Bases/Daily.base b/Templates/Bases/Daily.base index d59a91b..1b17435 100644 --- a/Templates/Bases/Daily.base +++ b/Templates/Bases/Daily.base @@ -1,28 +1,63 @@ filters: or: - - linksTo(file.file, this.file.path) - - contains(property.created, this.file.name) - - contains(property.last, this.file.name) - - contains(property.end, this.file.name) -display: - file.name: Entry - property.created: Created - property.categories: Categories + - file.name.contains(this.file.name) + - created == this.file.name + - start == this.file.name + - end == this.file.name + - file.links.contains(this.file) +properties: + file.name: + displayName: Entry + note.categories: + displayName: Categories + note.created: + displayName: Created + note.tags: + displayName: Tags views: - type: table name: Daily notes filters: and: - - not(taggedWith(file.file, "daily")) - - not(taggedWith(file.file, "monthly")) + - '!tags.contains("daily")' + - '!tags.contains("monthly")' + order: + - file.name + - created + - categories + - tags + sort: + - column: note.tags + direction: ASC + - column: note.created + direction: DESC + - column: file.name + direction: ASC + - column: note.categories + direction: ASC + - type: table + name: Monthly + filters: + and: + - '!tags.contains("daily")' + - '!tags.contains("monthly")' order: - file.name - categories - created sort: - - column: file.name + - column: note.created direction: ASC - - column: property.created + - type: table + name: Yearly + filters: + and: + - '!tags.contains("daily")' + - '!tags.contains("monthly")' + order: + - file.name + - categories + - created + sort: + - column: note.created direction: ASC - columnSize: - file.name: 263 diff --git a/Templates/Bases/Events.base b/Templates/Bases/Events.base index 27bda3f..86f5bc7 100644 --- a/Templates/Bases/Events.base +++ b/Templates/Bases/Events.base @@ -1,29 +1,22 @@ filters: and: - - contains(property.categories, "[[Events]]") - - not(contains(file.name, "Template")) -display: - file.name: Event - property.loc: Location + - categories.contains(link("Events")) + - '!file.name.contains("Template")' +properties: + note.end: + displayName: End + note.loc: + displayName: Location + note.start: + displayName: Start views: - type: table name: Events order: - file.name - - loc - start - - type: table - name: Type - filters: - and: - - contains(type, concat("[[", this.file.name, "]]")) - order: - - file.name + - end - loc - - start - columnSize: - file.name: 226 - property.loc: 199 sort: - - column: property.start + - column: note.start direction: DESC diff --git a/Templates/Bases/Evergreen.base b/Templates/Bases/Evergreen.base index f698b52..81f90da 100644 --- a/Templates/Bases/Evergreen.base +++ b/Templates/Bases/Evergreen.base @@ -1,13 +1,18 @@ -display: - file.name: Name - property.created: Created +filters: + and: + - tags.contains("0🌲") + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Name + note.created: + displayName: Created views: - type: table - name: Table - filters: - and: - - contains(property.tags, "0🌲") - - not(contains(file.name, "Template")) + name: Evergreen order: - file.name - - created \ No newline at end of file + - created + sort: + - column: note.created + direction: DESC diff --git a/Templates/Bases/Everything.base b/Templates/Bases/Everything.base new file mode 100644 index 0000000..284fb09 --- /dev/null +++ b/Templates/Bases/Everything.base @@ -0,0 +1,24 @@ +filters: + and: + - file.ext.contains("md") +properties: + file.name: + displayName: Name + note.categories: + displayName: Categories +views: + - type: table + name: Notes + order: + - file.name + - categories + - type: table + name: All files + order: + - file.name + - file.mtime + - file.path + - file.ext + sort: + - column: file.path + direction: ASC diff --git a/Templates/Bases/Games.base b/Templates/Bases/Games.base index 5fb31a4..d47a765 100644 --- a/Templates/Bases/Games.base +++ b/Templates/Bases/Games.base @@ -1,21 +1,23 @@ filters: and: - - contains(property.categories, "[[Games]]") - - not(contains(file.name, "Template")) -display: - file.name: Games - property.year: Year - property.maker: Maker - property.rating: Rating - property.genre: Genre - property.last: Last played + - note.categories.contains(link("Games")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Games + note.year: + displayName: Year + note.maker: + displayName: Maker + note.rating: + displayName: Rating + note.genre: + displayName: Genre + note.last: + displayName: Last played views: - type: table name: Games - filters: - and: - - contains(property.categories, "[[Games]]") - - not(contains(file.name, "Template")) order: - file.name - maker @@ -27,7 +29,7 @@ views: name: Studio filters: and: - - contains(maker, concat("[[", this.file.name, "]]")) + - list(maker).contains(this) order: - file.name - maker @@ -39,7 +41,7 @@ views: name: Genre filters: and: - - contains(genre, concat("[[", this.file.name, "]]")) + - list(genre).contains(this) order: - file.name - maker diff --git a/Templates/Bases/Genre.base b/Templates/Bases/Genre.base index 7249d4c..6c7cafa 100644 --- a/Templates/Bases/Genre.base +++ b/Templates/Bases/Genre.base @@ -1,17 +1,28 @@ filters: and: - - contains(genre, concat("[[", this.file.name, "]]")) -display: - property.categories: Categories - property.rating: Rating - property.last: Last - file.name: Name + - list(genre).contains(this) +properties: + note.rating: + displayName: Rating + note.categories: + displayName: Category + note.last: + displayName: Last + file.name: + displayName: Name views: - type: table - name: Table + name: Genre order: - file.name - - categories - rating + - categories - last - sort: [] + sort: + - column: note.rating + direction: DESC + - column: note.last + direction: DESC + columnSize: + file.name: 248 + note.categories: 170 diff --git a/Templates/Bases/Journal.base b/Templates/Bases/Journal.base index f763345..62ff59b 100644 --- a/Templates/Bases/Journal.base +++ b/Templates/Bases/Journal.base @@ -1,10 +1,12 @@ filters: and: - - contains(property.tags, "journal") - - not(contains(file.name, "Template")) -display: - file.name: Entry - property.created: Created + - '!file.name.contains("Template")' + - tags.contains("journal") +properties: + file.name: + displayName: Entry + note.created: + displayName: Created views: - type: table name: Table diff --git a/Templates/Bases/Meetings.base b/Templates/Bases/Meetings.base index 5ef7932..40325be 100644 --- a/Templates/Bases/Meetings.base +++ b/Templates/Bases/Meetings.base @@ -1,12 +1,16 @@ filters: and: - - contains(property.categories, "[[Meetings]]") - - not(contains(file.name, "Template")) -display: - property.date: Date - property.people: People - property.type: Type - file.name: Meeting + - note.categories.contains(link("Meetings")) + - '!file.name.contains("Template")' +properties: + note.date: + displayName: Date + note.people: + displayName: People + note.type: + displayName: Type + file.name: + displayName: Meeting views: - type: table name: Meetings @@ -16,18 +20,18 @@ views: - type - people sort: - - column: property.date + - column: note.date direction: ASC - type: table name: Person filters: and: - - contains(people, concat("[[", this.file.name, "]]")) + - list(people).contains(this) order: - file.name - date - type - people sort: - - column: property.date + - column: note.date direction: ASC diff --git a/Templates/Bases/Movies.base b/Templates/Bases/Movies.base index 42b4529..a499e45 100644 --- a/Templates/Bases/Movies.base +++ b/Templates/Bases/Movies.base @@ -1,28 +1,30 @@ filters: and: - - not(contains(file.name, "Template")) - - contains(property.categories, "[[Movies]]") -display: - file.name: Name - property.last: Last - property.rating: Rating - property.year: Year - property.director: Director - property.genre: Genre - property.cast: Cast + - categories.contains(link("Movies")) + - '!file.name.contains("Template")' +formulas: {} +properties: + file.name: + displayName: Name + note.last: + displayName: Last + note.rating: + displayName: Rating + note.year: + displayName: Year + note.director: + displayName: Director + note.genre: + displayName: Genre + note.cast: + displayName: Cast + note.scoreImdb: + displayName: IMDB + note.scoreRT: + displayName: RT + note.runtime: + displayName: Runtime views: - - type: table - name: Favorites - filters: - and: - - property.rating > 6 - order: - - file.name - - year - - rating - - last - - director - - genre - type: table name: All order: @@ -30,18 +32,77 @@ views: - year - rating - last + - plot + - genre + - director + sort: + - column: note.director + direction: ASC + - column: formula.test + direction: DESC + - column: note.plot + direction: ASC + columnSize: + note.plot: 233 + note.genre: 261 + - type: table + name: To-watch + filters: + and: + - empty(note.last) + - empty(note.rating) + order: + - file.name + - year + - scoreImdb + - runtime + - scoreRT + - watchlist - director - genre sort: + - column: note.scoreImdb + direction: DESC + - column: note.scoreRT + direction: DESC + - column: note.watchlist + direction: DESC - column: file.name direction: ASC - - column: property.director + - column: note.director direction: ASC + columnSize: + file.name: 283 + note.year: 68 + note.scoreRT: 67 + note.director: 238 + - type: table + name: Favorites + filters: + and: + - note.rating > 6 + order: + - file.name + - director + - year + - genre + - rating + - ratingImdb + - last + sort: + - column: file.name + direction: ASC + - column: note.ratingImdb + direction: DESC + columnSize: + file.name: 283 + note.director: 221 + note.year: 68 - type: table name: Last seen filters: and: - - not(empty(property.last)) + - note.last != "" order: - file.name - year @@ -50,14 +111,14 @@ views: - director - genre sort: - - column: property.last + - column: note.last direction: DESC - limit: 20 + limit: 15 - type: table name: Actor filters: and: - - contains(cast, concat("[[", this.file.name, "]]")) + - list(cast).contains(this) order: - file.name - year @@ -67,19 +128,69 @@ views: name: Genre filters: and: - - contains(genre, concat("[[", this.file.name, "]]")) + - list(genre).contains(this) order: - file.name + - rating - year - director + - last - genre + columnSize: + note.director: 166 + note.last: 115 + sort: + - column: note.last + direction: DESC + - column: note.genre + direction: ASC + - column: note.rating + direction: DESC - type: table name: Director filters: and: - - contains(director, concat("[[", this.file.name, "]]")) + - list(director).contains(this) order: - file.name - year + - rating + - last - cast - genre + sort: + - column: note.last + direction: DESC + - column: note.rating + direction: ASC + - column: note.year + direction: DESC + columnSize: + file.name: 186 + note.year: 79 + note.rating: 96 + note.genre: 243 + - type: table + name: Soundtrack + filters: + and: + - list(music).contains(this) + order: + - file.name + - year + - rating + - last + - cast + - genre + sort: + - column: note.last + direction: DESC + - column: note.rating + direction: ASC + - column: note.year + direction: DESC + columnSize: + file.name: 186 + note.year: 79 + note.rating: 96 + note.genre: 243 diff --git a/Templates/Bases/People.base b/Templates/Bases/People.base index ff963ec..349d943 100644 --- a/Templates/Bases/People.base +++ b/Templates/Bases/People.base @@ -1,13 +1,15 @@ filters: and: - - contains(property.categories, "[[People]]") - - not(contains(file.name, "Template")) -display: - file.name: Name - property.tags: Tags + - '!file.name.contains("Template")' + - note.tags.contains("people") +properties: + file.name: + displayName: Name + note.tags: + displayName: Tags views: - type: table name: Table order: - file.name - - tags \ No newline at end of file + - tags diff --git a/Templates/Bases/Place type.base b/Templates/Bases/Place type.base deleted file mode 100644 index 0091db8..0000000 --- a/Templates/Bases/Place type.base +++ /dev/null @@ -1,24 +0,0 @@ -filters: - and: - - contains(type, concat("[[", this.file.name, "]]")) -display: - property.rating: Rating - file.name: Name - property.loc: Location - property.last: Last -views: - - type: table - name: Default view - order: - - file.name - - rating - - last - - loc - sort: - - column: property.last - direction: DESC - - column: property.rating - direction: ASC - columnSize: - property.rating: 94 - property.loc: 270 diff --git a/Templates/Bases/Places.base b/Templates/Bases/Places.base index 8af274c..9a76ec8 100644 --- a/Templates/Bases/Places.base +++ b/Templates/Bases/Places.base @@ -1,52 +1,93 @@ filters: and: - - contains(property.categories, "[[Places]]") - - not(contains(file.name, "Template")) -display: - property.type: Type - property.rating: Rating - property.loc: Location - file.name: Name - property.last: Last + - note.categories.contains(link("Places")) + - '!file.name.contains("Template")' +properties: + note.type: + displayName: Type + note.rating: + displayName: Rating + note.loc: + displayName: Location + file.name: + displayName: Name + note.last: + displayName: Last views: - type: table name: Places order: - file.name + - rating - loc - type - - rating - last sort: - - column: property.loc + - column: note.last + direction: DESC + - column: note.type direction: ASC + - column: note.loc + direction: ASC + columnSize: + file.name: 162 + note.loc: 145 + note.type: 199 - type: table name: Location filters: and: - - contains(loc, concat("[[", this.file.name, "]]")) + - list(loc).contains(this) order: - file.name - type - rating - last sort: - - column: property.last + - column: note.rating direction: DESC - - column: property.loc + - column: note.last + direction: DESC + - column: note.loc direction: ASC + columnSize: + note.type: 197 - type: table name: Type filters: and: - - contains(type, concat("[[", this.file.name, "]]")) + - list(type).contains(this) order: - file.name - type - rating - last sort: - - column: property.last + - column: note.last direction: DESC - - column: property.loc + - column: note.loc direction: ASC + columnSize: + note.type: 153 + - type: table + name: Related + filters: + and: + - file.hasLink(this) + order: + - file.name + - rating + - loc + - type + - last + sort: + - column: note.last + direction: DESC + - column: note.type + direction: ASC + - column: note.loc + direction: ASC + columnSize: + file.name: 162 + note.loc: 145 + note.type: 199 diff --git a/Templates/Bases/Podcast episodes.base b/Templates/Bases/Podcast episodes.base index 3a127b8..0e8774d 100644 --- a/Templates/Bases/Podcast episodes.base +++ b/Templates/Bases/Podcast episodes.base @@ -1,14 +1,22 @@ filters: and: - - contains(property.categories, "[[Podcast episodes]]") - - not(contains(file.name, "Template")) -display: - file.name: Podcast - property.show: Show - property.guests: Guests - property.episode: Episode - property.rating: Rating - property.published: Published + - note.categories.contains(link("Podcast episodes")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Podcast + note.show: + displayName: Show + note.guests: + displayName: Guests + note.episode: + displayName: Episode + note.rating: + displayName: Rating + note.published: + displayName: Published + note.guest: + displayName: Guest views: - type: table name: All episodes @@ -19,23 +27,26 @@ views: - episode - rating - published + sort: + - column: note.published + direction: DESC - type: table name: Show filters: and: - - contains(show, concat("[[", this.file.name, "]]")) + - list(show).contains(this) order: - file.name - show - - guests - episode - rating - published + - guest - type: table name: Guest filters: and: - - contains(guests, concat("[[", this.file.name, "]]")) + - list(guest).contains(this) order: - file.name - show diff --git a/Templates/Bases/Podcasts.base b/Templates/Bases/Podcasts.base index 728b327..cd8d9a8 100644 --- a/Templates/Bases/Podcasts.base +++ b/Templates/Bases/Podcasts.base @@ -1,10 +1,12 @@ filters: and: - - contains(property.categories, "[[Podcasts]]") - - not(contains(file.name, "Template")) -display: - file.name: Podcast - property.host: Host + - note.categories.contains(link("Podcasts")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Podcast + note.host: + displayName: Host views: - type: table name: Table diff --git a/Templates/Bases/Posts.base b/Templates/Bases/Posts.base index b96b23a..a545ab5 100644 --- a/Templates/Bases/Posts.base +++ b/Templates/Bases/Posts.base @@ -1,15 +1,21 @@ -display: - file.name: Title - property.status: Status - property.published: Published +properties: + file.name: + displayName: Title + note.status: + displayName: Status + note.published: + displayName: Published views: - type: table - name: Table + name: All filters: and: - - contains(categories, concat("[[", this.file.name, "]]")) - - not(contains(file.name, "Template")) + - list(categories).contains(link("Posts")) + - '!file.name.contains("Template")' order: - file.name - status - - published \ No newline at end of file + - published + sort: + - column: note.published + direction: DESC diff --git a/Templates/Bases/Products.base b/Templates/Bases/Products.base index 47704af..3998c7a 100644 --- a/Templates/Bases/Products.base +++ b/Templates/Bases/Products.base @@ -1,88 +1,143 @@ filters: and: - - contains(property.categories, "[[Products]]") - - not(contains(file.name, "Template")) + - note.categories.contains(link("Products")) + - '!file.name.contains("Template")' formulas: - Usage: formula.Owned * monthly-uses - Owned: round(dateDiff(acquired, now()) / -2629746000) - Per use: concat("$", price / formula.Usage) -display: - property.monthly-uses: Uses/month - formula.Owned: Months - formula.Usage: Total uses - property.price: Price - property.rating: Rating - property.acquired: Acquired - property.type: Type - file.name: Product + Owned: ((now() - acquired) / 2629746000).round() + totalUses: monthlyUses * formula.Owned.round() + perUse: '"$" + (price / formula.totalUses).toFixed(2)' +properties: + note.monthlyUses: + displayName: Uses/month + formula.Owned: + displayName: Months + formula.totalUses: + displayName: Total uses + formula.perUse: + displayName: Per use + note.price: + displayName: Price + note.rating: + displayName: Rating + note.acquired: + displayName: Acquired + note.type: + displayName: Type + file.name: + displayName: Product views: - type: table name: Products order: - file.name + - acquired - rating - price - - acquired + - monthlyUses + - formula.perUse + - formula.Owned + - formula.totalUses - type columnSize: file.name: 209 - property.monthly-uses: 82 - formula.Usage: 115 + note.price: 78 + note.monthlyUses: 128 + formula.perUse: 78 + formula.Owned: 96 + formula.totalUses: 115 sort: - - column: file.name + - column: note.acquired + direction: DESC + - column: note.monthlyUses + direction: DESC + - column: note.rating + direction: DESC + - column: formula.Owned direction: ASC - - column: formula.Usage - direction: DESC - - column: property.acquired - direction: DESC - - column: property.monthly-uses - direction: DESC - type: table name: Cost per use + filters: + and: + - note.monthlyUses > 0 order: - file.name - rating - - formula.Per use - - monthly-uses + - formula.perUse + - monthlyUses - price - - formula.Usage + - formula.totalUses - formula.Owned - acquired - type columnSize: - formula.Per use: 77 - property.monthly-uses: 82 - formula.Usage: 115 + file.name: 209 + formula.perUse: 77 + note.monthlyUses: 82 + note.price: 78 + formula.totalUses: 122 + formula.Owned: 96 + sort: + - column: formula.totalUses + direction: DESC + - column: note.acquired + direction: DESC + - column: note.monthlyUses + direction: DESC + - type: table + name: Maker + filters: + and: + - list(maker).contains(this) + order: + - file.name + - rating + - formula.perUse + - monthlyUses + - price + - formula.totalUses + - formula.Owned + - acquired + - type + columnSize: + file.name: 209 + note.monthlyUses: 82 + formula.totalUses: 115 sort: - column: file.name direction: ASC - - column: formula.Usage + - column: formula.totalUses direction: DESC - - column: property.acquired + - column: note.acquired direction: DESC - - column: property.monthly-uses + - column: note.monthlyUses direction: DESC - type: table name: Type filters: and: - - contains(type, concat("[[", this.file.name, "]]")) + - list(type).contains(this) order: - file.name - rating + - formula.perUse + - monthlyUses - price + - formula.totalUses + - formula.Owned - acquired - type columnSize: file.name: 209 - property.monthly-uses: 82 - formula.Usage: 115 + note.monthlyUses: 82 + formula.totalUses: 115 sort: + - column: note.rating + direction: DESC - column: file.name direction: ASC - - column: formula.Usage + - column: formula.totalUses direction: DESC - - column: property.acquired + - column: note.acquired direction: DESC - - column: property.monthly-uses + - column: note.monthlyUses direction: DESC diff --git a/Templates/Bases/Projects.base b/Templates/Bases/Projects.base index dc8164b..eef5899 100644 --- a/Templates/Bases/Projects.base +++ b/Templates/Bases/Projects.base @@ -1,13 +1,18 @@ filters: and: - - contains(categories, concat("[[", this.file.name, "]]")) - - not(contains(file.name, "Template")) -display: - property.status: Status - property.url: URL - file.name: Name - property.type: Type - property.year: Year + - '!file.name.contains("Template")' + - note.categories.contains(link("Projects")) +properties: + note.status: + displayName: Status + note.url: + displayName: URL + file.name: + displayName: Name + note.type: + displayName: Type + note.year: + displayName: Year views: - type: table name: Table @@ -16,4 +21,12 @@ views: - type - year - status - - url \ No newline at end of file + - url + sort: + - column: note.status + direction: ASC + - column: note.year + direction: DESC + columnSize: + file.name: 209 + note.type: 199 diff --git a/Templates/Bases/Ratings.base b/Templates/Bases/Ratings.base new file mode 100644 index 0000000..a7497e4 --- /dev/null +++ b/Templates/Bases/Ratings.base @@ -0,0 +1,39 @@ +filters: + and: + - rating > 0 +properties: + note.rating: + displayName: Rating + note.last: + displayName: Last + file.name: + displayName: Name + note.categories: + displayName: Categories +views: + - type: table + name: Ratings + order: + - file.name + - rating + - last + - categories + sort: + - column: note.last + direction: DESC + columnSize: + file.name: 238 + - type: table + name: Recent + filters: + and: + - last > now() - "60d" + order: + - file.name + - rating + - last + - categories + sort: + - column: note.last + direction: DESC + limit: 100 diff --git a/Templates/Bases/Recipes.base b/Templates/Bases/Recipes.base index f4d5712..cfd4ad6 100644 --- a/Templates/Bases/Recipes.base +++ b/Templates/Bases/Recipes.base @@ -1,21 +1,30 @@ filters: and: - - contains(categories, concat("[[", this.file.name, "]]")) - - not(contains(file.name, "Template")) -display: - file.name: Name - property.author: Author - property.type: Type - property.ingredients: Ingredients - property.cuisine: Cuisine - property.rating: Rating + - note.categories.contains(link("Recipes")) + - '!file.name.contains("Template")' +properties: + file.name: + displayName: Name + note.author: + displayName: Author + note.type: + displayName: Type + note.ingredients: + displayName: Ingredients + note.cuisine: + displayName: Cuisine + note.rating: + displayName: Rating views: - type: table name: Recipes order: - file.name - type + - cuisine - author - ingredients - - cuisine - - rating \ No newline at end of file + - rating + columnSize: + note.type: 201 + note.cuisine: 174 diff --git a/Templates/Bases/Shows.base b/Templates/Bases/Shows.base index 93c9c0b..7e34762 100644 --- a/Templates/Bases/Shows.base +++ b/Templates/Bases/Shows.base @@ -1,28 +1,23 @@ filters: and: - - not(contains(file.name, "Template")) - - contains(property.categories, "[[Shows]]") -display: - file.name: Name - property.last: Last - property.rating: Rating - property.year: Year - property.director: Director - property.genre: Genre - property.cast: Cast + - '!file.name.contains("Template")' + - note.categories.contains(link("Shows")) +properties: + file.name: + displayName: Name + note.last: + displayName: Last + note.rating: + displayName: Rating + note.year: + displayName: Year + note.director: + displayName: Director + note.genre: + displayName: Genre + note.cast: + displayName: Cast views: - - type: table - name: Favorites - filters: - and: - - property.rating > 6 - order: - - file.name - - year - - rating - - last - - director - - genre - type: table name: All order: @@ -33,15 +28,29 @@ views: - director - genre sort: + - column: note.rating + direction: DESC - column: file.name direction: ASC - - column: property.director + - column: note.director direction: ASC + - type: table + name: Favorites + filters: + and: + - note.rating > 6 + order: + - file.name + - year + - rating + - last + - director + - genre - type: table name: Last seen filters: and: - - not(empty(property.last)) + - not(empty(note.last)) order: - file.name - year @@ -50,14 +59,14 @@ views: - director - genre sort: - - column: property.last + - column: note.last direction: DESC limit: 20 - type: table name: Actor filters: and: - - contains(cast, concat("[[", this.file.name, "]]")) + - list(cast).contains(this) order: - file.name - year @@ -67,7 +76,7 @@ views: name: Genre filters: and: - - contains(genre, concat("[[", this.file.name, "]]")) + - list(genre).contains(this) order: - file.name - year @@ -77,7 +86,7 @@ views: name: Director filters: and: - - contains(director, concat("[[", this.file.name, "]]")) + - list(director).contains(this) order: - file.name - year diff --git a/Templates/Bases/Trips.base b/Templates/Bases/Trips.base index 53c6b2a..6ff685c 100644 --- a/Templates/Bases/Trips.base +++ b/Templates/Bases/Trips.base @@ -1,27 +1,38 @@ filters: and: - - contains(property.categories, "[[Trips]]") - - not(contains(file.name, "Template")) -display: - property.loc: Location - property.start: Start - property.end: End - file.name: Trip + - note.categories.contains(link("Trips")) + - '!file.name.contains("Template")' +properties: + note.start: + displayName: Start + note.end: + displayName: End + file.name: + displayName: Trip + note.loc: + displayName: Location views: - type: table - name: Trips - order: - - file.name - - loc - - start - - end - - type: table - name: Related trips + name: All trips filters: and: - - contains(loc, concat("[[", this.file.name, "]]")) + - '!file.name.contains("Planning")' + order: + - file.name + - start + - end + - loc + sort: + - column: note.end + direction: DESC + columnSize: + file.name: 255 + - type: table + name: Location + filters: + and: + - list(loc).contains(this) order: - file.name - - loc - start - end diff --git a/Templates/Director Template.md b/Templates/Director Template.md index bd58663..df745c9 100644 --- a/Templates/Director Template.md +++ b/Templates/Director Template.md @@ -8,4 +8,4 @@ created: {{date}} --- ## Movies -![[Movies.base]] \ No newline at end of file +![[Movies.base#Director]] \ No newline at end of file diff --git a/Templates/Monthly Note Template.md b/Templates/Monthly Note Template.md index ff24d72..561a08c 100644 --- a/Templates/Monthly Note Template.md +++ b/Templates/Monthly Note Template.md @@ -7,4 +7,4 @@ tags: --- ## Entries -![[Daily.base]] +![[Daily.base#Monthly]] diff --git a/Templates/Movie Genre Template.md b/Templates/Movie Genre Template.md index d52f7fd..48ff41b 100644 --- a/Templates/Movie Genre Template.md +++ b/Templates/Movie Genre Template.md @@ -2,4 +2,4 @@ tags: - movies/genres --- -![[Movies.base]] \ No newline at end of file +![[Movies.base#Genre]] \ No newline at end of file diff --git a/Templates/Movie Template.md b/Templates/Movie Template.md index 0f09088..a21f6f6 100644 --- a/Templates/Movie Template.md +++ b/Templates/Movie Template.md @@ -17,5 +17,3 @@ tags: - references --- -[[{{date}}]] - diff --git a/Templates/Music Genre Template.md b/Templates/Music Genre Template.md index 6efbe97..f444531 100644 --- a/Templates/Music Genre Template.md +++ b/Templates/Music Genre Template.md @@ -3,4 +3,4 @@ tags: - music/genres --- -![[Albums.base]] \ No newline at end of file +![[Albums.base#Genre]] \ No newline at end of file diff --git a/Templates/Musician Template.md b/Templates/Musician Template.md index 0a895da..efe666d 100644 --- a/Templates/Musician Template.md +++ b/Templates/Musician Template.md @@ -7,4 +7,4 @@ created: {{date}} --- ## Albums -![[Albums.base#Related albums]] \ No newline at end of file +![[Albums.base#Artist]] \ No newline at end of file diff --git a/Templates/Place Type Template.md b/Templates/Place Type Template.md index 4cf159b..5a62cab 100644 --- a/Templates/Place Type Template.md +++ b/Templates/Place Type Template.md @@ -14,4 +14,4 @@ height: 400px ## Places -![[Places.base]] \ No newline at end of file +![[Places.base#Type]] \ No newline at end of file diff --git a/Templates/Podcast Episode Template.md b/Templates/Podcast Episode Template.md index ba59858..35be64b 100644 --- a/Templates/Podcast Episode Template.md +++ b/Templates/Podcast Episode Template.md @@ -13,4 +13,3 @@ rating: published: last: {{date}} --- -- \ No newline at end of file diff --git a/Templates/Podcast Template.md b/Templates/Podcast Template.md index 6d755a0..d78add5 100644 --- a/Templates/Podcast Template.md +++ b/Templates/Podcast Template.md @@ -8,4 +8,4 @@ tags: --- ## Episodes -![[Podcast episodes.base#Podcast episodes]] +![[Podcast episodes.base#Show]] diff --git a/Templates/Restaurant Template.md b/Templates/Restaurant Template.md index 9bfec5c..841a78d 100644 --- a/Templates/Restaurant Template.md +++ b/Templates/Restaurant Template.md @@ -11,4 +11,3 @@ tags: - places - restaurants --- -## [[{{date}}]] \ No newline at end of file diff --git a/Templates/Show Episode Template.md b/Templates/Show Episode Template.md index b4f1c8e..a40d1f8 100644 --- a/Templates/Show Episode Template.md +++ b/Templates/Show Episode Template.md @@ -11,5 +11,3 @@ tags: - episodes - references --- -## [[{{date}}]] - diff --git a/Templates/Show Template.md b/Templates/Show Template.md index d9738ef..ed2dd56 100644 --- a/Templates/Show Template.md +++ b/Templates/Show Template.md @@ -11,5 +11,3 @@ tags: - shows - references --- -## [[{{date}}]] - diff --git a/Templates/Video Game Genre Template.md b/Templates/Video Game Genre Template.md index e4a78f1..27dbedb 100644 --- a/Templates/Video Game Genre Template.md +++ b/Templates/Video Game Genre Template.md @@ -2,4 +2,4 @@ tags: - games/genres --- -![[Games.base]] \ No newline at end of file +![[Games.base#Genre]] \ No newline at end of file diff --git a/Templates/Video Game Template.md b/Templates/Video Game Template.md index 906d315..f0ed250 100644 --- a/Templates/Video Game Template.md +++ b/Templates/Video Game Template.md @@ -12,5 +12,3 @@ tags: - games - references --- -## [[{{date}}]] -