Textadept

From ArchWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Textadept describes itself as a "a fast, minimalist, and remarkably extensible cross-platform text editor". With a very lightweight code base written in C, it relies on Lua for its extensibility. The editor works both in a graphical (GTK2) and in a CLI environment (Curses).

Installation

Install textadeptAUR from the AUR. It features 2 executables:

  • textadept
  • textadept-curses

The curses version runs in a CLI environment.

Configuration

On first start, Textadept will create a ~/.textadept folder. You can edit ~/.textadept/init.lua to start customizing the editor. From there you can define new functions, key bindings, themes, and even modules, as explained in the manual and the API.

Textadept sample configuration

Modules

By default, Textadept features modules for its core only, that is ANSI C, Lua and itself, however the AUR package also embeds some of the official modules.

Some more modules are found in the AUR:

You will need to enable these modules in your init.lua file as explained in the upstream documentation.

More contributed modules and functions are listed in the wiki.

Another convenient way to install modules is by cloning the repository in ~/.textadept/modules. For instance you can fetch textadept-vi from there:

$ cd ~/.textadept/modules
$ git clone https://github.com/jugglerchris/textadept-vi.git

You can easily keep up to date all your modules with version control tools.

See also