How luce-editor/luce works
Luce is a native desktop code editor. The primary workflow is opening a project or file, editing its text with language highlighting and editor services, and using the surrounding UI for navigation, preview, and source control. The graph also preserves documented terminal and Lua-plugin capabilities. Relationships from sampled code and the SOURCE INDEX are cited; README-only subsystem links are documented capabilities, not verified call paths.
Main entry points: app.cpp App Shell · icon_manager.cpp Icon Manager · editor_view.cpp Text Editor · main.cpp Desktop Entry
Components 26
Application Runtime
- Desktop Entry
src/main.cpp - App Shell
src/ui/app.cpp - Tabs and Splits
src/ui/tab_bar.cpp - Icon Manager
src/ui/icon_manager.cpp - JSON Support
include/external/json.hpp - SVG Parser
include/nanosvg.h - SVG Rasterizer
include/nanosvgrast.h - Image Loader
src/ui/stb_image.h
Editing Services
- Text Editor
src/editor/editor_view.cpp - Text Buffer
src/editor/text_buffer.cpp - Syntax Highlighting
src/syntax/syntax_highlighter.cpp - Language Lexers
src/syntax - Symbol Index
src/editor/symbol_index.cpp - Diagnostics
src/editor/diagnostic_runner.cpp
Workspace Features
- File Explorer
src/ui/file_explorer.cpp - Command Palette
src/ui/command_palette.cpp - Markdown Preview
src/ui/markdown_preview.cpp - Git Integration
src/editor/git_manager.cpp - Settings
src/ui/settings_manager.cpp - Themes
src/ui/theme.cpp
Extensions and Platform
- Plugin Manager
src/plugin/plugin_manager.cpp - Lua Plugins
src/plugin/lua_plugin.cpp - Embedded Terminal
src/ui/terminal_panel.cpp - Platform Services
src/platform.cpp
Other components
- Editor User
- Shell Process
Connections 25
- Editor User → Desktop Entry: starts editor
- Desktop Entry → App Shell: runs app
src/main.cpp - App Shell → Tabs and Splits: opens files
src/ui/app.cpp - Tabs and Splits → Text Editor: hosts editor
- Text Editor → Text Buffer: edits text
- Text Editor → Syntax Highlighting: highlights text
- Syntax Highlighting → Language Lexers: uses lexers
- Text Editor → Symbol Index: queries symbols
src/editor/editor_view.cpp - Text Editor → Diagnostics: shows diagnostics
- App Shell → File Explorer: owns workspace UI
- App Shell → Command Palette: owns commands
- App Shell → Markdown Preview: offers preview
- App Shell → Git Integration: invokes Git actions
src/ui/app.cpp - App Shell → Settings: loads settings
src/ui/app.cpp - App Shell → Themes: owns theme state
- App Shell → Icon Manager: initializes icons
- Icon Manager → JSON Support: reads mappings
src/ui/icon_manager.cpp - Icon Manager → SVG Parser: parses SVG
src/ui/icon_manager.cpp - Icon Manager → SVG Rasterizer: rasterizes SVG
src/ui/icon_manager.cpp - Icon Manager → Image Loader: loads images
src/ui/icon_manager.cpp - App Shell → Plugin Manager: owns plugins
- Plugin Manager → Lua Plugins: loads scripts
- App Shell → Embedded Terminal: offers terminal
- Embedded Terminal → Platform Services: spawns process
- Platform Services → Shell Process: runs command