A minimalist, lightweight text editor built with Qt6, featuring a clean interface and essential editing functionality.
- New File - Start with a blank document
- Open File - Open any text file from your system
- Open Folder - Browse and select folders
- Save File - Save your work to any location
- File Status - Visual feedback when files are saved
- Plain Text Editing - Fast and responsive text editing
- Monospace Font - JetBrains Mono 14pt for comfortable coding/writing
- Large Viewing Area - Distraction-free editing experience
- Menu Bar - Classic menu-driven interface
- File Menu - New, Open File, Open Folder
- Edit Menu - Run, Save File, Exit
- Clean Design - Minimalist UI focused on content
- 1200x800 Window - Comfortable default size
Ubuntu/Debian:
sudo apt install qt6-base-devFedora:
sudo dnf install qt6-qtbase-develArch Linux:
sudo pacman -S qt6-basegit clone https://github.com/Max-Mend/simple-text-editor.git
cd simple-text-editor
mkdir build && cd build
cmake ..
make
./text-editorg++ main.cpp -o text-editor $(pkg-config --cflags --libs Qt6Widgets)
./text-editor- Click File → Open File or use keyboard shortcuts
- Select your file from the dialog
- Start editing
- Click Edit → Save File
- Choose location and filename
- Confirmation appears in status bar
- Use standard text editing shortcuts (Ctrl+C, Ctrl+V, Ctrl+X)
- Menu shortcuts available with Alt key
- Qt6 - Cross-platform application framework
- QPlainTextEdit - Efficient plain text editing widget
- C++17 - Modern C++ standards
- JetBrains Mono - Modern monospace font
- Editor: 14pt
- Menu: 11pt
- Fixed-pitch for alignment
- Single-file application for simplicity
- Lambda-based signal/slot connections
- File I/O using Qt's QFile API
Opens and saves all file types:
.txt- Plain text files.cpp,.h,.c- C/C++ source files.py,.js,.html,.css- Web and scripting files.md,.json,.xml- Markup and data files- And any other text-based files
Edit main.cpp line 18:
QFont font("JetBrain Mono", 14); // Change font name and sizeEdit main.cpp line 69:
mainWindow.resize(1200, 800); // Change width and height- No syntax highlighting
- No line numbers
- No find/replace functionality
- No undo/redo (uses Qt's default)
- "Run" menu item is not implemented
- "New File" clears current content without saving prompt
Contributions are welcome! Feel free to:
- Report bugs via Issues
- Suggest new features
- Submit pull requests
- Improve documentation
This project is licensed under the MIT License - see the LICENSE file for details.
- Qt6 (Qt6Widgets module)
- C++ Compiler (GCC, Clang, or MSVC)
- CMake 3.16+ (for building)
- JetBrains Mono font (optional, falls back to system font)
Perfect for:
- Quick text editing
- Viewing log files
- Editing configuration files
- Simple code editing
- Note-taking
- Markdown writing
Max-Mend
- Built with Qt Framework
- JetBrains Mono font
- Inspired by minimalist text editors
Simple, fast, and efficient text editing.
