scascino404/cedit

Classic Text Editor

C

1

63 commits

updated Oct 11, 2026

See the code

See what people are saying

SourceMessageScoreDate

cedit – a modern DOS-style text editor

2

Oct 10, 2026

README

cedit

Classic Text Editor

cedit cedit in dark mode

cedit is a small, fast text editor that looks and feels like the text-mode editors of the 80s and 90s.

It borrows from two places:

  • TempleOS, Terry A. Davis's operating system. Its font, black ink on white paper, blue frames and thin arrow pointer are where cedit's look comes from.
  • MS-DOS EDIT, the editor that came with DOS. A menu bar you can drive from the keyboard, simple dialog boxes, and no modes to learn: you open it and type.

Features

  • Plain typing with the usual Ctrl shortcuts.
  • Huge files open at once and never freeze the editor.
  • Split windows, showing different files or the same file in two places.
  • Syntax highlighting for C, C++, HolyC, Python, Shell, Makefile, JavaScript, TypeScript, JSON, Go, Rust, Lua and Markdown.
  • Light and dark themes, three text sizes, word wrap and line numbers.

Downloads

Ready-made builds of each release are on the Releases page:

FileRuns on
cedit-linux-x86_64.tar.gzLinux on 64-bit Intel or AMD, with glibc 2.34 or newer (Ubuntu 22.04, Debian 12, Fedora 35, RHEL 9 and later)
cedit-linux-arm64.tar.gzLinux on 64-bit ARM, such as a Raspberry Pi 4 or 5 with a 64-bit system, with glibc 2.34 or newer
cedit-macos-arm64.tar.gzMacs with Apple silicon (M1 and later), macOS 11 or newer
cedit-macos-x86_64.tar.gzMacs with an Intel processor, macOS 11 or newer
cedit-windows-x64.zipWindows 10 and 11, 64-bit

Each holds a single program file, with nothing to install. On Linux and macOS, unpack it and run it:

tar -xzf cedit-linux-x86_64.tar.gz
./cedit [file]
sudo mv cedit /usr/local/bin/     # optional: run it as cedit from anywhere

On macOS, a download from a browser is blocked the first time, as cedit isn't signed by Apple; xattr -d com.apple.quarantine cedit allows it.

On Windows, unpack the zip and double-click cedit.exe, or run cedit.exe [file] from a terminal. If SmartScreen warns of an unrecognized app, choose More info, then Run anyway.

Build

Linux / macOS

You need a C compiler, CMake 3.27 or newer, Ninja, and on Linux the X11 and Wayland development files:

SystemInstall
Debian, Ubuntusudo apt install build-essential clang cmake ninja-build libx11-dev libxext-dev libxcursor-dev libxfixes-dev libxi-dev libxrandr-dev libxss-dev libwayland-dev libxkbcommon-dev libegl-dev libdecor-0-dev libdbus-1-dev libibus-1.0-dev
Fedorasudo dnf install clang cmake ninja-build libX11-devel libXext-devel libXcursor-devel libXfixes-devel libXi-devel libXrandr-devel libXScrnSaver-devel wayland-devel libxkbcommon-devel mesa-libEGL-devel libdecor-devel dbus-devel ibus-devel
Archsudo pacman -S base-devel clang cmake ninja libx11 libxext libxcursor libxfixes libxi libxrandr libxss wayland libxkbcommon libglvnd libdecor dbus libibus
macOSxcode-select --install, then brew install cmake ninja

Debian 12 and Ubuntu 22.04 ship an older CMake; pipx install cmake gets a current one.

Then build it, and optionally install it:

cmake --preset release            # configure, once (downloads SDL2)
cmake --build --preset release    # builds build/cedit
ctest --preset release            # runs the tests
sudo cmake --install build        # copies it to /usr/local/bin

For debugging, use the debug preset, or asan for AddressSanitizer and UBSan, in place of release. They build into build-debug/ and build-asan/.

The presets build with Ninja, and with clang where it is installed. To use gcc, configure with cmake --preset release -DCMAKE_C_COMPILER=gcc.

Windows

You need Visual Studio 2022 or later (Community, or just the Build Tools) with the Desktop development with C++ workload. (The build downloads SDL2 by itself.)

Either open the cedit folder in Visual Studio and build, or run these in a Developer PowerShell for VS:

cmake --preset release            # configure, once (downloads SDL2)
cmake --build --preset release    # builds build\cedit.exe
ctest --preset release            # runs the tests

The debug and asan presets work there too (asan without UBSan, which Visual C++ lacks). If the configure step warns of a 32-bit build, use the x64 Native Tools Command Prompt for VS instead.

Run

cedit [file]

If the file doesn't exist yet, cedit creates it when you first save. You can also drop a file onto the window to open it.

A few keys to get started:

KeysAction
F10 or AltOpen the menu bar
F1Show every keyboard shortcut
Ctrl+O / Ctrl+SOpen / save
Ctrl+F / Ctrl+HFind / replace
Ctrl+POpen a file from the current folder
Ctrl+\Split the window
Ctrl+- / Ctrl+=Smaller / larger text
Ctrl+QQuit

On macOS, Cmd works as Ctrl as well, except where the system's own application menu answers first.

Settings such as dark mode and text size are changed from the View and Edit menus, and cedit remembers them, and the window size, in ~/.config/cedit/cedit.conf (on Windows, %APPDATA%\cedit\cedit.conf).

License

cedit is released under the MIT License.

scascino404/cedit

Classic Text Editor

C

1

63 commits

updated Oct 11, 2026

See the code

See what people are saying

SourceMessageScoreDate

cedit – a modern DOS-style text editor

2

Oct 10, 2026

README

cedit

Classic Text Editor

cedit cedit in dark mode

cedit is a small, fast text editor that looks and feels like the text-mode editors of the 80s and 90s.

It borrows from two places:

  • TempleOS, Terry A. Davis's operating system. Its font, black ink on white paper, blue frames and thin arrow pointer are where cedit's look comes from.
  • MS-DOS EDIT, the editor that came with DOS. A menu bar you can drive from the keyboard, simple dialog boxes, and no modes to learn: you open it and type.

Features

  • Plain typing with the usual Ctrl shortcuts.
  • Huge files open at once and never freeze the editor.
  • Split windows, showing different files or the same file in two places.
  • Syntax highlighting for C, C++, HolyC, Python, Shell, Makefile, JavaScript, TypeScript, JSON, Go, Rust, Lua and Markdown.
  • Light and dark themes, three text sizes, word wrap and line numbers.

Downloads

Ready-made builds of each release are on the Releases page:

FileRuns on
cedit-linux-x86_64.tar.gzLinux on 64-bit Intel or AMD, with glibc 2.34 or newer (Ubuntu 22.04, Debian 12, Fedora 35, RHEL 9 and later)
cedit-linux-arm64.tar.gzLinux on 64-bit ARM, such as a Raspberry Pi 4 or 5 with a 64-bit system, with glibc 2.34 or newer
cedit-macos-arm64.tar.gzMacs with Apple silicon (M1 and later), macOS 11 or newer
cedit-macos-x86_64.tar.gzMacs with an Intel processor, macOS 11 or newer
cedit-windows-x64.zipWindows 10 and 11, 64-bit

Each holds a single program file, with nothing to install. On Linux and macOS, unpack it and run it:

tar -xzf cedit-linux-x86_64.tar.gz
./cedit [file]
sudo mv cedit /usr/local/bin/     # optional: run it as cedit from anywhere

On macOS, a download from a browser is blocked the first time, as cedit isn't signed by Apple; xattr -d com.apple.quarantine cedit allows it.

On Windows, unpack the zip and double-click cedit.exe, or run cedit.exe [file] from a terminal. If SmartScreen warns of an unrecognized app, choose More info, then Run anyway.

Build

Linux / macOS

You need a C compiler, CMake 3.27 or newer, Ninja, and on Linux the X11 and Wayland development files:

SystemInstall
Debian, Ubuntusudo apt install build-essential clang cmake ninja-build libx11-dev libxext-dev libxcursor-dev libxfixes-dev libxi-dev libxrandr-dev libxss-dev libwayland-dev libxkbcommon-dev libegl-dev libdecor-0-dev libdbus-1-dev libibus-1.0-dev
Fedorasudo dnf install clang cmake ninja-build libX11-devel libXext-devel libXcursor-devel libXfixes-devel libXi-devel libXrandr-devel libXScrnSaver-devel wayland-devel libxkbcommon-devel mesa-libEGL-devel libdecor-devel dbus-devel ibus-devel
Archsudo pacman -S base-devel clang cmake ninja libx11 libxext libxcursor libxfixes libxi libxrandr libxss wayland libxkbcommon libglvnd libdecor dbus libibus
macOSxcode-select --install, then brew install cmake ninja

Debian 12 and Ubuntu 22.04 ship an older CMake; pipx install cmake gets a current one.

Then build it, and optionally install it:

cmake --preset release            # configure, once (downloads SDL2)
cmake --build --preset release    # builds build/cedit
ctest --preset release            # runs the tests
sudo cmake --install build        # copies it to /usr/local/bin

For debugging, use the debug preset, or asan for AddressSanitizer and UBSan, in place of release. They build into build-debug/ and build-asan/.

The presets build with Ninja, and with clang where it is installed. To use gcc, configure with cmake --preset release -DCMAKE_C_COMPILER=gcc.

Windows

You need Visual Studio 2022 or later (Community, or just the Build Tools) with the Desktop development with C++ workload. (The build downloads SDL2 by itself.)

Either open the cedit folder in Visual Studio and build, or run these in a Developer PowerShell for VS:

cmake --preset release            # configure, once (downloads SDL2)
cmake --build --preset release    # builds build\cedit.exe
ctest --preset release            # runs the tests

The debug and asan presets work there too (asan without UBSan, which Visual C++ lacks). If the configure step warns of a 32-bit build, use the x64 Native Tools Command Prompt for VS instead.

Run

cedit [file]

If the file doesn't exist yet, cedit creates it when you first save. You can also drop a file onto the window to open it.

A few keys to get started:

KeysAction
F10 or AltOpen the menu bar
F1Show every keyboard shortcut
Ctrl+O / Ctrl+SOpen / save
Ctrl+F / Ctrl+HFind / replace
Ctrl+POpen a file from the current folder
Ctrl+\Split the window
Ctrl+- / Ctrl+=Smaller / larger text
Ctrl+QQuit

On macOS, Cmd works as Ctrl as well, except where the system's own application menu answers first.

Settings such as dark mode and text size are changed from the View and Edit menus, and cedit remembers them, and the window size, in ~/.config/cedit/cedit.conf (on Windows, %APPDATA%\cedit\cedit.conf).

License

cedit is released under the MIT License.