diff options
author | 2007-08-10 17:12:50 -0400 | |
---|---|---|
committer | 2007-08-10 17:12:50 -0400 | |
commit | 6362d808eab3b9a7adf591d306687b439ba85031 (patch) | |
tree | 3934c3e539d0bfd5902bb09e013bf7216b4bee2f /modules/textadept/key_commands.lua | |
parent | 473c7c0973a3f0760efac0e54c68b420695baff9 (diff) | |
download | textadept-6362d808eab3b9a7adf591d306687b439ba85031.tar.gz textadept-6362d808eab3b9a7adf591d306687b439ba85031.zip |
Macros can now be recorded, saved, played, browsed, etc.
Diffstat (limited to 'modules/textadept/key_commands.lua')
-rw-r--r-- | modules/textadept/key_commands.lua | 11 |
1 files changed, 8 insertions, 3 deletions
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() |