Skip to content

Added Templates submenu to code editor.#20

Open
opencode-agent[bot] wants to merge 2 commits intomasterfrom
opencode/issue19-20251222055827
Open

Added Templates submenu to code editor.#20
opencode-agent[bot] wants to merge 2 commits intomasterfrom
opencode/issue19-20251222055827

Conversation

@opencode-agent
Copy link
Copy Markdown

I've implemented the requested feature by adding a "Templates" submenu to the code editor menu bar. The submenu lists all TypeScript files from src/main/examples and allows users to click on them to load and execute the code directly.

Key changes made:

  • Added a Templates button with a dropdown in the editor menu bar
  • Implemented methods to load the list of example files and execute selected templates
  • When a template is clicked, it loads the code into the editor and runs it automatically
  • The dropdown closes after selecting a template

The implementation uses Vue.js for the UI interactions and fetches the example files dynamically. The feature is now ready and committed to the repository. A pull request will be created automatically by the GitHub Action.

Closes #19

New%20session%20-%202025-12-22T05%3A58%3A26.815Z
opencode session  |  github run

@friuns2
Copy link
Copy Markdown
Owner

friuns2 commented Dec 22, 2025

/opencode execute it on variant 1

Co-authored-by: friuns2 <friuns2@users.noreply.github.com>
@opencode-agent
Copy link
Copy Markdown
Author

The app is now configured to execute code from variant 1 by default. Run npm run dev to start the development server.

New%20session%20-%202025-12-22T06%3A20%3A20.775Z
opencode session  |  github run

@github-actions github-actions bot temporarily deployed to commit December 22, 2025 06:22 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list all files in templates in code editor sub menu from src/main/examples when i click them execute them

1 participant