migrate to bases

This commit is contained in:
Steph Ango
2025-05-24 16:03:46 -07:00
parent 831af0dd26
commit b160d8bec5
32 changed files with 588 additions and 306 deletions

3
.obsidian/app.json vendored
View File

@@ -1,3 +1,4 @@
{ {
"attachmentFolderPath": "Attachments" "attachmentFolderPath": "Attachments",
"alwaysUpdateLinks": true
} }

View File

@@ -1,22 +1,33 @@
[ {
"file-explorer", "file-explorer": true,
"global-search", "global-search": true,
"switcher", "switcher": true,
"graph", "graph": true,
"backlink", "backlink": true,
"canvas", "outgoing-link": false,
"tag-pane", "tag-pane": true,
"page-preview", "page-preview": true,
"daily-notes", "daily-notes": true,
"templates", "templates": true,
"note-composer", "note-composer": true,
"command-palette", "command-palette": true,
"editor-status", "slash-command": false,
"bookmarks", "editor-status": true,
"markdown-importer", "markdown-importer": true,
"zk-prefixer", "zk-prefixer": true,
"random-note", "random-note": true,
"outline", "outline": true,
"workspaces", "word-count": false,
"file-recovery" "slides": false,
] "audio-recorder": false,
"workspaces": true,
"file-recovery": true,
"publish": false,
"sync": false,
"canvas": true,
"properties": false,
"bookmarks": true,
"footnotes": false,
"bases": true,
"webviewer": false
}

View File

@@ -4,15 +4,26 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id display:
file.link as Album, file.name: Album
artist as Artist, property.year: Year
rating as Rating, property.artist: Artist
year as Year, property.created: Added
genre as Genre property.rating: Rating
where property.genre: Genre
contains(categories,this.file.link) and views:
!contains(file.name, "Template") - type: table
sort rating desc name: Table
filters:
and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
order:
- file.name
- artist
- rating
- year
- genre
``` ```

View File

@@ -3,12 +3,21 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id display:
file.link as Game, file.name: Game
rating as Rating, property.rating: Rating
last as Last property.last: Last
where views:
contains(categories,this.file.link) and - type: table
!contains(file.name,"Template") name: Table
filters:
and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
order:
- file.name
- rating
- last
``` ```

View File

@@ -3,16 +3,4 @@ tags:
- categories - categories
--- ---
```dataview ![[Books.base]]
table without id
file.link as Book,
author as Author,
year as Year,
rating as Rating,
created as Added,
genre as Genre
where
contains(categories,this.file.link) and
!contains(file.name, "Template")
sort rating desc, date asc
```

View File

@@ -3,14 +3,25 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id display:
file.link as Title, file.name: Title
author as Author, property.author: Author
created as Clipped, property.created: Clipped
published as Published property.published: Published
where views:
contains(categories,this.file.link) and - type: table
!contains(file.name, "Template") name: Table
sort clipped desc filters:
``` and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
order:
- file.name
- author
- created
- published
sort:
- column: clipped
direction: DESC
```

View File

@@ -3,12 +3,19 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id display:
file.link as Company, file.name: Company
url as Link property.url: Link
where views:
contains(categories,this.file.link) - type: table
and !contains(file.name, "Template") name: Table
sort file.mtime desc filters:
``` and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
order:
- file.name
- url
```

View File

@@ -3,10 +3,23 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id filters:
file.link as Event and:
where - contains(categories, concat("[[", this.file.name, "]]"))
contains(categories,this.file.link) and - not(contains(file.name, "Template"))
!contains(file.name,"Template") display:
file.name: Event
property.type: Type
property.start: Start
property.loc: Location
views:
- type: table
name: Table
order:
- file.name
- loc
- type
- start
``` ```

View File

@@ -4,12 +4,18 @@ tags:
--- ---
An evergreen note is an idea. It doesn't have to be something that I agree with, but something is [[Composability|composable]]. In a way, every idiom is a kind of evergreen idea. An evergreen note is an idea. It doesn't have to be something that I agree with, but something is [[Composability|composable]]. In a way, every idiom is a kind of evergreen idea.
```dataview ```base
table without id display:
file.link as Name, file.name: Name
created as Created property.created: Created
from #0🌲 views:
where - type: table
!contains(file.name,"Template") name: Table
sort created desc filters:
and:
- contains(property.tags, "0🌲")
- not(contains(file.name, "Template"))
order:
- file.name
- created
``` ```

View File

@@ -3,16 +3,27 @@ tags:
- categories - categories
--- ---
```dataview
table without id ```base
file.link as Game, display:
maker as Maker, file.name: Book
genre as Genre, property.year: Year
year as Year, property.maker: Maker
rating as Rating, property.rating: Rating
last as "Last played" property.genre: Genre
where property.last: Last played
contains(categories,this.file.link) and views:
!contains(file.name, "Template") - type: table
sort last desc name: Table
filters:
and:
- contains(property.categories, "[[Games]]")
- not(contains(file.name, "Template"))
order:
- file.name
- maker
- genre
- year
- rating
- last
``` ```

View File

@@ -3,12 +3,19 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id filters:
file.link as Entry, and:
created as Created - contains(property.tags, "journal")
from #journal - not(contains(file.name, "Template"))
where display:
!contains(file.name,"Template") file.name: Entry
sort created desc property.created: Created
``` views:
- type: table
name: Table
order:
- file.name
- created
```

View File

@@ -3,15 +3,24 @@ tags:
- categories - categories
--- ---
```dataview
table without id ```base
file.link as Meeting, filters:
type as Type, and:
people as People, - contains(categories, concat("[[", this.file.name, "]]"))
date as Date - not(contains(file.name, "Template"))
where display:
contains(categories,this.file.link) and file.name: Meeting
!contains(file.name,"Template") property.type: Type
sort date desc property.people: People
limit 100 property.date: Date
``` views:
- type: table
name: Table
order:
- file.name
- type
- people
- date
```

View File

@@ -4,31 +4,11 @@ tags:
--- ---
## Favorites ## Favorites
```dataview ![[Movies.base#Favorites]]
table without id
file.link as Movie,
year as Year,
rating as Rating,
last as "Last seen",
director as Director
where
contains(categories,this.file.link)
and rating > 6
sort rating desc
```
## Last seen ## Last seen
```dataview ![[Movies.base#Last seen]]
table without id
file.link as Movie,
year as Year,
rating as Rating,
last as "Last seen",
director as Director
where
contains(categories,this.file.link) and
last != "" and !contains(file.name, "Template")
sort last desc
limit 100
```

View File

@@ -3,12 +3,19 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id filters:
file.link as Person, and:
filter(file.tags, (t) => t !="#people") as Tags - contains(property.categories, "[[People]]")
where - not(contains(file.name, "Template"))
contains(categories,this.file.link) and display:
!contains(file.name,"Template") file.name: Name
sort file.name asc property.tags: Tags
views:
- type: table
name: Table
order:
- file.name
- tags
``` ```

View File

@@ -11,15 +11,26 @@ height:400px
## Places ## Places
```dataview ```base
table without id filters:
file.link as Place, and:
loc as Location, - contains(property.categories, "[[Places]]")
type as Type, - not(contains(file.name, "Template"))
rating as Rating display:
where property.type: Type
contains(categories,this.file.link) and property.rating: Rating
!contains(file.tags,"places/types") and property.loc: Location
!contains(file.name,"Template") file.name: Name
sort last desc views:
``` - type: table
name: Table
order:
- file.name
- loc
- type
- rating
sort:
- column: property.loc
direction: ASC
```

View File

@@ -3,16 +3,26 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id display:
link(file.link, "Ep. " + string(episode)) as Episode, file.name: Podcast
show as Show, property.show: Show
guests as Guest, property.guests: Guests
episode as Ep, property.episode: Episode
rating as Rating, property.rating: Rating
published as "Published" property.published: Published
where views:
contains(categories,this.file.link) and - type: table
!contains(file.name, "Template") name: Table
sort published desc filters:
and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
order:
- file.name
- show
- guests
- episode
- rating
- published
``` ```

View File

@@ -2,11 +2,19 @@
related: "[[Podcast episodes]]" related: "[[Podcast episodes]]"
--- ---
```dataview ```base
table without id display:
file.link as Podcast, host as "Host" file.name: Podcast
where property.host: Host
contains(categories,this.file.link) and views:
!contains(file.name,"Template") - type: table
sort file.name asc name: Table
``` filters:
and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
order:
- file.name
- host
```

View File

@@ -2,13 +2,22 @@
tags: tags:
- categories - categories
--- ---
```dataview
table without id ```base
file.link as Title, display:
status as Status, file.name: Title
published as Published property.status: Status
where property.published: Published
contains(categories,this.file.link) and views:
!contains(file.name,"Template") - type: table
sort published desc name: Table
filters:
and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
order:
- file.name
- status
- published
``` ```

View File

@@ -3,19 +3,4 @@ tags:
- categories - categories
--- ---
```dataview ![[Products.base]]
table without id
file.link as Product,
rating as Rating,
acquired as Acquired,
type as Type,
maker as Maker
where
!contains(file.name, "Template") and
contains(categories, [[Products]])
sort
acquired desc,
file.name,
rating desc,
file.mtime desc
```

View File

@@ -3,14 +3,25 @@ tags:
- categories - categories
--- ---
```dataview ```base
table filters:
type as Type, and:
year as Year, - contains(categories, concat("[[", this.file.name, "]]"))
status as Status, - not(contains(file.name, "Template"))
url as URL display:
where property.status: Status
contains(categories,this.file.link) and property.url: URL
!contains(file.name,"Template") file.name: Name
sort year desc property.type: Type
property.year: Year
views:
- type: table
name: Table
order:
- file.name
- type
- year
- status
- url
``` ```

View File

@@ -3,11 +3,28 @@ tags:
- categories - categories
--- ---
```dataview
table without id ```base
file.link as Recipe, type as Type, author as Author, ingredients as Ingredients, rating as Rating filters:
where and:
contains(categories,this.file.link) and - contains(categories, concat("[[", this.file.name, "]]"))
!contains(file.name,"Template") - not(contains(file.name, "Template"))
sort created desc display:
``` file.name: Name
property.author: Author
property.type: Type
property.ingredients: Ingredients
property.cuisine: Cuisine
property.rating: Rating
views:
- type: table
name: Table
order:
- file.name
- type
- author
- ingredients
- cuisine
- rating
```

View File

@@ -2,14 +2,21 @@
tags: tags:
- categories - categories
--- ---
```base
filters:
and:
- contains(categories, concat("[[", this.file.name, "]]"))
- not(contains(file.name, "Template"))
display:
file.name: Name
property.rating: Rating
property.last: Last
views:
- type: table
name: Table
order:
- file.name
- rating
- last
```dataview ```
table without id
file.link as Show,
rating as Rating,
last as "Last seen"
where
contains(categories, this.file.link) and
!contains(file.name, "Template")
sort last desc
```

View File

@@ -3,15 +3,22 @@ tags:
- categories - categories
--- ---
```dataview ```base
table without id filters:
file.link as Trip, and:
loc as Location, - contains(categories, concat("[[", this.file.name, "]]"))
start as Start, - not(contains(file.name, "Template"))
end as End display:
where file.name: Name
contains(categories,this.file.link) and property.loc: Location
!contains(file.name, "Template") and property.end: End
!contains(file.name, "Planning") property.start: Start
sort start desc views:
- type: table
name: Table
order:
- file.name
- loc
- start
- end
``` ```

View File

@@ -4,12 +4,4 @@ tags:
--- ---
## Notes ## Notes
```dataview ![[Daily.base]]
list
where
!contains(file.tags, "daily") and
contains(file.outlinks, this.file.link) or
contains(string(file.frontmatter), string(dateformat(this.file.day,"yyyy-MM-dd")))
sort file.ctime asc
limit 50
```

View File

@@ -1,19 +1,3 @@
Analysis of cost per use, see [[Buy wisely]] Analysis of cost per use, see [[Buy wisely]]
```dataview ![[Products.base#Cost per use]]
table without id
file.link as Product,
rating as Rating,
"$" + round(price/(monthly-uses*((date(today) - acquired).months)),2) as "Per use",
monthly-uses as "Uses/month",
dateformat(acquired, "yyyy-MM") as Acquired,
round((date(today) - acquired).months,1) as "Months",
"$" + string(round(price, 2)) as Price,
round(monthly-uses*((date(today) - acquired).months),0) as "Total uses",
type as Type
where
monthly-uses > 0 and
contains(categories, [[Products]])
sort
round(price/(monthly-uses*((date(today) - acquired).months)),2) asc
```

View File

@@ -8,16 +8,7 @@ created: 2023-09-12
--- ---
## Books ## Books
```dataview ![[Books.base#Author]]
table without id
file.link as Title,
year as Year,
rating as Rating
where
contains(categories,[[Books]]) and
contains(author,this.file.link)
sort rating desc
```
# Clippings # Clippings

View File

@@ -6,13 +6,4 @@ tags:
--- ---
## Movies ## Movies
```dataview ![[Movies.base#Actor]]
table without id
file.link as Movie,
year as Year,
rating as Rating
where
contains(categories,[[Movies]]) and
contains(cast,this.file.link)
sort rating desc
```

53
Templates/Books.base Normal file
View File

@@ -0,0 +1,53 @@
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
views:
- type: table
name: Favorites
order:
- author
- file.name
- rating
- year
- created
- genre
- type: table
name: All
order:
- file.name
- year
- rating
- last
- genre
- type: table
name: Last read
filters:
and:
- not(empty(property.last))
order:
- file.name
- year
- rating
- last
- genre
sort:
- column: property.last
direction: ASC
- type: table
name: Author
filters:
and:
- contains(author, concat("[[", this.file.name, "]]"))
order:
- file.name
- year
- genre

View File

@@ -4,12 +4,4 @@ tags:
--- ---
## Notes ## Notes
```dataview ![[Daily.base]]
list
where
!contains(file.tags, "daily") and
contains(file.outlinks, this.file.link) or
contains(string(file.frontmatter), string(dateformat(this.file.day,"yyyy-MM-dd")))
sort file.ctime asc
limit 50
```

20
Templates/Daily.base Normal file
View File

@@ -0,0 +1,20 @@
filters:
or:
- linksTo(file.file, this.file.path)
- contains(property.created, this.file.name)
- contains(property.last, this.file.name)
views:
- type: table
name: Day
order:
- file.name
sort:
- column: property.created
direction: ASC
- type: table
name: Daily note
order:
- file.name
sort:
- column: property.created
direction: ASC

58
Templates/Movies.base Normal file
View File

@@ -0,0 +1,58 @@
filters:
and:
- contains
- not(contains(file.name, "Template"))
display:
file.name: Name
property.last: Last
property.rating: Rating
property.year: Year
property.director: Director
property.genre: Genre
views:
- type: table
name: Favorites
filters:
and:
- property.rating > 6
order:
- file.name
- year
- rating
- last
- director
- genre
- type: table
name: All
order:
- file.name
- year
- rating
- last
- director
- genre
- type: table
name: Last seen
filters:
and:
- not(empty(property.last))
order:
- file.name
- year
- rating
- last
- director
- genre
sort:
- column: property.last
direction: ASC
- type: table
name: Actor
filters:
and:
- contains(cast, concat("[[", this.file.name, "]]"))
order:
- file.name
- year
- director
- genre

65
Templates/Products.base Normal file
View File

@@ -0,0 +1,65 @@
filters:
and:
- contains(category, "[[Products]]")
- not(contains(file.name, "Template"))
- property.monthly-uses > 0
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
views:
- type: table
name: Products
order:
- file.name
- rating
- price
- acquired
- type
columnSize:
file.name: 209
property.monthly-uses: 82
formula.Usage: 115
sort:
- column: file.name
direction: ASC
- column: formula.Usage
direction: DESC
- column: property.acquired
direction: DESC
- column: property.monthly-uses
direction: DESC
- type: table
name: Cost per use
order:
- file.name
- rating
- formula.Per use
- monthly-uses
- price
- formula.Usage
- formula.Owned
- acquired
- type
columnSize:
formula.Per use: 77
property.monthly-uses: 82
formula.Usage: 115
sort:
- column: file.name
direction: ASC
- column: formula.Usage
direction: DESC
- column: property.acquired
direction: DESC
- column: property.monthly-uses
direction: DESC