Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions features/change-tracking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@ Double-click a cell, or press `Enter` on it. `Enter` commits the edit to the que
<img className="hidden dark:block" src="/images/date-picker-editor-dark.png" alt="Cell editor" />
</Frame>

Right-click an editable cell and open **Set Value** to set it without typing. Each item appears only where the column takes it:
Right-click an editable cell and open **Set Value**. Each item appears only where the column takes it:

- **Empty** on text, `SET` and binary columns.
- **NULL** on a nullable column.
- **Default** on a column the server fills in. SQLite, libSQL, Turso, Cloudflare D1, ClickHouse, Databend, Snowflake, Trino, Cassandra and ScyllaDB take it on a new row only.
- The database's own date and time functions on a date or time column, such as `NOW()` on MySQL or `CURRENT_TIMESTAMP` on SQLite.
- **Generate UUID** (version 4) and **Generate UUIDv7** (ordered by creation time) on a `uuid` or `uniqueidentifier` column, and on a text or binary column whose display format is UUID. A foreign key column and a Cassandra `timeuuid` column get neither.
- **Set Cells to Value…** on any cell you could type into. Type the value once and click **Set**. It is read the way a typed value is, so an empty value stores NULL in a date or number column, and a function such as `NOW()` in a date or time column runs on the server.

Select several cells first to set all of them at once; Generate UUID gives each cell its own value. With whole rows selected, the clicked column changes on every selected row. **Edit > Set Value** holds the same items for the focused cell or the selection, and [Settings > Keyboard](/features/keyboard-shortcuts#customizing-shortcuts) assigns them shortcuts.
Select several cells first to set all of them at once; Generate UUID gives each cell its own value. With whole rows selected, the clicked column changes on every selected row. Cells that cannot take the value keep what they hold: **Set Cells to Value…** skips a column the server owns, a binary column and a deleted row, and says how many cells it sets before you confirm. **Edit > Set Value** holds the same items for the focused cell or the selection, and [Settings > Keyboard](/features/keyboard-shortcuts#customizing-shortcuts) assigns them shortcuts.

To copy one value into many cells, copy it, select the cells and press `Cmd+V`. A copied block of several cells pastes from the focused cell rightward and down instead.

On MongoDB, Firestore and the Firebase Realtime Database a document can lack a field altogether, and on Bigtable a row can lack a cell; the grid shows either as **No Field**. **Remove Field** on the same right-click menu deletes the field rather than storing NULL. Bigtable stores no NULL, so **NULL** and **Remove Field** both delete the cell. See [missing fields and null](/databases/mongodb#missing-fields-and-null).

Expand Down
4 changes: 2 additions & 2 deletions features/data-files.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ To add up a few values instead, select the cells: the status bar shows their sum

Double-click a cell, or select it and press `Return`, to edit it. `Cmd+Shift+N` adds a row at the end; **Insert Row Above** and **Insert Row Below** are on a row's context menu. Select rows and press `Cmd+Delete` to delete them.

`Cmd+C` copies the selected rows as tab-separated text. With a cell selected, `Cmd+V` pastes a tab-separated block into the cells from there rightward and down. With no cell selected, it adds the lines as new rows, and a block wider than the table adds the columns it needs.
`Cmd+C` copies the selected rows as tab-separated text. With a cell selected, `Cmd+V` pastes a tab-separated block into the cells from there rightward and down, and a single value into every selected cell. With no cell selected, it adds the lines as new rows, and a block wider than the table adds the columns it needs.

Right-click a column header, or use the **Columns** menu in the toolbar, to rename, insert, split, merge, retype or delete columns. **Split Column…** splits every value at a separator or a regular expression, and **Merge Columns…** joins a column with the one to its right.

## Clean up data

These commands are on **Edit > Data** and on the column header's context menu. **Edit > Data** appears only while a data file window is in front. With a whole column selected they change every visible row; with cells selected they change only those cells. Each one is a single undo step.
These commands are on **Edit > Data** and on the column header's context menu. **Set Cells to Value…** is on **Edit > Set Value** instead of Edit > Data, and on a cell's **Set Value** menu too. **Edit > Data** appears only while a data file window is in front. With a whole column selected they change every visible row; with cells selected they change only those cells. Each one is a single undo step.

| Command | Does |
|---|---|
Expand Down
1 change: 1 addition & 0 deletions features/keyboard-shortcuts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Every row except the five find rows is built into the editor and cannot be rebou
| Duplicate row | `Cmd+Shift+D` |
| Restore Previous Values | none by default, rebindable |
| Set Value to Empty, NULL or Default | none by default, rebindable |
| Set Cells to Value… | none by default, rebindable |
| Generate UUID, Generate UUIDv7 | none by default, rebindable |
| Delete selected rows | `Delete` or `Cmd+Delete` |
| Truncate table (tables selected in the sidebar) | `Option+Delete` |
Expand Down
Loading