---
name: pellet-table-views
description: Create or edit Pellet saved table views (.table files) in a Pellet vault, with filters, sorting, grouping and the columns to show.
---

# Pellet table views

A saved table view in Pellet is one JSON file in the vault named `<Name>.table`.
The file name without `.table` is the view's title. Pellet finds a `.table`
file anywhere in the vault and lists it as a saved table view right away, with
no restart. Use this skill when someone asks for a table, list or dashboard of
their notes, tasks or files in Pellet.

## If Pellet's MCP server is connected

Use its tools instead of writing files: `list_table_views` (every view and its
fields), `save_table_view` (create with a `name`, or change a view by `id`) and
`delete_table_view`. They take the same values described below, with
snake_case names (`group_by`, `show_columns`, `match` for `conditionMatch`,
`kinds` for `visibleKinds`, `layout` `"timeline"` for `"gantt"`), and Pellet
checks every field and tells you what it could not keep.

## Where to put it

- Put new views in the vault's `table-views/` folder (Pellet's default
  **Saved table views folder**). Any folder works.
- The file name is the title: `table-views/Due this week.table` is a view
  called "Due this week". Never name it `.table.json`.
- Ask for the vault's folder if you don't know it. Do not edit anything in the
  vault's `.pellet/` folder.

## The file

One JSON object. Every key is optional, and a key with the wrong type is
ignored. Pellet keeps keys it doesn't know. Write only what the view needs:

```json
{
  "version": 1,
  "pinned": true,
  "conditions": [
    { "field": "tags", "operator": "hasAnyOf", "value": ["work"] },
    { "field": "status", "operator": "isNot", "value": "done" },
    { "field": "due", "operator": "thisWeek" }
  ],
  "conditionMatch": "and",
  "sort": [{ "field": "dueDate", "direction": "asc" }],
  "groupBy": "priority",
  "visibleKinds": ["task", "note"],
  "viewMode": "table",
  "showColumns": ["due", "status", "priority"]
}
```

| Key | Value | Meaning |
|---|---|---|
| `version` | `1` | The format version. |
| `pinned` | `true` / `false` | Show it as a pill above Pellet's Table. At most 12 pills show. |
| `order` | number | Its place among the pills (lowest first). |
| `conditions` | list | The filter. See "Conditions". |
| `conditionMatch` | `"and"` / `"or"` | Every condition must match, or any one. Default `"and"`. |
| `search` | string | Only rows whose title contains this text. |
| `sort` | list of `{ "field", "direction" }` | Up to 3 levels; `direction` is `"asc"` or `"desc"`. See "Sorting". |
| `groupBy` | string | `"none"`, `"status"`, `"priority"`, `"group"`, `"type"`, `"kind"`, or `"custom:<property>"`. |
| `visibleKinds` | list | Which kinds of file are rows. See "Kinds". Leave it out for Pellet's default: every kind except `image`, `video`, `audio`, `other` and `tableview`. |
| `viewMode` | `"table"` / `"grid"` / `"gantt"` | Table, picture Grid, or Timeline (desktop only). |
| `showColumns` | list of property names | The columns to show, in order. See "Columns". |
| `showHierarchy` | `true` / `false` | Show subtasks under their parent. Default `true`. |
| `gridSize` | `"s"` / `"m"` / `"l"` | Card size in the Grid. |
| `gridCover` | `true` / `false` | Grid cards show a cover picture. |
| `ganttZoom` | `"day"` / `"week"` / `"month"` / `"quarter"` | Timeline zoom. |

Leave out `id` when you create a view: Pellet writes one the first time it
saves the file. **When you copy an existing `.table` file to make a new view,
delete the copy's `id`**, or the two views fight over one identity.

## Columns

`showColumns` lists frontmatter **property names**, the same names the notes
use, in the order they should appear. Title always shows first, so you don't
need to list it. Every column you leave out is hidden, and the person can still
tick it in Pellet's Columns menu.

| Name | Column |
|---|---|
| `status`, `due`, `priority`, `tags`, `type`, `created`, `modified` | That built-in column. |
| `scheduled` | Start (the start date). |
| `group` | Group (also read from a `project` property). |
| any other name | The person's own column for that property, e.g. `effort`. |

A property shows as a column only once it is one of the person's own columns
in Pellet (Columns › Add custom column). Until then it shows nothing, and it
stays in the file so it appears once they add it. Tell them when a view lists
one they haven't added.

## Conditions

Each condition is `{ "field": ..., "operator": ..., "value": ... }`. `value` is
a string, or a list of strings for the operators marked "list". Leave `value`
out for operators that take none. A condition missing a value it needs is
ignored.

| Field | Kind of value | Operators |
|---|---|---|
| `kind` | file kind (see "Kinds") | `is`, `isNot`, `isAnyOf` (list), `isNoneOf` (list), `isEmpty`, `isNotEmpty` |
| `status` | `todo`, `doing`, `done`, `skip`, or the vault's own status names | same as `kind` |
| `priority` | `none`, `low`, `medium`, `high` | same as `kind` |
| `type` | the file's `type` property | same as `kind` |
| `group` | the file's group | same as `kind` |
| `kanban` | a Kanban board's id | same as `kind` |
| `tags` | tag names, no `#` | `hasAnyOf` (list), `hasAllOf` (list), `hasNoneOf` (list), `isEmpty`, `isNotEmpty` |
| `title` | text | `is`, `isNot`, `contains`, `notContains`, `isEmpty`, `isNotEmpty` |
| `folder` | a vault folder path, e.g. `Projects/Alpha` | same as `title` |
| `due`, `start` | a date `YYYY-MM-DD` | `on`, `before`, `after`, `withinDays` (value: a number of days, e.g. `"7"`), `overdue`, `today`, `tomorrow`, `thisWeek`, `nextWeek`, `thisMonth`, `nextMonth`, `isEmpty`, `isNotEmpty` |
| `created`, `modified` | a date `YYYY-MM-DD` | `on`, `before`, `after`, `isEmpty`, `isNotEmpty` |
| `scheduled` | `"true"` / `"false"` (has a due or start date) | `is` |
| `archived` | `"true"` / `"false"` | `is` |
| `recurring` | `"true"` / `"false"` | `is` |
| `empty` | `"true"` / `"false"` (a file with nothing in it) | `is` |
| `links` | a note's vault path, e.g. `Projects/Alpha.md` | `linksTo`, `notLinksTo`, `linksToActive`, `notLinksToActive`, `linkedFromActive`, `notLinkedFromActive`, `isEmpty`, `isNotEmpty` |
| `custom:<property>` | the property's value | the operators for that property's type: text like `title`, dates like `due`, lists like `tags`, numbers `eq`, `neq`, `gt`, `lt`, `isEmpty`, `isNotEmpty` |

Tags match their children too: `work` also matches `work/projects`. The
`...Active` link operators follow whichever file the person has open.

## Sorting

`sort` fields: `title`, `priority`, `status`, `dueDate`, `startDate`, `type`,
`group`, `created`, `modified`, or `custom:<property>`. Empty dates always sort
last.

## Kinds

`visibleKinds` and the `kind` condition use these names: `task`, `note`,
`canvas`, `paper`, `whiteboard`, `pdf`, `epub`, `text`, `image`, `video`,
`audio`, `other`, `tableview`. A `task` is a Markdown note with a `task_id`
property; a `note` is any other Markdown note.

## Getting it right

- **Which files are rows:** use `visibleKinds` (e.g. `["task"]` for tasks
  only, `["pdf", "epub"]` for documents). Use a `kind` condition only when you
  need it together with other conditions under `"or"`.
- **Sort names differ from condition names** for dates: sort by `dueDate` /
  `startDate`, filter on `due` / `start`.
- **Priority** sorts `none`, `low`, `medium`, `high` in that order, so
  `"desc"` puts high first.
- **Status:** a task with no status counts as `todo`. "Not done" is
  `status isNot done`; add `status isNot skip` too if skipped tasks should go.
- **`withinDays`** with `"14"` means from today through 14 days ahead.
  Overdue items are not included.
- **Folders:** `folder is "Library"` matches files directly in `Library`
  only. `folder contains "Library"` also matches its subfolders (and any
  folder whose path contains that text).
- **Created and modified:** for a task these are its `created` and `modified`
  properties; for a note or any other file, the file's own dates. "Newest" or
  "recently added" is `created`; "recently changed" is `modified`.
- **Empty:** a note with no text besides its properties, or a drawing,
  canvas or whiteboard with nothing on it.
- **Grid:** each card lists the `showColumns` columns under its name.
- **Your own properties:** `custom:<property>` conditions, sorting and
  grouping read the property straight from the files. Only a column needs
  setting up: you can't tell from the vault whether a property is already one
  of the person's columns, so when `showColumns` lists one, tell them: "If
  effort isn't a column yet, add it in Columns › Add custom column."
- Create the `table-views/` folder if it doesn't exist.

## Before you finish

- Check the file is valid JSON (one object, double quotes, no trailing commas).
  Pellet shows "Pellet can't read this table file" for one that isn't, and
  never overwrites it.
- To change an existing view, read the file first and change only the keys you
  need: Pellet keeps everything else. If the person has the view open with
  unsaved changes, theirs stay in their tab until they save.
- Tell the person the view's name and where it is: it shows in Pellet's Table
  (as a pill if `pinned`) and under Filters › Table in the side pane.
- A note can show the view live with a line of its own: `![[<Name>.table]]`.
