Text Editor
Edit text and code clips directly within mahpastes. Modify content, fix typos, or update code snippets without leaving the app.
Opening the Editor
- Click the menu button (three dots) on any text-based clip and select Edit
- The editor opens full-screen with a dark theme (dark background, light text)
- Make your changes
- Click Save to overwrite the original, or Save As to create a new clip with the changes
Clicking a text preview in the gallery also opens the editor directly.

Text-based clips include:
- Plain text
- Code (any language)
- JSON
- HTML
Editor Features
Monospace Font
All text displays in IBM Plex Mono for:
- Consistent character width
- Easy code reading
- Proper alignment of structured data
Full Content View
Unlike the gallery preview (limited to 500 characters), the editor shows the complete content.
Preserved Formatting
- Whitespace is preserved exactly
- Indentation remains intact
- Line breaks are maintained
Editing Text
Basic Operations
Standard text editing operations work as expected:
- Type to insert text
- Backspace/Delete to remove
- Select text with mouse or keyboard
- Cut, copy, paste with standard shortcuts
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Cmd/Ctrl + A | Select all |
| Cmd/Ctrl + C | Copy |
| Cmd/Ctrl + V | Paste |
| Cmd/Ctrl + X | Cut |
| Cmd/Ctrl + Z | Undo |
| Cmd/Ctrl + Shift + Z | Redo |
| Cmd/Ctrl + Y | Redo (alternative) |
| Cmd/Ctrl + S | Save as new clip |
| Esc | Close editor |
Working with Different Content Types
Plain Text
Edit notes, messages, or any plain text content.
Example uses:
- Fix typos in saved notes
- Update copied messages
- Modify text before re-copying
Code
Edit code snippets of any programming language.
Tips:
- Indentation is preserved
- Syntax is not highlighted (plain text view)
- Great for quick edits to snippets
JSON
Edit JSON content with proper formatting.
Tips:
- Validate JSON after editing
- Keep proper bracket matching
- Maintain correct quote usage
{
"name": "example",
"value": 42
}
HTML
Edit HTML source code directly.
Tips:
- Tags display as source (not rendered)
- Good for fixing markup issues
- Check syntax before saving
Saving Changes
Save (Overwrite)
Click Save to overwrite the original clip with your edits. The filename remains the same and the content type is preserved.
Save as New Clip
Click Save As (or press Cmd/Ctrl + S) to create a new clip with your edits. The original clip is preserved unchanged, and the new clip is saved with _edited appended to the filename.
The content type (text/plain, application/json, etc.) is preserved when saving with either method.
Cancel
Click the close button (X) or press Esc to discard changes and close the editor.
Use Cases
Fix Typos
- Open clip in editor
- Find and fix the typo
- Save
- Copy the corrected content
Modify Code Snippets
- Store frequently-used code as clips
- Open and edit for different contexts
- Copy the modified version
- Original stays intact in archive (if archived)
Update Configuration
- Paste a config file (JSON, YAML, etc.)
- Edit values as needed
- Save the updated version
- Copy path or content for use
Combine Text
- Open a text clip
- Paste additional content from clipboard
- Arrange as needed
- Save the combined result
Tips
For Code
- Archive important snippets
- Use descriptive filenames when possible
- Edit copies, not originals (archive first)
For Long Text
- The editor scrolls for long content
- Use search (in your browser) to find text if needed
- Consider splitting very long content
For Structured Data
- Be careful with JSON/YAML syntax
- Preserve proper indentation
- Validate after editing if critical
Limitations
- No syntax highlighting (plain textarea, not a code editor)
- No code completion
- No line numbers
- Single-file editing only
- Spellcheck is disabled
For complex code editing, use a dedicated code editor and paste the result into mahpastes.