Editor Pane
The left pane is aCodeEditor component built into Freya. After any file conversion, the converted Markdown text is loaded into the editor automatically and is immediately editable.
Key editor characteristics:
- Language: Markdown syntax highlighting is active by default (
LanguageId::Markdown). - Font:
Consolas, 14 px. - Theme: GitHub Dark editor theme — background
rgb(15, 18, 24), textrgb(196, 206, 219), cursorrgb(56, 139, 255), selected-line backgroundrgb(22, 26, 36). - Gutter: Line numbers are hidden (
gutter: false) for a cleaner reading experience. - Focus: The editor receives
a11y_auto_focusso it is ready for keyboard input as soon as the app opens or a file is loaded.
The editor content is stored as a
Rope data structure (from the text_edit crate), which is efficient for large text but is entirely in memory. Changes are not auto-saved — use Ctrl+S or File → Save to persist your work.Preview Pane
The right pane is aMarkdownViewer wrapped in a ScrollView. It renders the current editor rope content as formatted Markdown using the following visual styling:
The preview pane scrolls independently of the editor pane. Headings, code fences, blockquotes, bold and italic text, horizontal rules, and inline code are all rendered. The preview is read-only — editing is done exclusively in the left pane.
Saving Your File
PressCtrl+S or select File → Save from the menu bar to open the native save dialog.
1
Trigger the save dialog
Press
Ctrl+S or click File → Save. The native OS save dialog opens. The dialog is pre-configured to filter for Markdown files (.md).2
Confirm the filename
Bridgex pre-fills the filename based on the source file that was converted:
- If a file was opened earlier in the session, the default name is the source filename as-is (e.g.,
report.xlsx). You can rename it in the dialog; the save filter ensures only.mdis written. - If no file was opened (you typed directly into the editor), the default name is
document.md.
3
File is written to disk
Bridgex writes the current editor content as plain UTF-8 text to the selected path. On success, the internal
current_file_path is updated to the new save location, so future saves will suggest the same path.Keyboard Shortcuts
All shortcuts useCtrl on Windows and Linux. On macOS, Freya also accepts Meta (⌘) as the modifier.
Shortcuts are registered as global key-down handlers on the root
rect container, so they work regardless of which element has pointer focus.
Limitations
Bridgex’s editor is intentionally lightweight. It is designed for quick review and small corrections to converted output — not for authoring long Markdown documents from scratch. The following features are not available in the current editor:- Find and replace
- Multi-cursor or column selection
- Undo / redo history beyond what the underlying
Ropesupports - Line numbers (gutter is disabled)
- Folding, auto-completion, or linting
- Drag-and-drop of text
- Spell checking
.md file into a dedicated editor such as VS Code, Typora, or Obsidian after saving from Bridgex.