@@ -55,6 +55,7 @@ enum ShortcutAction: String, Codable, CaseIterable, Identifiable {
5555 case cut
5656 case copy
5757 case copyWithHeaders
58+ case copyAsJson
5859 case paste
5960 case delete
6061 case selectAll
@@ -87,7 +88,7 @@ enum ShortcutAction: String, Codable, CaseIterable, Identifiable {
8788 . saveChanges, . previewSQL, . closeTab, . refresh,
8889 . explainQuery, . export, . importData, . quickSwitcher:
8990 return . file
90- case . undo, . redo, . cut, . copy, . copyWithHeaders, . paste,
91+ case . undo, . redo, . cut, . copy, . copyWithHeaders, . copyAsJson , . paste,
9192 . delete, . selectAll, . clearSelection, . addRow,
9293 . duplicateRow, . truncateTable:
9394 return . edit
@@ -120,6 +121,7 @@ enum ShortcutAction: String, Codable, CaseIterable, Identifiable {
120121 case . cut: return String ( localized: " Cut " )
121122 case . copy: return String ( localized: " Copy " )
122123 case . copyWithHeaders: return String ( localized: " Copy with Headers " )
124+ case . copyAsJson: return String ( localized: " Copy as JSON " )
123125 case . paste: return String ( localized: " Paste " )
124126 case . delete: return String ( localized: " Delete " )
125127 case . selectAll: return String ( localized: " Select All " )
@@ -418,6 +420,7 @@ struct KeyboardSettings: Codable, Equatable {
418420 . cut: KeyCombo ( key: " x " , command: true ) ,
419421 . copy: KeyCombo ( key: " c " , command: true ) ,
420422 . copyWithHeaders: KeyCombo ( key: " c " , command: true , shift: true ) ,
423+ . copyAsJson: KeyCombo ( key: " j " , command: true , option: true ) ,
421424 . paste: KeyCombo ( key: " v " , command: true ) ,
422425 . delete: KeyCombo ( key: " delete " , command: true , isSpecialKey: true ) ,
423426 . selectAll: KeyCombo ( key: " a " , command: true ) ,
0 commit comments