Skip to content

Commit

Permalink
Add play icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-McKanna-Test committed Dec 17, 2024
1 parent 0b85226 commit bab8359
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ Then, a single iteration of the workflow might look like this:
3. Copy your XML prompt with the keyboard shortcut or button.
4. Paste the content into the LLM and submit.
5. Copy the LLM contents, which should be in XML format if you followed the system message instructions.
6. With the Files2Prompt view open, paste the LLM content with the keyboard shortcut. This will update the file contents or make brand new files.
6. With the Files2Prompt view open, paste the LLM content with the keyboard shortcut or press the "play" icon in the UI. This will update the file contents or make brand new files.
7. Loop back to step 1.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Files2Prompt",
"icon": "./files2prompt-icon.webp",
"description": "Copy file contents for LLM prompts",
"version": "1.7.2",
"version": "1.7.3",
"publisher": "thomas-mckanna",
"keywords": [
"files",
Expand Down Expand Up @@ -87,7 +87,11 @@
},
{
"command": "files2prompt.pasteXml",
"title": "Paste XML"
"title": "Paste XML",
"icon": {
"light": "resources/light/play.svg",
"dark": "resources/dark/play.svg"
}
},
{
"command": "files2prompt.copyOpenFiles",
Expand All @@ -96,6 +100,11 @@
],
"menus": {
"view/title": [
{
"command": "files2prompt.pasteXml",
"when": "view == files2PromptView",
"group": "navigation@0"
},
{
"command": "files2prompt.copyFiles",
"when": "view == files2PromptView",
Expand Down
7 changes: 7 additions & 0 deletions resources/dark/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions resources/light/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ async function processXmlContent(xmlContent: string) {
}

if (!jsonObj || !jsonObj.files || !jsonObj.files.file) {
vscode.window.showErrorMessage("No <file> elements found in XML content.");
vscode.window.showErrorMessage("No file content found. See documentation for usage.");
return;
}

Expand Down

0 comments on commit bab8359

Please sign in to comment.