Repository navigation
Closed
Labels
Description
Problem
There is no way to write one typed value into a selected range of cells in a table tab.
- Set Value (
features/change-tracking.mdx, Editing a cell) applies to every selected cell, but only offers Empty, NULL, Default, the date and time functions and Generate UUID.SetValueCommand(apple/TablePro/Core/Services/CellValues/SetValueOptions.swift:8) has no case for a typed value. - Fill Column takes a typed value, but writes it into every loaded row of the column, not the selection (
fillTargetRows()inapple/TablePro/Views/Results/Extensions/DataGridView+FillColumn.swift). - Pasting one value with a range selected fills only the focused cell:
pasteCellsFromClipboard(apple/TablePro/Views/Results/Extensions/DataGridView+CellPaste.swift:29) lays the clipboard block out from the anchor cell, so a 1 by 1 block covers one cell. - Typing into a cell edits that cell only.
Data file windows already have this as Set Cells to Value… (features/data-files.mdx, Clean up data; apple/TablePro/Core/Menu/EditMenuBuilder.swift:275), so setting status = 'archived' on 40 selected rows is one command in a CSV file and 40 edits in a database table.
Proposed solution
- Set Cells to Value… under Set Value, on the cell's contextual menu and in Edit > Set Value, rebindable in Settings > Keyboard. It asks for one value and stages it into every selected editable cell, the same way the other Set Value items do. With whole rows selected, it writes the clicked column on each row.
- Pasting a single value while several cells are selected writes it into each of them. A multi-cell clipboard block keeps today's anchor behaviour.
- Cells that cannot take the value (a read-only or server-owned column, a deleted row, a value the column type rejects) are skipped, and the change count says how many.
- One undo step for the whole write, and Safe Mode and the save review see it as ordinary cell edits.
Done means selecting 40 cells in one column, choosing Set Cells to Value…, typing archived and pressing Cmd+S writes archived to those 40 rows and no others.
Alternatives considered
Filter the table down to the rows and use Fill Column, or write the UPDATE by hand.
Platform
macOS
Related database type
N/A / General
Activity