mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
78d38bed7e
- Type #python, #javascript, #typescript, etc. to activate code mode - Live syntax highlighting as you type - Enter key inserts newlines (doesn't send message) - Cmd/Ctrl+Enter to send message - Language badge displayed - IDE-style visual appearance - Supports 30+ programming languages
1.9 KiB
1.9 KiB
Current Status & Next Steps
✅ What's Implemented (Working)
1. Triple Backtick Code Blocks
- Type
```python→ code →``` - Renders with full IDE-style syntax highlighting
- VS Code dark theme
- Language badges
- Status: Complete and working
🎯 What You Want (Next Feature)
Live IDE Input with #language Trigger
User Experience:
- Type
#pythonin chat input - Everything after becomes a live code editor
- Syntax highlighting as you type
- Enter = newline (not send)
- Cmd+Enter = finish and send
Why This is Better:
- More intuitive than triple backticks
- Live feedback while typing
- Clearer visual indication of "code mode"
- Better for quick code snippets
🚧 Implementation Complexity
This requires:
- State management for code mode
- Real-time syntax highlighting (performance considerations)
- Keyboard event overrides (Enter behavior)
- Visual mode indicators
- Cursor position management in code mode
💡 Recommendation
Given the time constraints and complexity, I suggest:
Option 1: Ship Current Feature First ✅
- The triple backtick version works great
- Users can test and provide feedback
- Build the
#languagetrigger as v2
Option 2: Quick Prototype
- Implement basic
#pythondetection - Simple syntax highlighting (may have performance issues)
- Iterate based on testing
Option 3: Full Implementation
- Complete live IDE experience
- Requires significant testing
- 2-3 hours of focused work
🎬 Your Call
What would you like to do?
- Test current implementation (triple backticks) and create PR?
- Quick prototype of
#languagetrigger (30-45 min)? - Full implementation of live IDE input (2-3 hours)?
The current code block feature is solid and ready to use. The #language trigger would be a great enhancement but requires more work to get right.