From 087cb0e56f2512d759ae043e2cf644253b1d1a0c Mon Sep 17 00:00:00 2001 From: Steph Ango <10565871+kepano@users.noreply.github.com> Date: Tue, 12 Sep 2023 16:00:27 -0700 Subject: [PATCH] Some more templates and database pages --- .gitignore | 2 ++ .obsidian/types.json | 1 - Books.md | 9 ++++++++ Companies.md | 6 +++++ Meetings.md | 7 ++++++ Movies.md | 18 +++++++++++++++ People.md | 6 +++++ Places.md | 13 +++++++++++ Readme.md | 38 +++++++++++++++++++++++++++++-- Templates/City Template.md | 5 ++-- Templates/Clipping Template.md | 3 +-- Templates/Conference Template.md | 2 +- Templates/Event Template.md | 2 +- Templates/Hosting Template.md | 2 +- Templates/Meditation Template.md | 5 ++-- Templates/Meeting Template.md | 2 +- Templates/Movie Template.md | 5 +--- Templates/Post Template.md | 3 +-- Templates/Real Estate Template.md | 5 ++-- Templates/Restaurant Template.md | 5 ++-- Templates/Show Template.md | 1 - Templates/Trip Template.md | 2 +- 22 files changed, 114 insertions(+), 28 deletions(-) create mode 100644 Books.md create mode 100644 Companies.md create mode 100644 Meetings.md create mode 100644 Movies.md create mode 100644 People.md create mode 100644 Places.md diff --git a/.gitignore b/.gitignore index bcf8a41..3d7300c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ # obsidian .obsidian/workspace.json .obsidian/themes +.obsidian/plugins +.obsidian/community-plugins.json # Exclude macOS Finder (System Explorer) View States .DS_Store \ No newline at end of file diff --git a/.obsidian/types.json b/.obsidian/types.json index 834c00f..6a8ae46 100644 --- a/.obsidian/types.json +++ b/.obsidian/types.json @@ -47,7 +47,6 @@ "start": "date", "shares": "number", "variety": "text", - "ratingImdb": "number", "price": "number", "author": "multitext" } diff --git a/Books.md b/Books.md new file mode 100644 index 0000000..2f6a5bf --- /dev/null +++ b/Books.md @@ -0,0 +1,9 @@ +## Favorites + +```dataview +table without id file.link as Book, author as Author, year as Year, rating as Rating, created as Added, last as "Last read", genre as Genre +from #books +where !contains(file.name, "Template") and rating > 5 +sort rating desc, date asc +limit 100 +``` diff --git a/Companies.md b/Companies.md new file mode 100644 index 0000000..56c6e3a --- /dev/null +++ b/Companies.md @@ -0,0 +1,6 @@ +```dataview +table without id file.link as Company, people as People +from #companies +where !contains(file.name, "Template") +sort file.mtime desc +``` \ No newline at end of file diff --git a/Meetings.md b/Meetings.md new file mode 100644 index 0000000..7fe51fb --- /dev/null +++ b/Meetings.md @@ -0,0 +1,7 @@ +```dataview +table without id file.link as Meeting, type as Type, people as People, date as Date +from #meetings +where !contains(file.name,"Template") +sort date desc +limit 100 +``` \ No newline at end of file diff --git a/Movies.md b/Movies.md new file mode 100644 index 0000000..54b9077 --- /dev/null +++ b/Movies.md @@ -0,0 +1,18 @@ +## Favorites + +```dataview +table without id file.link as Movie, year as "Year", ratingImdb as "Rating", last as "Last seen", director as "Director" +from #movies +where rating > 9 +sort rating desc +``` + +## Last seen + +```dataview +table without id file.link as Movie, year as "Year", rating as "Rating", last as "Last seen", director as "Director" +from #movies +where last != "" and !contains(file.name, "Template") +sort last desc +limit 100 +``` \ No newline at end of file diff --git a/People.md b/People.md new file mode 100644 index 0000000..87fa20f --- /dev/null +++ b/People.md @@ -0,0 +1,6 @@ +```dataview +table without id file.link as Person, filter(file.tags, (t) => t !="#people") as Tags +from #people +where !contains(file.name,"Template") and !contains(file.tags,"people/type") +sort file.name asc +``` \ No newline at end of file diff --git a/Places.md b/Places.md new file mode 100644 index 0000000..83d3d01 --- /dev/null +++ b/Places.md @@ -0,0 +1,13 @@ +```leaflet +id: places +markerTag: places +maxZoom:15 +height:50% +``` + +```dataview +table without id file.link as Place, location as "Location", type as Type, rating as "Rating" +from #places +where !contains(file.tags,"places/types") and !contains(file.name,"Template") +sort last desc +``` \ No newline at end of file diff --git a/Readme.md b/Readme.md index e429270..9a0c936 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,6 @@ -An Obsidian vault containing some of my templates and settings. +An Obsidian vault containing my vault structure, as well as my templates and settings. See also [my theme Minimal](https://github.com/kepano/obsidian-minimal). + +## Templates Some of my templates depend on plugins I use: @@ -6,4 +8,36 @@ Some of my templates depend on plugins I use: - [Periodic notes](https://github.com/liamcain/obsidian-periodic-notes) for my daily notes - [Leaflet](https://github.com/javalent/obsidian-leaflet) for maps -See also [my theme Minimal](https://github.com/kepano/obsidian-minimal). \ No newline at end of file +The `.obsidian/types.json` file shows which properties are assigned to which types. Many have short names that are meant for me to remember, e.g. `start` instead of `startdate`. + +## Folder structure + +I use very few folders. I keep the root of my vault directory for things that I have created, such as journal entries + +- **Attachments** for images, PDFs, etc +- **Clippings** for articles and other pages captured with my [Web Clipper](https://stephango.com/obsidian-web-clipper) +- **Daily** for my daily notes, all in `YYYY-MM-DD.md` format +- **References** for anything that refers to something that exists outside of my vault, e.g. books, movies, places, people, podcasts, etc. +- **Templates** for templates. This is actually nested under "Meta" in my personal vault, but I've moved it to the top-level for clarity. Meta also contains my personal style guide and other random things that are about the vault. + +## Categories and tagging + +I primarily use the category property, e.g. `category: [[Movies]]` to organize and navigate my vault. Some rules I follow: + +- Always pluralize categories and tags +- Use `YYYY-MM-DD` everywhere +- + +## Rating system + +Anything with a `rating` is a number that goes from 1 to 7 + + - 7 — **Perfect**, must try, life-changing, go out of your way to seek this out + - 6 — **Excellent**, worth repeating + - 5 — **Good**, don't go out of your way, but enjoyable + - 4 — **Passable**, works in a pinch + - 3 — **Bad**, don't do this if you can + - 2 — **Atrocious**, actively avoid, repulsive + - 1 — **Evil**, life-changing in a bad way + +Why this scale? I like the 7 scale better than 4 or 5 stars because I need more granularity at the top, for the good experiences, and 10 is too many. \ No newline at end of file diff --git a/Templates/City Template.md b/Templates/City Template.md index 70c2172..06cabb0 100644 --- a/Templates/City Template.md +++ b/Templates/City Template.md @@ -8,9 +8,8 @@ tags: - cities location: rating: -created: - "{ date }": -last: "" +created: {{date}} +last: --- ## Trips diff --git a/Templates/Clipping Template.md b/Templates/Clipping Template.md index 349175b..9416b8f 100644 --- a/Templates/Clipping Template.md +++ b/Templates/Clipping Template.md @@ -5,8 +5,7 @@ tags: - clippings author: [] url: "" -created: - "{ date }": +created: {{date}} published: topics: [] --- diff --git a/Templates/Conference Template.md b/Templates/Conference Template.md index c10952e..7f8abe6 100644 --- a/Templates/Conference Template.md +++ b/Templates/Conference Template.md @@ -5,7 +5,7 @@ type: "[[Conferences]]" series: start: end: -loc: +location: tags: - events - conferences diff --git a/Templates/Event Template.md b/Templates/Event Template.md index 3dce575..4b25487 100644 --- a/Templates/Event Template.md +++ b/Templates/Event Template.md @@ -6,5 +6,5 @@ tags: type: start: end: -loc: +location: --- diff --git a/Templates/Hosting Template.md b/Templates/Hosting Template.md index 8c93e15..6718c9a 100644 --- a/Templates/Hosting Template.md +++ b/Templates/Hosting Template.md @@ -3,7 +3,7 @@ category: - "[[Hosting]]" start: end: -loc: +location: people: [] tags: - hosting diff --git a/Templates/Meditation Template.md b/Templates/Meditation Template.md index c53b619..c94596c 100644 --- a/Templates/Meditation Template.md +++ b/Templates/Meditation Template.md @@ -5,9 +5,8 @@ tags: - note - journal - meditation -created: - "{ date }": -loc: [] +created: {{date}} +location: [] topics: [] --- diff --git a/Templates/Meeting Template.md b/Templates/Meeting Template.md index 9daed56..573cd7e 100644 --- a/Templates/Meeting Template.md +++ b/Templates/Meeting Template.md @@ -4,7 +4,7 @@ category: type: [] date: {{date}} org: -loc: +location: people: [] topics: [] tags: diff --git a/Templates/Movie Template.md b/Templates/Movie Template.md index f16f225..ecbf09b 100644 --- a/Templates/Movie Template.md +++ b/Templates/Movie Template.md @@ -5,13 +5,10 @@ cover: genre: [] director: cast: [] -ratingImdb: rating: year: -last: - "{ date }": +last: {{date}} imdbId: -scoreRT: via: tags: - movies diff --git a/Templates/Post Template.md b/Templates/Post Template.md index d36003e..e5acced 100644 --- a/Templates/Post Template.md +++ b/Templates/Post Template.md @@ -5,8 +5,7 @@ tags: - posts author: "[[Me]]" url: -created: - "{ date }": +created: {{date}} published: topics: - "" diff --git a/Templates/Real Estate Template.md b/Templates/Real Estate Template.md index 6850f86..a22e06a 100644 --- a/Templates/Real Estate Template.md +++ b/Templates/Real Estate Template.md @@ -6,13 +6,12 @@ tags: type: [] address: rating: -created: - "{ date:YYYY-MM-DD }": +created: "{{date}}" url: year: price: sqft: lotsqft: -loc: [] +location: [] status: --- diff --git a/Templates/Restaurant Template.md b/Templates/Restaurant Template.md index 866a026..e15d8b3 100644 --- a/Templates/Restaurant Template.md +++ b/Templates/Restaurant Template.md @@ -1,8 +1,9 @@ --- category: - "[[Places]]" -type: "[[Restaurants]]" -loc: +type: + - "[[Restaurants]]" +location: rating: created: {{date}} last: {{date}} diff --git a/Templates/Show Template.md b/Templates/Show Template.md index 2b57847..bb29357 100644 --- a/Templates/Show Template.md +++ b/Templates/Show Template.md @@ -4,7 +4,6 @@ category: genre: [] year: cast: [] -ratingImdb: rating: created: {{date}} last: {{date}} diff --git a/Templates/Trip Template.md b/Templates/Trip Template.md index 14da59a..4ed9eeb 100644 --- a/Templates/Trip Template.md +++ b/Templates/Trip Template.md @@ -3,7 +3,7 @@ category: - "[[Trips]]" start: end: -loc: +location: tags: - trips ---