Skip to content

Commit ec6f399

Browse files
committed
Add command to apply commit message from clipboard via command palette
- add another command that is specifically meant for command palette: "apply commit message from clipboard" - use this full text while keeping the other command codeWebChat.applyCommitMessageFromClipboard hidden from command palette - add missing commit message related commands to readme ├── 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 │ └── generate-commit-message-command │ ├── actions │ │ ├── get-prompt-data.ts │ │ └── run-generate-action.ts │ ├── generate-commit-message-command.ts │ └── index.ts └── extension.ts
1 parent 8c73fe3 commit ec6f399

19 files changed

Lines changed: 38 additions & 5 deletions

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ Install the [browser extension](https://github.com/robertpiosik/CodeWebChat/tree
185185
### Commit messages
186186

187187
- `Commit Changes` - Generate commit message in your preferred style and commit.
188+
- `Copy Commit Message Prompt` - Copy the prompt for generating a commit message to the clipboard.
189+
- `Apply Commit Message from Clipboard` - Apply a generated commit message from the clipboard.
188190

189191
### History
190192

‎apps/editor/package.json‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@
334334
"category": "Code Web Chat",
335335
"icon": "$(clippy)"
336336
},
337+
{
338+
"command": "codeWebChat.applyCommitMessageFromClipboardPalette",
339+
"title": "%codeWebChat.applyCommitMessageFromClipboardPalette.title%",
340+
"category": "Code Web Chat"
341+
},
337342
{
338343
"command": "codeWebChat.generateCommitMessageAndCommit",
339344
"title": "%codeWebChat.generateCommitMessageAndCommit.title%",
@@ -560,10 +565,6 @@
560565
"command": "codeWebChat.generateCommitMessage",
561566
"when": "false"
562567
},
563-
{
564-
"command": "codeWebChat.copyCommitMessagePrompt",
565-
"when": "false"
566-
},
567568
{
568569
"command": "codeWebChat.applyCommitMessageFromClipboard",
569570
"when": "false"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "Генерирай commit съобщение с CWC",
4242
"codeWebChat.copyCommitMessagePrompt.title": "Копирай промпт за commit",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "Приложи от клипборда",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Приложи commit съобщение от клипборда",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "Потвърди промените",
4546
"codeWebChat.setRanges.title": "Задай диапазони...",
4647
"codeWebChat.searchFiles.title": "Търсене на файлове...",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "Generovat zprávu commitu pomocí CWC",
4242
"codeWebChat.copyCommitMessagePrompt.title": "Kopírovat prompt zprávy commitu",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "Použít ze schránky",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Použít zprávu commitu ze schránky",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "Potvrdit změny",
4546
"codeWebChat.setRanges.title": "Nastavit rozsahy...",
4647
"codeWebChat.searchFiles.title": "Hledat soubory...",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "Commit-Nachricht mit CWC generieren",
4242
"codeWebChat.copyCommitMessagePrompt.title": "Commit-Nachricht-Prompt kopieren",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "Aus Zwischenablage anwenden",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Commit-Nachricht aus Zwischenablage anwenden",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "Änderungen committen",
4546
"codeWebChat.setRanges.title": "Bereiche festlegen...",
4647
"codeWebChat.searchFiles.title": "Dateien suchen...",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "Generar mensaje de commit con CWC",
4242
"codeWebChat.copyCommitMessagePrompt.title": "Copiar prompt del mensaje de commit",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "Aplicar desde el portapapeles",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Aplicar mensaje de commit desde el portapapeles",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "Hacer commit de los cambios",
4546
"codeWebChat.setRanges.title": "Establecer rangos...",
4647
"codeWebChat.searchFiles.title": "Buscar archivos...",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "Générer un message de commit avec CWC",
4242
"codeWebChat.copyCommitMessagePrompt.title": "Copiar le prompt du message de commit",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "Appliquer depuis le presse-papiers",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Appliquer le message de commit depuis le presse-papiers",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "Valider les modifications",
4546
"codeWebChat.setRanges.title": "Définir les plages...",
4647
"codeWebChat.searchFiles.title": "Rechercher des fichiers...",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "Commit üzenet generálása CWC-vel",
4242
"codeWebChat.copyCommitMessagePrompt.title": "Commit üzenet prompt másolása",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "Alkalmazás vágólapról",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Commit üzenet alkalmazása vágólapról",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "Változások commitálása",
4546
"codeWebChat.setRanges.title": "Tartományok beállítása...",
4647
"codeWebChat.searchFiles.title": "Fájlok keresése...",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "Genera messaggio di commit con CWC",
4242
"codeWebChat.copyCommitMessagePrompt.title": "Copia prompt del messaggio di commit",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "Applica dagli appunti",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Applica messaggio di commit dagli appunti",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "Esegui commit delle modifiche",
4546
"codeWebChat.setRanges.title": "Imposta intervalli...",
4647
"codeWebChat.searchFiles.title": "Cerca file...",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"codeWebChat.generateCommitMessage.title": "CWCでコミットメッセージを生成",
4242
"codeWebChat.copyCommitMessagePrompt.title": "コミットメッセージのプロンプトをコピー",
4343
"codeWebChat.applyCommitMessageFromClipboard.title": "クリップボードから適用",
44+
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "クリップボードからコミットメッセージを適用",
4445
"codeWebChat.generateCommitMessageAndCommit.title": "変更をコミット",
4546
"codeWebChat.setRanges.title": "範囲を設定...",
4647
"codeWebChat.searchFiles.title": "ファイルを検索...",

0 commit comments

Comments
 (0)