From 6362d808eab3b9a7adf591d306687b439ba85031 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 10 Aug 2007 17:12:50 -0400 Subject: Macros can now be recorded, saved, played, browsed, etc. --- modules/textadept/key_commands.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'modules/textadept/key_commands.lua') diff --git a/modules/textadept/key_commands.lua b/modules/textadept/key_commands.lua index 55f038e4..c7239c7c 100644 --- a/modules/textadept/key_commands.lua +++ b/modules/textadept/key_commands.lua @@ -6,11 +6,11 @@ module('_m.textadept.key_commands', package.seeall) --[[ C: G Q - A: A C G J K L M O Q R W X Z + A: A C G J K L O Q R W X Z CS: C D G J L Q R S T U W SA: A C D E G H I J K L M O Q R S T W X Z - CA: A C G H J K L M O Q R S T V W X Y Z - CSA: C D G H J K L M O Q R S T U W X Z + CA: A C G H J K L O Q R S T V W X Y Z + CSA: C D G H J K L O Q R S T U W X Z ]]-- --- @@ -126,6 +126,10 @@ keys.am = { c = { m_mlines.clear }, } +local m_macro = _m.textadept.macros +keys.cam = { m_macro.toggle_record } +keys.csam = { m_macro.play } + keys.cr = { textadept.io.open } keys.co = { 'save', b } keys.cso = { 'save_as', b } @@ -161,6 +165,7 @@ keys.ct.ss = { 'split', v } -- vertical keys.ct.n = { textadept.new_buffer } keys.ct.b = { pm_activate, 'buffers' } keys.ct.c = { pm_activate, 'ctags' } +keys.ct.m = { pm_activate, 'macros' } keys.ct.x = { function() view:unsplit() return true end } keys.ct.sx = { function() while view:unsplit() do end end } keys.ct.f = { function() -- cgit v1.2.3