Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions backend/wbpublic/sqlide/recordset_be.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,12 @@ void Recordset::update_selection_for_menu(const std::vector<int> &rows, int clic
std::bind(&Recordset::activate_menu_item, this, "copy_row_unquoted_with_names", rows, clicked_column),
"Copy Row With Names and Unquoted)", "copy_row_unquoted_with_names");

item = _context_menu->add_item_with_title(
"Copy Row (with names, tab separated)",
std::bind(&Recordset::activate_menu_item, this, "copy_row_with_names_tabsep", rows, clicked_column),
"Copy Row with Names Tab Separated", "copy_row_with_names_tabsep");
item->set_enabled(rows.size() > 0);

item = _context_menu->add_item_with_title(
"Copy Row (tab separated)",
std::bind(&Recordset::activate_menu_item, this, "copy_row_tabsep", rows, clicked_column),
Expand Down Expand Up @@ -1244,6 +1250,8 @@ void Recordset::activate_menu_item(const std::string &action, const std::vector<
}
} else if (action == "copy_row_unquoted_with_names") {
copy_rows_to_clipboard(rows, ", ", false, true);
} else if (action == "copy_row_with_names_tabsep") {
copy_rows_to_clipboard(rows, "\t", false, true);
} else if (action == "copy_row_tabsep") {
if (rows.size() > 0) {
copy_rows_to_clipboard(rows, "\t", false);
Expand Down