How saeeedhany/ase works
ASE is a GUI text editor with a headless C core and a Qt shell. The main workflow is opening or creating a buffer, editing it in the viewport, and saving it; the GUI also exposes search, project tools, Vim mode, language services, and customization. The core supplies text, undo, configuration, plugins, recovery, and session services, while syntax highlighting is a separate module. Several feature links below rely on README documentation or source-index references because their implementations were not sampled.
Main entry points: main.cpp Application window · editor_viewport.cpp Editor viewport · lsp_client.c LSP client · buffer.c Text buffer
Components 22
Qt editor shell
- Application window
gui/src/main.cpp - Editor viewport
gui/src/editor_viewport.cpp - Command line
gui/src/command_line.h - Project search
gui/src/project_search.cpp
Editing engine
- Text buffer
core/src/buffer.c - Undo history
core/src/undo.c
Language features
- Syntax worker
gui/src/syntax_worker.cpp - Syntax highlighting
modules/syntax/src/syntax.c - LSP integration
gui/src/editor_viewport_lsp.cpp - LSP client
core/src/lsp_client.c - JSON support
core/src/json.c - Process service
core/src/process.c
Customization
- Configuration
core/src/config.c - Theme service
core/src/theme.c - Plugin host
core/src/plugin_host.c - Keybindings
gui/src/keybindings.cpp
Project and state
- Git gutter
core/src/vcs.c - Crash recovery
core/src/recovery.c - Session restore
core/src/session.c
Other components
- Editor user
- Language server
- Local files
Connections 24
- Editor user → Application window: uses
README.md - Application window → Text buffer: opens or creates
gui/src/main.cpp - Application window → Editor viewport: creates
gui/src/main.cpp - Editor viewport → Text buffer: edits
- Editor viewport → Undo history: supports undo
README.md - Editor viewport → Command line: invokes commands
README.md - Editor viewport → Project search: offers project search
README.md - Editor viewport → Syntax worker: requests parsing
- Syntax worker → Syntax highlighting: parses text
- Editor viewport → LSP integration: uses language features
- LSP integration → LSP client: requests LSP services
- LSP client → Process service: spawns server
core/src/lsp_client.c - LSP client → JSON support: encodes messages
- LSP client → Language server: exchanges JSON-RPC
README.md - Application window → Configuration: loads settings
- Application window → Theme service: applies palettes
README.md - Application window → Keybindings: configures shortcuts
gui/src/main.cpp - Command line → Plugin host: runs commands
README.md - Editor viewport → Git gutter: shows git changes
README.md - Application window → Session restore: restores session
gui/src/main.cpp - Application window → Crash recovery: offers recovery
gui/src/main.cpp - Text buffer → Local files: loads and saves
- Session restore → Local files: stores session
- Crash recovery → Local files: stores snapshots