mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-31 16:24:33 +00:00
feat(grid): add clipboard shortcuts
This commit is contained in:
@@ -68,9 +68,7 @@ function sqlValue(value: GridCellValue): string {
|
||||
}
|
||||
|
||||
export function formatSelectionAsTsv(selection: SelectionData): string {
|
||||
const header = selection.columns.join("\t");
|
||||
const body = selection.rows.map((row) => row.map(displayValue).join("\t")).join("\n");
|
||||
return [header, body].filter(Boolean).join("\n");
|
||||
return selection.rows.map((row) => row.map(displayValue).join("\t")).join("\n");
|
||||
}
|
||||
|
||||
export function formatSelectionAsCsv(selection: SelectionData): string {
|
||||
|
||||
Reference in New Issue
Block a user