Skip to content
mitchell edited this page Dec 12, 2020 · 2 revisions

A simple module to record and replay macros.

Source code on github.

To install this module git clone it in your ~/.textadept/modules and add this:

local macro = require('ta-macro')

and something like this

keys['ctrl+r'] = macro.record
keys['ctrl+R'] = macro.finish
keys['alt+r'] = macro.replay

to your init.lua.

This module works ok in simple cases, but can be buggy in some more complex cases, such as when manipulating whitespace and so on.