mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
docs: fix property types (closes #139), add Bases kanban view
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: obsidian-bases
|
||||
description: Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
|
||||
description: Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, kanban boards, filters, or formulas in Obsidian.
|
||||
---
|
||||
|
||||
# Obsidian Bases Skill
|
||||
@@ -10,7 +10,7 @@ description: Create and edit Obsidian Bases (.base files) with views, filters, f
|
||||
1. **Create the file**: Create a `.base` file in the vault with valid YAML content
|
||||
2. **Define scope**: Add `filters` to select which notes appear (by tag, folder, property, or date)
|
||||
3. **Add formulas** (optional): Define computed properties in the `formulas` section
|
||||
4. **Configure views**: Add one or more views (`table`, `cards`, `list`, or `map`) with `order` specifying which properties to display
|
||||
4. **Configure views**: Add one or more views (`table`, `cards`, `list`, `map`, or `kanban`) with `order` specifying which properties to display
|
||||
5. **Validate**: Verify the file is valid YAML with no syntax errors. Check that all referenced properties and formulas exist. Common issues: unquoted strings containing special YAML characters, mismatched quotes in formula expressions, referencing `formula.X` without defining `X` in `formulas`
|
||||
6. **Test in Obsidian**: Open the `.base` file in Obsidian to confirm the view renders correctly. If it shows a YAML error, check quoting rules below
|
||||
|
||||
@@ -139,9 +139,10 @@ filters:
|
||||
| `file.mtime` | Date | Modified time |
|
||||
| `file.tags` | List | All tags in file |
|
||||
| `file.links` | List | Internal links in file |
|
||||
| `file.backlinks` | List | Files linking to this file |
|
||||
| `file.backlinks` | List | Files linking to this file. Slow in large vaults and does not refresh when the vault changes; prefer reversing the lookup with `file.links` |
|
||||
| `file.embeds` | List | Embeds in the note |
|
||||
| `file.properties` | Object | All frontmatter properties |
|
||||
| `file.properties` | Object | All frontmatter properties. Does not refresh when the vault changes |
|
||||
| `file.file` | File | File object, only usable in specific functions |
|
||||
|
||||
### The `this` Keyword
|
||||
|
||||
@@ -257,6 +258,26 @@ views:
|
||||
- status
|
||||
```
|
||||
|
||||
### Kanban View
|
||||
|
||||
Requires Obsidian 1.14+. Cards are grouped into columns by the `groupBy` property. `groupOrder` sets which columns show and in what order; use `null` to include files with no value. Dragging a card between columns rewrites that property in the note. Grouping by a formula or by any file property other than `file.folder` makes cards read-only.
|
||||
|
||||
```yaml
|
||||
views:
|
||||
- type: kanban
|
||||
name: "Projects"
|
||||
groupBy:
|
||||
property: note.status
|
||||
direction: ASC
|
||||
groupOrder:
|
||||
- Planned
|
||||
- In progress
|
||||
- Done
|
||||
order:
|
||||
- file.name
|
||||
- due_date
|
||||
```
|
||||
|
||||
### Map View
|
||||
|
||||
Requires latitude/longitude properties and the Maps community plugin.
|
||||
|
||||
@@ -30,8 +30,10 @@ due: 2024-02-01T14:30:00
|
||||
| Checkbox | `completed: true` |
|
||||
| Date | `date: 2024-01-15` |
|
||||
| Date & Time | `due: 2024-01-15T14:30:00` |
|
||||
| List | `tags: [one, two]` or YAML list |
|
||||
| Links | `related: "[[Other Note]]"` |
|
||||
| List | `aliases: [one, two]` or YAML list |
|
||||
| Tags | `tags: [project, active]` (reserved for the `tags` property) |
|
||||
|
||||
Links are not a separate type. Store a wikilink as a quoted Text value (`related: "[[Other Note]]"`) or as items in a List.
|
||||
|
||||
## Default Properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user