Skip to content

Commit

Permalink
Removed test command
Browse files Browse the repository at this point in the history
  • Loading branch information
Kynlo committed Jan 31, 2024
1 parent 3227d24 commit cd2c0a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/Cody.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"commands": {
"testcommand": {
"description": "testcommand",
"prompt": "PROMPT HERE",
"context": {
"codebase": true,
"selection": true
}
},
"explain-code-flow": {
"description": "explain-code-flow",
"prompt": "Explain the logical flow of the code, focusing on how each section contributes to the overall functionality. Assume the audience is an experienced programmer.",
Expand Down
12 changes: 10 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h1>

<!-- Command Context Dropdown -->
<div class="checkbox-group">
<label>
<label style="display: block; margin-bottom: 10px;">
Command Context (Click an item to select):
</label>
<div class="context-options" id="contextOptions">
Expand Down Expand Up @@ -189,7 +189,7 @@ <h1>
<div class="modal" id="jsonModal">
<div class="modal-content">
<!-- Ensure class="close" is present -->
<span class="close">
<span class="close" onclick="document.getElementById('jsonModal').style.display='none'">
×
</span>
<pre id="jsonDisplay"></pre>
Expand All @@ -198,6 +198,14 @@ <h1>
</button>
</div>
</div>

<script>
document.addEventListener('keydown', function(event) {
if (event.key === 'Escape') {
document.getElementById('jsonModal').style.display = 'none';
}
});
</script>

<!-- Create Command Button -->
<button id="createCommand" title="Click to create the command and prompt to save as a JSON file.">
Expand Down

0 comments on commit cd2c0a8

Please sign in to comment.