Skip to content

Commit 3d6de3b

Browse files
committed
Add command to copy squashed commit details between HEAD and a selected branch
- create command 'copy squashed commit details'. Should ask the user to which branch should compare, then find all the commits and copy all merged bullet list points and ascii file tree. - rename 'generate commit message with cwc' to 'CWC: Generate Commit Message' - rename 'copy squashed commit details' to 'CWC: Copy Squashed Commit Details' - add 'copy squashed...' to `README.md` ├── README.md └── apps └── editor ├── package.json ├── package.nls.bg.json ├── package.nls.cs.json ├── package.nls.de.json ├── package.nls.es.json ├── package.nls.fr.json ├── package.nls.hu.json ├── package.nls.it.json ├── package.nls.ja.json ├── package.nls.json ├── package.nls.ko.json ├── package.nls.pl.json ├── package.nls.pt-br.json ├── package.nls.ru.json ├── package.nls.tr.json ├── package.nls.zh-cn.json ├── package.nls.zh-tw.json └── src ├── commands │ ├── copy-squashed-commit-details-command.ts │ ├── generate-commit-message-commands │ │ ├── actions │ │ │ ├── get-prompt-data.ts │ │ │ └── run-generate-action.ts │ │ ├── generate-commit-message-commands.ts │ │ ├── index.ts │ │ └── utils │ │ ├── build-commit-message-prompt.ts │ │ ├── generate-commit-message-with-api.ts │ │ ├── get-commit-message-config.ts │ │ └── strip-wrapping-quotes.ts │ ├── index.ts │ ├── select-changed-files-command.ts │ └── select-commit-files-command.ts ├── extension.ts ├── i18n │ └── translations │ └── commands │ ├── copy-squashed-commit-details.ts │ ├── index.ts │ └── select-changed-files.ts └── utils └── commit-message-details.ts
1 parent 6c382bd commit 3d6de3b

23 files changed

Lines changed: 392 additions & 34 deletions

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ Install the [browser extension](https://github.com/robertpiosik/CodeWebChat/tree
186186

187187
- `Commit Changes` - Generate commit message in your preferred style and commit.
188188
- `Apply Commit Message from Clipboard` - Apply a generated commit message from the clipboard.
189+
- `Copy Squashed Commit Details` - Copy squashed prompts and selected files between HEAD and a selected branch.
189190

190191
### History
191192

‎apps/editor/package.json‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@
414414
"command": "codeWebChat.selectParentFolder",
415415
"title": "%codeWebChat.selectParentFolder.title%",
416416
"category": "Code Web Chat"
417+
},
418+
{
419+
"command": "codeWebChat.copySquashedCommitDetails",
420+
"title": "%codeWebChat.copySquashedCommitDetails.title%",
421+
"category": "Code Web Chat",
422+
"icon": "$(copy)"
417423
}
418424
],
419425
"submenus": [
@@ -764,6 +770,11 @@
764770
"command": "codeWebChat.generateCommitMessage",
765771
"group": "navigation@1",
766772
"when": "scmProvider == git"
773+
},
774+
{
775+
"command": "codeWebChat.copySquashedCommitDetails",
776+
"group": "navigation@2",
777+
"when": "scmProvider == git"
767778
}
768779
],
769780
"editor/title": [

‎apps/editor/package.nls.bg.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "Намери в папката...",
3939
"codeWebChat.createNewCheckpoint.title": "Създай нова контролна точка",
4040
"codeWebChat.settings.title": "Настройки",
41-
"codeWebChat.generateCommitMessage.title": "Генерирай commit съобщение с CWC",
41+
"codeWebChat.generateCommitMessage.title": "CWC: Генерирай commit съобщение",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "Потвърди промените",
4343
"codeWebChat.setRanges.title": "Задай диапазони...",
4444
"codeWebChat.searchFiles.title": "Търсене на файлове...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "Маркирай файлове от commit...",
5555
"codeWebChat.selectClipboardPaths.title": "Маркирай пътищата от клипборда...",
5656
"codeWebChat.selectChangedFiles.title": "Избери променени файлове...",
57-
"codeWebChat.selectParentFolder.title": "Избери родителска папка..."
57+
"codeWebChat.selectParentFolder.title": "Избери родителска папка...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: Копиране на детайлите на обединените къмити"
5859
}

‎apps/editor/package.nls.cs.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "Najít ve složce...",
3939
"codeWebChat.createNewCheckpoint.title": "Vytvořit nový kontrolní bod",
4040
"codeWebChat.settings.title": "Nastavení",
41-
"codeWebChat.generateCommitMessage.title": "Generovat zprávu commitu pomocí CWC",
41+
"codeWebChat.generateCommitMessage.title": "CWC: Generovat zprávu commitu",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "Potvrdit změny",
4343
"codeWebChat.setRanges.title": "Nastavit rozsahy...",
4444
"codeWebChat.searchFiles.title": "Hledat soubory...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "Vybrat soubory z commitu...",
5555
"codeWebChat.selectClipboardPaths.title": "Vybrat cesty ze schránky...",
5656
"codeWebChat.selectChangedFiles.title": "Vybrat změněné soubory...",
57-
"codeWebChat.selectParentFolder.title": "Vybrat nadřazenou složku..."
57+
"codeWebChat.selectParentFolder.title": "Vybrat nadřazenou složku...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: Kopírovat podrobnosti sloučených commitů"
5859
}

‎apps/editor/package.nls.de.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "In Ordner suchen...",
3939
"codeWebChat.createNewCheckpoint.title": "Neuen Checkpoint erstellen",
4040
"codeWebChat.settings.title": "Einstellungen",
41-
"codeWebChat.generateCommitMessage.title": "Commit-Nachricht mit CWC generieren",
41+
"codeWebChat.generateCommitMessage.title": "CWC: Commit-Nachricht generieren",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "Änderungen committen",
4343
"codeWebChat.setRanges.title": "Bereiche festlegen...",
4444
"codeWebChat.searchFiles.title": "Dateien suchen...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "Dateien aus Commit auswählen...",
5555
"codeWebChat.selectClipboardPaths.title": "Zwischenablage-Pfade auswählen...",
5656
"codeWebChat.selectChangedFiles.title": "Geänderte Dateien auswählen...",
57-
"codeWebChat.selectParentFolder.title": "Übergeordneten Ordner auswählen..."
57+
"codeWebChat.selectParentFolder.title": "Übergeordneten Ordner auswählen...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: Details der zusammengefassten Commits kopieren"
5859
}

‎apps/editor/package.nls.es.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "Buscar en carpeta...",
3939
"codeWebChat.createNewCheckpoint.title": "Crear nuevo punto de control",
4040
"codeWebChat.settings.title": "Configuración",
41-
"codeWebChat.generateCommitMessage.title": "Generar mensaje de commit con CWC",
41+
"codeWebChat.generateCommitMessage.title": "CWC: Generar mensaje de commit",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "Hacer commit de los cambios",
4343
"codeWebChat.setRanges.title": "Establecer rangos...",
4444
"codeWebChat.searchFiles.title": "Buscar archivos...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "Marcar archivos de un commit...",
5555
"codeWebChat.selectClipboardPaths.title": "Seleccionar rutas del portapapeles...",
5656
"codeWebChat.selectChangedFiles.title": "Seleccionar archivos cambiados...",
57-
"codeWebChat.selectParentFolder.title": "Seleccionar carpeta principal..."
57+
"codeWebChat.selectParentFolder.title": "Seleccionar carpeta principal...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: Copiar detalles de commits agrupados"
5859
}

‎apps/editor/package.nls.fr.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "Rechercher dans le dossier...",
3939
"codeWebChat.createNewCheckpoint.title": "Créer un nouveau point de contrôle",
4040
"codeWebChat.settings.title": "Paramètres",
41-
"codeWebChat.generateCommitMessage.title": "Générer un message de commit avec CWC",
41+
"codeWebChat.generateCommitMessage.title": "CWC: Générer un message de commit",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "Valider les modifications",
4343
"codeWebChat.setRanges.title": "Définir les plages...",
4444
"codeWebChat.searchFiles.title": "Rechercher des fichiers...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "Cocher les fichiers d'un commit...",
5555
"codeWebChat.selectClipboardPaths.title": "Sélectionner les chemins du presse-papiers...",
5656
"codeWebChat.selectChangedFiles.title": "Sélectionner les fichiers modifiés...",
57-
"codeWebChat.selectParentFolder.title": "Sélectionner le dossier parent..."
57+
"codeWebChat.selectParentFolder.title": "Sélectionner le dossier parent...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: Copier les détails des commits fusionnés"
5859
}

‎apps/editor/package.nls.hu.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "Keresés a mappában...",
3939
"codeWebChat.createNewCheckpoint.title": "Új ellenőrzőpont létrehozása",
4040
"codeWebChat.settings.title": "Beállítások",
41-
"codeWebChat.generateCommitMessage.title": "Commit üzenet generálása CWC-vel",
41+
"codeWebChat.generateCommitMessage.title": "CWC: Commit üzenet generálása",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "Változások commitálása",
4343
"codeWebChat.setRanges.title": "Tartományok beállítása...",
4444
"codeWebChat.searchFiles.title": "Fájlok keresése...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "Commit fájljainak kijelölése...",
5555
"codeWebChat.selectClipboardPaths.title": "Vágólap útvonalainak kijelölése...",
5656
"codeWebChat.selectChangedFiles.title": "Módosított fájlok kiválasztása...",
57-
"codeWebChat.selectParentFolder.title": "Szülő mappa kiválasztása..."
57+
"codeWebChat.selectParentFolder.title": "Szülő mappa kiválasztása...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: Egyesített commit részletek másolása"
5859
}

‎apps/editor/package.nls.it.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "Trova nella cartella...",
3939
"codeWebChat.createNewCheckpoint.title": "Crea nuovo punto di controllo",
4040
"codeWebChat.settings.title": "Impostazioni",
41-
"codeWebChat.generateCommitMessage.title": "Genera messaggio di commit con CWC",
41+
"codeWebChat.generateCommitMessage.title": "CWC: Genera messaggio di commit",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "Esegui commit delle modifiche",
4343
"codeWebChat.setRanges.title": "Imposta intervalli...",
4444
"codeWebChat.searchFiles.title": "Cerca file...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "Seleziona i file da un commit...",
5555
"codeWebChat.selectClipboardPaths.title": "Seleziona percorsi dagli appunti...",
5656
"codeWebChat.selectChangedFiles.title": "Seleziona i file modificati...",
57-
"codeWebChat.selectParentFolder.title": "Seleziona cartella superiore..."
57+
"codeWebChat.selectParentFolder.title": "Seleziona cartella superiore...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: Copia i dettagli dei commit uniti"
5859
}

‎apps/editor/package.nls.ja.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"codeWebChat.findInFolder.title": "フォルダー内を検索...",
3939
"codeWebChat.createNewCheckpoint.title": "新しいチェックポイントを作成",
4040
"codeWebChat.settings.title": "設定",
41-
"codeWebChat.generateCommitMessage.title": "CWCでコミットメッセージを生成",
41+
"codeWebChat.generateCommitMessage.title": "CWC: コミットメッセージを生成",
4242
"codeWebChat.generateCommitMessageAndCommit.title": "変更をコミット",
4343
"codeWebChat.setRanges.title": "範囲を設定...",
4444
"codeWebChat.searchFiles.title": "ファイルを検索...",
@@ -54,5 +54,6 @@
5454
"codeWebChat.selectCommitFiles.title": "コミットからのファイルを選択...",
5555
"codeWebChat.selectClipboardPaths.title": "クリップボードのパスを選択...",
5656
"codeWebChat.selectChangedFiles.title": "変更されたファイルを選択...",
57-
"codeWebChat.selectParentFolder.title": "親フォルダーを選択..."
57+
"codeWebChat.selectParentFolder.title": "親フォルダーを選択...",
58+
"codeWebChat.copySquashedCommitDetails.title": "CWC: スカッシュされたコミットの詳細をコピー"
5859
}

0 commit comments

Comments
 (0)