feat(editor): add ExPaste paste-as-IN-condition helper (#2746)

* feat: add ExPaste SQL IN condition helper

* fix: restrict ExPaste to SQL-like editors

---------

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
This commit is contained in:
zipgandzipg authored and GitHub committed 2026-07-07 12:33:49 +08:00
1 parent 29495a7220
commit 705bacba04
17 files changed
+491 -8

No files matched your search

+8
View File
@@ -45,6 +45,7 @@ export default {
hidePreviewSql: "Hide SQL Preview",
saveSql: "Save to SQL Library",
openSql: "Open SQL file",
exPasteSqlInCondition: "ExPaste: paste as IN condition",
theme: "Theme",
themeLight: "Light",
themeDark: "Dark",
@@ -458,6 +459,12 @@ export default {
setDefaultDatabase: "Set Default",
defaultDatabase: "Default",
clearDatabase: "Clear database",
exPasteNoValues: "Clipboard has no values for an IN condition",
exPasteNotList: "No convertible multi-value list was detected",
exPasteTooLarge: "Clipboard content is too large. Maximum supported length is {limit} characters.",
exPasteTooManyValues: "Too many values. Maximum supported count is {limit}.",
exPasteClipboardReadFailed: "Failed to read clipboard: {message}",
exPastePasted: "Pasted {count} IN condition values",
completion: {
nullValue: "NULL value",
isNull: "Check if NULL",
@@ -3166,6 +3173,7 @@ export default {
officialDocs: "Official docs",
shortcutUppercaseSelection: "Convert selection to uppercase",
shortcutLowercaseSelection: "Convert selection to lowercase",
shortcutExPasteSqlInCondition: "ExPaste: paste as IN condition",
},
driverStore: {
progressJreExtract: "Extracting JRE...",
+8
View File
@@ -47,6 +47,7 @@ export default withEnglishFallback({
hidePreviewSql: "Ocultar vista previa de SQL",
saveSql: "Guardar en biblioteca SQL",
openSql: "Abrir archivo SQL",
exPasteSqlInCondition: "ExPaste: pegar como condición IN",
theme: "Tema",
themeLight: "Claro",
themeDark: "Oscuro",
@@ -451,6 +452,12 @@ export default withEnglishFallback({
setDefaultDatabase: "Establecer como predeterminada",
defaultDatabase: "Predeterminada",
clearDatabase: "Limpiar base de datos",
exPasteNoValues: "El portapapeles no contiene valores para una condición IN",
exPasteNotList: "No se detectó una lista de varios valores convertible",
exPasteTooLarge: "El contenido del portapapeles es demasiado grande. Máximo {limit} caracteres.",
exPasteTooManyValues: "Demasiados valores. Máximo {limit}.",
exPasteClipboardReadFailed: "No se pudo leer el portapapeles: {message}",
exPastePasted: "Se pegaron {count} valores de condición IN",
completion: {
nullValue: "Valor NULL",
isNull: "Comprobar si es NULL",
@@ -3079,6 +3086,7 @@ export default withEnglishFallback({
officialDocs: "Documentación oficial",
shortcutUppercaseSelection: "Convertir selección a mayúsculas",
shortcutLowercaseSelection: "Convertir selección a minúsculas",
shortcutExPasteSqlInCondition: "ExPaste: pegar como condición IN",
},
driverStore: {
progressJreExtract: "Extrayendo JRE...",
+8
View File
@@ -46,6 +46,7 @@ export default withEnglishFallback({
hidePreviewSql: "Nascondi anteprima SQL",
saveSql: "Salva nella Libreria SQL",
openSql: "Apri file SQL",
exPasteSqlInCondition: "ExPaste: incolla come condizione IN",
theme: "Tema",
themeLight: "Chiaro",
themeDark: "Scuro",
@@ -449,6 +450,12 @@ export default withEnglishFallback({
setDefaultDatabase: "Imposta Predefinito",
defaultDatabase: "Predefinito",
clearDatabase: "Cancella database",
exPasteNoValues: "Gli appunti non contengono valori per una condizione IN",
exPasteNotList: "Nessun elenco di più valori convertibile rilevato",
exPasteTooLarge: "Il contenuto degli appunti è troppo grande. Massimo {limit} caratteri.",
exPasteTooManyValues: "Troppi valori. Massimo {limit}.",
exPasteClipboardReadFailed: "Impossibile leggere gli appunti: {message}",
exPastePasted: "Incollati {count} valori per la condizione IN",
completion: {
nullValue: "Valore NULL",
isNull: "Verifica se NULL",
@@ -3077,6 +3084,7 @@ export default withEnglishFallback({
officialDocs: "Documenti ufficiali",
shortcutUppercaseSelection: "Converti selezione in maiuscolo",
shortcutLowercaseSelection: "Converti selezione in minuscolo",
shortcutExPasteSqlInCondition: "ExPaste: incolla come condizione IN",
},
driverStore: {
progressJreExtract: "Estrazione JRE...",
+8
View File
@@ -47,6 +47,7 @@ export default withEnglishFallback({
hidePreviewSql: "SQLプレビューを非表示",
saveSql: "SQLライブラリに保存",
openSql: "SQLファイルを開く",
exPasteSqlInCondition: "ExPaste: IN条件として貼り付け",
theme: "テーマ",
themeLight: "ライト",
themeDark: "ダーク",
@@ -448,6 +449,12 @@ export default withEnglishFallback({
setDefaultDatabase: "デフォルトに設定",
defaultDatabase: "デフォルト",
clearDatabase: "データベースをクリア",
exPasteNoValues: "クリップボードにIN条件で使える値がありません",
exPasteNotList: "変換可能な複数値リストを検出できませんでした",
exPasteTooLarge: "クリップボードの内容が大きすぎます。最大 {limit} 文字まで対応しています。",
exPasteTooManyValues: "値が多すぎます。最大 {limit} 件まで対応しています。",
exPasteClipboardReadFailed: "クリップボードの読み取りに失敗しました: {message}",
exPastePasted: "{count} 件のIN条件値を貼り付けました",
completion: {
nullValue: "NULL値",
isNull: "NULLかどうか",
@@ -3077,6 +3084,7 @@ export default withEnglishFallback({
officialDocs: "公式ドキュメント",
shortcutUppercaseSelection: "選択範囲を大文字に変換",
shortcutLowercaseSelection: "選択範囲を小文字に変換",
shortcutExPasteSqlInCondition: "ExPaste: IN条件として貼り付け",
},
driverStore: {
progressJreExtract: "JREを展開中...",
+8
View File
@@ -47,6 +47,7 @@ export default withEnglishFallback({
hidePreviewSql: "Ocultar Visualização SQL",
saveSql: "Salvar na Biblioteca SQL",
openSql: "Abrir arquivo SQL",
exPasteSqlInCondition: "ExPaste: colar como condição IN",
theme: "Tema",
themeLight: "Claro",
themeDark: "Escuro",
@@ -450,6 +451,12 @@ export default withEnglishFallback({
setDefaultDatabase: "Definir Padrão",
defaultDatabase: "Padrão",
clearDatabase: "Limpar banco de dados",
exPasteNoValues: "A área de transferência não contém valores para uma condição IN",
exPasteNotList: "Nenhuma lista de múltiplos valores conversível foi detectada",
exPasteTooLarge: "O conteúdo da área de transferência é grande demais. Máximo de {limit} caracteres.",
exPasteTooManyValues: "Valores demais. Máximo de {limit}.",
exPasteClipboardReadFailed: "Falha ao ler a área de transferência: {message}",
exPastePasted: "{count} valores de condição IN colados",
completion: {
nullValue: "Valor NULL",
isNull: "Verificar se é NULL",
@@ -3078,6 +3085,7 @@ export default withEnglishFallback({
officialDocs: "Documentação oficial",
shortcutUppercaseSelection: "Converter seleção em maiúsculas",
shortcutLowercaseSelection: "Converter seleção em minúsculas",
shortcutExPasteSqlInCondition: "ExPaste: colar como condição IN",
},
driverStore: {
progressJreExtract: "Extraindo JRE...",
+8
View File
@@ -47,6 +47,7 @@ export default withEnglishFallback({
hidePreviewSql: "隐藏 SQL 预览",
saveSql: "保存到 SQL 库",
openSql: "打开 SQL 文件",
exPasteSqlInCondition: "ExPaste:粘贴为 IN 条件",
theme: "主题",
themeLight: "亮色",
themeDark: "暗色",
@@ -460,6 +461,12 @@ export default withEnglishFallback({
setDefaultDatabase: "设为默认",
defaultDatabase: "默认库",
clearDatabase: "清除数据库选择",
exPasteNoValues: "剪贴板中没有可用于 IN 条件的值",
exPasteNotList: "未识别到可转换的多值列表",
exPasteTooLarge: "剪贴板内容过大,最多支持 {limit} 字符",
exPasteTooManyValues: "值过多,最多支持 {limit} 个",
exPasteClipboardReadFailed: "读取剪贴板失败:{message}",
exPastePasted: "已粘贴 {count} 个 IN 条件值",
completion: {
nullValue: "空值",
isNull: "判断是否为 NULL",
@@ -3034,6 +3041,7 @@ export default withEnglishFallback({
shortcutSelectAll: "全选",
shortcutUppercaseSelection: "选中内容转为大写",
shortcutLowercaseSelection: "选中内容转为小写",
shortcutExPasteSqlInCondition: "ExPaste:粘贴为 IN 条件",
shortcutCopyCurrentRow: "复制当前数据行",
shortcutDeleteCurrentRow: "删除当前数据行",
shortcutNewQuery: "新建查询",
+8
View File
@@ -47,6 +47,7 @@ export default withEnglishFallback({
hidePreviewSql: "隱藏 SQL 預覽",
saveSql: "儲存到 SQL 庫",
openSql: "開啟 SQL 檔案",
exPasteSqlInCondition: "ExPaste:貼上為 IN 條件",
theme: "主題",
themeLight: "亮色",
themeDark: "暗色",
@@ -450,6 +451,12 @@ export default withEnglishFallback({
setDefaultDatabase: "設為預設",
defaultDatabase: "預設資料庫",
clearDatabase: "清除資料庫",
exPasteNoValues: "剪貼簿中沒有可用於 IN 條件的值",
exPasteNotList: "未識別到可轉換的多值列表",
exPasteTooLarge: "剪貼簿內容過大,最多支援 {limit} 個字元",
exPasteTooManyValues: "值過多,最多支援 {limit} 個",
exPasteClipboardReadFailed: "讀取剪貼簿失敗:{message}",
exPastePasted: "已貼上 {count} 個 IN 條件值",
completion: {
nullValue: "空值",
isNull: "判斷是否為 NULL",
@@ -2981,6 +2988,7 @@ export default withEnglishFallback({
queryExportKeysetOptimizationEnabledDescription: "僅適用於可安全識別的單表查詢;複雜查詢會自動回退。",
shortcutUppercaseSelection: "選取內容轉為大寫",
shortcutLowercaseSelection: "選取內容轉為小寫",
shortcutExPasteSqlInCondition: "ExPaste:貼上為 IN 條件",
},
driverStore: {
progressJreExtract: "解壓縮 JRE……",