orbitalquark/textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.

Lua

921

4,470 commits

updated Sep 1, 2026

See the code

See what people are saying

SourceMessageScoreDate

Textadept

184

Mar 1, 2026

As has happened before, I have to plug this stunningly underhyped editor, TextAdept: https://orbitalquark.github.io/textadept/ Minimalist fast native (not browser-based) code editor for Windows, Mac, Linux, BSD. Both a terminal TUI and a native-GUI version for each. First-class (ie. by same author)…

on Ask HN: Alternative to VS Code?

0

Feb 22, 2025

Cudatext https://cudatext.github.io/ Textadept (Lighter but niftier) https://orbitalquark.github.io/textadept/

on Notepad++ is 21 years old

0

Nov 2, 2024

> I just want a fast programmable text editor with a native GUI and good defaults. It's called TextAdept. Much of it is itself built on its own Lua extensibility story, which runs on a fairly compact C core. Both native GUI and terminal versions, using the same user config (keybinds etc). Linux,…

on Zed AI

0

Aug 21, 2024

You said no-Lua, but since for many interested in this thread Lua's a non-problem, I'll pitch a disconcertingly under-hyped / under-noticed native (aka non-Electron) editor with Lua extension story (and many of its parts built on that plus its small C core) called TextAdept. I'm still a happy…

on Ask HN: What code editors or IDEs are easily scriptable?

0

Aug 12, 2024

TextAdept

89

Mar 2, 2024

Tilde is faster for bigger files, and it runs and compile everywhere; TextAdept even has code folding. - https://github.com/gphalkes/tilde - https://orbitalquark.github.io/textadept/

on micro – A Modern Alternative to nano

0

Aug 18, 2023

Textadept

2

Jul 29, 2023

You could look at https://orbitalquark.github.io/textadept/ https://github.com/orbitalquark/textadept/wiki

on Scintilla is a free source code editing component with a permissive license

0

Feb 19, 2023

Url for Textadept: https://orbitalquark.github.io/textadept/ It's a cross-platform, open source editor written and configurable in Lua.

on Ask HN: Can you recommend me a fast, light text editor for Windows?

0

Oct 14, 2022

README

Textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.

Quick links: Download | Manual | Lua API Docs | Project Page

windows macos

linux terminal

Features

  • Traditional desktop application written in a combination of C, C++, and Lua.
  • Runs on Windows, macOS, Linux, and BSD.
  • Self-contained executables -- no installation necessary.
  • User-friendly graphical and terminal interfaces with sensible defaults.
  • Support for over 100 programming languages.
  • Multiple carets and selections.
  • Unlimited split views.
  • Configurable key bindings, including language-specific keys, key chains, and key modes.
  • Snippets, both generic and language-specific, and support for nested snippets.
  • Invoke shell commands for running code, building projects, and executing tests.
  • Almost every aspect of the editor can be scripted, extended, and customized with Lua.
  • Does not connect to the internet -- it's just a text editor!

textadept

Requirements

Textadept's pre-built binaries require the following:

  • Windows 10+ (64-bit or ARM)
  • macOS 13+
  • Linux: Qt 5 or GTK 3 for the GUI version, and ncurses for the terminal version.

You can compile Textadept from source for use with different UI library versions, such as Qt 6 and GTK 2.24.

Note: Lua and other third-party dependencies are compiled into the application itself, and a Qt runtime is distributed with Windows and macOS builds.

Download

You can download pre-built binaries for various platforms, as well as source code from the links below.

A list of all released versions is here along with their release notes.

macOS Note: all pre-built binaries are for Apple Silicon only.

Note: while Textadept contains plenty of built-in productivity tools, some extra features and functionality are available as optional modules in the "Extra modules" links above. This includes:

lsp diff

Install and Use

Simply unpack the pre-built binary archive anywhere you have permission to and run one of the following executables:

PlatformGUI versionTerminal version
Windowstextadept.exetextadept-curses.exe
macOSTextadept.app
ta (shell script)
Textadept.app/Contents/MacOS/textadept-curses
Linuxtextadept (Qt version)
textadept-gtk (GTK version)
textadept-curses

macOS Note: if you get a notice that Textadept "is damaged and can't be opened," you will need to remove the quarantine attribute from the app by running the following command in your terminal: xattr -d com.apple.quarantine /path/to/Textadept.app.

The "Help > Show Manual" menu item, or the F1 keyboard shortcut opens Textadept's comprehensive user manual. There is also an online version. The manual covers all of Textadept's main features, including installation, usage, configuration, theming, scripting, and compiling from source.

The "Help > Show LuaDoc" menu item, or the Shift+F1 keyboard shortcut opens Textadept's extensive API reference for users interested in scripting the editor. There is also an online version.

If you downloaded the optional set of modules, unpack it into the .textadept/ directory in your home folder (keeping the top-level modules/ directory intact). You could instead unpack it into Textadept's directory (thus merging the two modules/ directories), but this is not recommended, as it may make upgrading more difficult.

Note: Textadept generally does not auto-load modules. To use any of modules from the optional set, select the "Edit > Preferences", use Lua's require() function for each module to load, save the file, and restart Textadept. For example:

require('lsp')
require('file_diff')
require('spellcheck')

preferences

Compile

Compiling Textadept from source requires the following:

  • CMake 3.22+
  • A C and C++ compiler, such as:
  • A UI toolkit (at least one of the following):
    • Qt 5.15+ development libraries for the GUI version
    • GTK 2.24+ development libraries for the GUI version
    • ncurses(w) development libraries (wide character support) for the terminal version
  • Unix patch command

Basic procedure:

  1. Configure CMake by pointing it to Textadept's source directory (where CMakeLists.txt is), specify a directory to build in, and optionally specify a directory to install to. CMake will determine what UI toolkits are available and fetch third-party build dependencies.
    cmake
  2. Build Textadept.
  3. Either copy the built binaries to Textadept's source directory or use CMake to install it.

For example:

cmake -S . -B build_dir -D CMAKE_BUILD_TYPE=RelWithDebInfo \
	-D CMAKE_INSTALL_PREFIX=build_dir/install
cmake --build build_dir -j # compiled binaries are in build_dir/
cmake --install build_dir # self-contained installation is in build_dir/install/

Note: if you would like to build the nightly development version of Textadept, enable the NIGHTLY option during the configuration phase (e.g. -D NIGHTLY=1).

The "Compiling" section of the manual contains more information about this process.

Support

Textadept is an open-source project, released under the MIT License.

You can contact me personally at code att foicica.com.

lines of code

cross-platform
curses
editor
gtk
lua
qt
scintilla
terminal
textadept
text-editor

orbitalquark/textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.

Lua

921

4,470 commits

updated Sep 1, 2026

See the code

See what people are saying

SourceMessageScoreDate

Textadept

184

Mar 1, 2026

As has happened before, I have to plug this stunningly underhyped editor, TextAdept: https://orbitalquark.github.io/textadept/ Minimalist fast native (not browser-based) code editor for Windows, Mac, Linux, BSD. Both a terminal TUI and a native-GUI version for each. First-class (ie. by same author)…

on Ask HN: Alternative to VS Code?

0

Feb 22, 2025

Cudatext https://cudatext.github.io/ Textadept (Lighter but niftier) https://orbitalquark.github.io/textadept/

on Notepad++ is 21 years old

0

Nov 2, 2024

> I just want a fast programmable text editor with a native GUI and good defaults. It's called TextAdept. Much of it is itself built on its own Lua extensibility story, which runs on a fairly compact C core. Both native GUI and terminal versions, using the same user config (keybinds etc). Linux,…

on Zed AI

0

Aug 21, 2024

You said no-Lua, but since for many interested in this thread Lua's a non-problem, I'll pitch a disconcertingly under-hyped / under-noticed native (aka non-Electron) editor with Lua extension story (and many of its parts built on that plus its small C core) called TextAdept. I'm still a happy…

on Ask HN: What code editors or IDEs are easily scriptable?

0

Aug 12, 2024

TextAdept

89

Mar 2, 2024

Tilde is faster for bigger files, and it runs and compile everywhere; TextAdept even has code folding. - https://github.com/gphalkes/tilde - https://orbitalquark.github.io/textadept/

on micro – A Modern Alternative to nano

0

Aug 18, 2023

Textadept

2

Jul 29, 2023

You could look at https://orbitalquark.github.io/textadept/ https://github.com/orbitalquark/textadept/wiki

on Scintilla is a free source code editing component with a permissive license

0

Feb 19, 2023

Url for Textadept: https://orbitalquark.github.io/textadept/ It's a cross-platform, open source editor written and configurable in Lua.

on Ask HN: Can you recommend me a fast, light text editor for Windows?

0

Oct 14, 2022

README

Textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.

Quick links: Download | Manual | Lua API Docs | Project Page

windows macos

linux terminal

Features

  • Traditional desktop application written in a combination of C, C++, and Lua.
  • Runs on Windows, macOS, Linux, and BSD.
  • Self-contained executables -- no installation necessary.
  • User-friendly graphical and terminal interfaces with sensible defaults.
  • Support for over 100 programming languages.
  • Multiple carets and selections.
  • Unlimited split views.
  • Configurable key bindings, including language-specific keys, key chains, and key modes.
  • Snippets, both generic and language-specific, and support for nested snippets.
  • Invoke shell commands for running code, building projects, and executing tests.
  • Almost every aspect of the editor can be scripted, extended, and customized with Lua.
  • Does not connect to the internet -- it's just a text editor!

textadept

Requirements

Textadept's pre-built binaries require the following:

  • Windows 10+ (64-bit or ARM)
  • macOS 13+
  • Linux: Qt 5 or GTK 3 for the GUI version, and ncurses for the terminal version.

You can compile Textadept from source for use with different UI library versions, such as Qt 6 and GTK 2.24.

Note: Lua and other third-party dependencies are compiled into the application itself, and a Qt runtime is distributed with Windows and macOS builds.

Download

You can download pre-built binaries for various platforms, as well as source code from the links below.

A list of all released versions is here along with their release notes.

macOS Note: all pre-built binaries are for Apple Silicon only.

Note: while Textadept contains plenty of built-in productivity tools, some extra features and functionality are available as optional modules in the "Extra modules" links above. This includes:

lsp diff

Install and Use

Simply unpack the pre-built binary archive anywhere you have permission to and run one of the following executables:

PlatformGUI versionTerminal version
Windowstextadept.exetextadept-curses.exe
macOSTextadept.app
ta (shell script)
Textadept.app/Contents/MacOS/textadept-curses
Linuxtextadept (Qt version)
textadept-gtk (GTK version)
textadept-curses

macOS Note: if you get a notice that Textadept "is damaged and can't be opened," you will need to remove the quarantine attribute from the app by running the following command in your terminal: xattr -d com.apple.quarantine /path/to/Textadept.app.

The "Help > Show Manual" menu item, or the F1 keyboard shortcut opens Textadept's comprehensive user manual. There is also an online version. The manual covers all of Textadept's main features, including installation, usage, configuration, theming, scripting, and compiling from source.

The "Help > Show LuaDoc" menu item, or the Shift+F1 keyboard shortcut opens Textadept's extensive API reference for users interested in scripting the editor. There is also an online version.

If you downloaded the optional set of modules, unpack it into the .textadept/ directory in your home folder (keeping the top-level modules/ directory intact). You could instead unpack it into Textadept's directory (thus merging the two modules/ directories), but this is not recommended, as it may make upgrading more difficult.

Note: Textadept generally does not auto-load modules. To use any of modules from the optional set, select the "Edit > Preferences", use Lua's require() function for each module to load, save the file, and restart Textadept. For example:

require('lsp')
require('file_diff')
require('spellcheck')

preferences

Compile

Compiling Textadept from source requires the following:

  • CMake 3.22+
  • A C and C++ compiler, such as:
  • A UI toolkit (at least one of the following):
    • Qt 5.15+ development libraries for the GUI version
    • GTK 2.24+ development libraries for the GUI version
    • ncurses(w) development libraries (wide character support) for the terminal version
  • Unix patch command

Basic procedure:

  1. Configure CMake by pointing it to Textadept's source directory (where CMakeLists.txt is), specify a directory to build in, and optionally specify a directory to install to. CMake will determine what UI toolkits are available and fetch third-party build dependencies.
    cmake
  2. Build Textadept.
  3. Either copy the built binaries to Textadept's source directory or use CMake to install it.

For example:

cmake -S . -B build_dir -D CMAKE_BUILD_TYPE=RelWithDebInfo \
	-D CMAKE_INSTALL_PREFIX=build_dir/install
cmake --build build_dir -j # compiled binaries are in build_dir/
cmake --install build_dir # self-contained installation is in build_dir/install/

Note: if you would like to build the nightly development version of Textadept, enable the NIGHTLY option during the configuration phase (e.g. -D NIGHTLY=1).

The "Compiling" section of the manual contains more information about this process.

Support

Textadept is an open-source project, released under the MIT License.

You can contact me personally at code att foicica.com.

lines of code

cross-platform
curses
editor
gtk
lua
qt
scintilla
terminal
textadept
text-editor

Significant stargazers

(top 24 of 25)

Cookie Engineer

608 followers · starred May 2021

தமிழ் நேரம்

42 followers · starred May 2025

John Gardner

318 followers · starred Sep 2023

Ian Davis

148 followers · starred Oct 2020