OnEdit User Guide
Welcome to OnEdit, a native macOS text editor focused on speed, clarity, and a glass-inspired interface.
Get Started
- Choose File > New Tab (⌘T) to create a document.
- Choose File > Open... (⌘O) or drag a file into the window.
- Choose File > Open Folder... (⇧⌘O) to set a workspace.
- Choose File > Open Recent to reopen files.
- Use the sidebar segmented control to switch between Files and Bookmarks.
Workspaces and Tabs
- Choose File > New Window (⌘N) for a separate workspace.
- Close a tab with ⌘W; close all tabs with ⌥⌘W.
- Control-click a tab for Close Other Tabs and Close Tabs to the Right.
- The main window restores tabs and the workspace on launch.
Editing
- OnEdit edits plain text; rich text is converted on paste.
- Syntax highlighting is applied automatically by file extension.
- Toggle line numbers with View > Show Line Numbers (⇧⌘L) or the editor context menu.
- Press Option (⌥) or ⌥⌘C to toggle Column Selection Mode; press again to exit.
- Drag to select a column block; typing edits multiple lines at once.
- Column Selection Mode is also available in Edit > Column Selection Mode and the editor context menu.
- Format Document (⌘L) supports JSON and C-style languages.
- Use the toolbar Text Options to change font, size, and text color.
Search & Replace
| Shortcut | Action |
|---|---|
| ⌘F | Find |
| ⌥⌘F | Find & Replace |
| ⌘G | Find Next |
| ⇧⌘G | Find Previous |
| ⌘E | Use Selection for Find |
Preview & Media
- Media files (images, videos, audio) open in a dedicated preview tab.
- Drag files into the editor to insert their file path (images/videos render a preview if supported).
- WebP and SVG files are fully supported.
Bookmarks & Recents
- Press ⌘D or click the bookmark icon in the toolbar to bookmark a file.
- The "Recents" section in the sidebar tracks your last 10 opened files.
- Bookmarks are persisted across app launches.
Tools
- Sort Lines: Sort selected lines alphabetically (ascending/descending).
- Remove Duplicate Lines: Clean up lists instantly.
- Change Case: Convert selection to Upper Case, Lower Case, or Title Case.
Appearance
- Switch themes in View > Theme (Light, Dark, System).
- Toggle "Vibrancy" (glass effect) in the View menu.
- Editor background textures (Paper, Wood, Iron) are available in View > Texture.
Status Bar
- Located at the bottom of the window, it shows:
- Line/Column position
- Selection character count
- Current file encoding (e.g., UTF-8)
- Texture selector shortcut
Syntax Highlighting
- Supported languages include: Swift, Python, JavaScript, TypeScript, HTML, CSS, JSON, Markdown, YAML, XML, SQL, C, C++, Ruby, PHP, Java, Go, Rust, and Shell Script.
- The editor auto-detects language based on file extension.
- Manually change language via View > Syntax.
Troubleshooting
- A file opens in preview and can't be edited: Some formats are preview-only. Convert to a text format to edit.
- File access prompts: Files outside your workspace require permission the first time you open them. Choose File > Open or drag the file into the window.
- Format Document doesn't change anything: Formatting currently targets JSON and C-style languages.