How funlightstudios/code-editor-with-ai works
Funlight Editor is a PySide6 code editor with file and tab management, editor assistance, customizable presentation, and an AI chat workflow. Users launch the desktop app, open or create files, edit code, and optionally request analysis, suggestions, or edits through the AI assistant. The README documents the product capabilities; sampled source confirms several UI connections and editor dependencies, but does not expose all runtime wiring. DEMOFILE.py is retained as a core module, though its role is unclear from the available evidence.
Main entry points: editor_window.py Editor window · code_editor.py Code editor · main.py Application entry · ai_assistant.py AI assistant UI
Components 18
Application UI
- Application entry
main.py - Editor window
gui/editor_window.py - Sidebar and search
gui/sidebar.py - Find and replace
gui/dialogs/search_dialog.py - Editor settings
gui/dialogs/settings_dialog.py - Demo module
DEMOFILE.py
Code Editing
- Code editor
gui/code_editor.py - Code minimap
gui/minimap.py - Python highlighter
syntax/python_highlighter.py - Autocomplete
utils/autocomplete.py - Line numbers
utils/line_numbers.py - Line number area
gui/line_number_area.py
AI Assistance
- AI assistant UI
gui/ai_assistant.py - AI API integration
chatgpt_api.py
Presentation
- Theme definitions
themes.py - Windsurf theme
themes/windsurf_theme.py - Translations
translations.py
Other components
- Editor user
Connections 19
- Editor user → Application entry: launches
README.md - Application entry → Editor window: opens editor
README.md - Editor user → Editor window: edits files
README.md - Editor window → Sidebar and search: routes settings
main.py - Editor window → Find and replace: opens search
gui/editor_window.py - Editor window → Editor settings: opens settings
gui/editor_window.py - Editor window → Code editor: manages tabs
gui/editor_window.py - Code editor → Code minimap: provides editor view
gui/code_editor.py - Code editor → Python highlighter: highlights syntax
gui/code_editor.py - Code editor → Autocomplete: requests completions
gui/code_editor.py - Code editor → Line numbers: displays line numbers
gui/code_editor.py - Code editor → Line number area: paints line area
- Editor user → AI assistant UI: requests assistance
README.md - AI assistant UI → AI API integration: requests AI response
README.md - Editor user → Editor settings: customizes editor
README.md - Editor window → Theme definitions: applies themes
- Theme definitions → Python highlighter: supplies colors
- Application entry → Translations: loads translations
main.py - Editor window → Translations: uses translations
gui/editor_window.py