Skip to content

Choose what Cmd+C copies in the data grid #2496

Closed

Description

@datlechin

Problem

Since #1337, Cmd+C in the grid copies the focused cell's value when one row is selected and a cell has focus, and the selected rows as TSV otherwise. Cmd+Shift+C always copies rows, Cmd+Option+C adds a header row and Cmd+Option+J copies JSON (features/data-grid.mdx, Copying). Two gaps remain:

  • What plain Cmd+C copies cannot be changed. Anyone who mostly wants CSV with headers or Markdown goes through the Copy as submenu every time. Only Copy, Copy Rows, Copy with Headers and Copy as JSON have rows in Settings > Keyboard (apple/TablePro/Models/UI/KeyboardShortcutModels.swift:100); CSV, CSV with Headers, Markdown, IN Clause, INSERT and UPDATE have none.
  • With several rows selected there is no command that copies only the focused cell's value: Cmd+C copies the rows.

Proposed solution

  • A setting in Settings > Data for the format Cmd+C uses when it copies rows, offering the formats the Copy as submenu lists. A single focused cell keeps copying its raw value, as feat(datagrid): copy focused cell value with Cmd+C, add Cmd+Shift+C for rows (#1332) #1337 made it.
  • A Copy Cell Value command in Edit > Copy Special and on the cell's contextual menu that copies the focused cell's raw value whatever else is selected, unbound by default and rebindable in Settings > Keyboard.
  • Settings > Keyboard rows for each Copy as format, unbound by default.
  • Keep Copy as reachable whatever the default is.

Done means: with the default set to CSV with Headers, selecting three rows and pressing Cmd+C puts a header line and three CSV lines on the clipboard.

Alternatives considered

The Copy as submenu, every time.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. changed the title [-]Copy Cell Value shortcut, and a configurable default for Cmd+C[/-] [+]Choose what Cmd+C copies in the data grid[/+] on Oct 19, 2026
  3. added
    platform-macos
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions