diff --git a/features/change-tracking.mdx b/features/change-tracking.mdx index ddcc222..305bc0c 100644 --- a/features/change-tracking.mdx +++ b/features/change-tracking.mdx @@ -36,15 +36,18 @@ Double-click a cell, or press `Enter` on it. `Enter` commits the edit to the que Cell editor -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). diff --git a/features/data-files.mdx b/features/data-files.mdx index 6ef491f..d5bd6fd 100644 --- a/features/data-files.mdx +++ b/features/data-files.mdx @@ -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 | |---|---| diff --git a/features/keyboard-shortcuts.mdx b/features/keyboard-shortcuts.mdx index 836100f..e3c9854 100644 --- a/features/keyboard-shortcuts.mdx +++ b/features/keyboard-shortcuts.mdx @@ -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` |