Textadept

From ArchWiki
Jump to: navigation, search

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 4 different executables:

  • textadept
  • textadept-curses
  • textadeptjit
  • textadeptjit-curses

The jit versions embed the Lua interpreter LuaJIT, which is notably faster than the official Lua interpreter but does not support Lua 5.2 as of January 2015.[1] The curses versions run 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.

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