How benwarring/bide works
bIDE is a modeless terminal text editor. The principal workflow is terminal input through the event loop and command handling into buffer edits or file operations, followed by rendering; optional language-server responses are multiplexed into the same loop and provide editor features. The graph preserves documented editing, navigation, search, syntax, pane, clipboard and LSP capabilities. Source excerpts establish the event-loop wiring; other links are limited to relationships visible in the source index or README, so unsampled call details are omitted.
Main entry points: main.c Event loop · command.c Commands · lsp.c LSP client · render.c Screen rendering
Components 24
Editor runtime
- Event loop
src/main.c - Commands
src/command.c - Input handling
src/input.c
Editing and navigation
- Buffers and edits
src/buffer.c - Undo and redo
src/undo.c - File operations
src/files.c - Incremental search
src/search.c - Fuzzy matching
src/fuzzy.c - File and buffer picker
src/list.c - Split panes
src/pane.c
Terminal interface
- Screen rendering
src/render.c - Terminal control
src/terminal.c - Completion popup
src/popup.c - Startup rain
src/rain.c
Language support
- Syntax highlighting
src/syntax.c - LSP client
src/lsp.c - LSP features
src/lspfeat.c - JSON codec
src/json.c
Runtime services
- System wrappers
src/wrappers.c - LSP logging
src/log.c
Other components
- User
- Language servers
- Local files
- Terminal clipboard
Connections 29
- User → Event loop: provides input
README.md - Event loop → Input handling: reads keys
src/main.c - Event loop → Screen rendering: refreshes screen
src/main.c - Event loop → LSP client: polls and dispatches
src/main.c - Event loop → Buffers and edits: opens file
src/main.c - Event loop → Split panes: initializes panes
src/main.c - Event loop → Startup rain: plays startup effect
src/main.c - Input handling → Commands: dispatches actions
src/input.c - Commands → Buffers and edits: edits buffers
src/command.c - Commands → Incremental search: starts search
src/command.c - Commands → File and buffer picker: opens picker
src/command.c - Commands → Split panes: controls panes
src/command.c - Commands → LSP features: invokes features
src/command.c - Buffers and edits → Undo and redo: records mutations
- Buffers and edits → Local files: reads and saves
- File and buffer picker → Fuzzy matching: ranks matches
src/list.c - File and buffer picker → Screen rendering: supplies overlay
- Split panes → Screen rendering: provides views
- Screen rendering → Syntax highlighting: uses highlights
src/render.c - Screen rendering → Terminal control: writes frames
src/render.c - Input handling → Terminal control: reads terminal input
src/input.c - Input handling → Terminal clipboard: requests clipboard
README.md - LSP client → JSON codec: encodes messages
- LSP features → LSP client: uses client services
src/lspfeat.c - LSP features → Completion popup: offers completion
- LSP client → Language servers: communicates over pipes
README.md - LSP client → LSP logging: records transcript
src/lsp.c - LSP client → System wrappers: manages processes
- Terminal control → System wrappers: wraps terminal calls
src/terminal.c