aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-06-12 19:49:14 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-06-12 19:49:14 -0400
commit86bd03922258db49a406b8643055b9a9ea385d1c (patch)
tree6f05779b8e9779924034bd75c214bc5a8e3123b8
parent5adf389bec6586d8eaa3b193a2833c3295e0c85e (diff)
downloadtextadept-86bd03922258db49a406b8643055b9a9ea385d1c.tar.gz
textadept-86bd03922258db49a406b8643055b9a9ea385d1c.zip
Provide access to keys through _G.keys; modules/textadept/keys.lua
-rw-r--r--modules/textadept/keys.lua26
1 files changed, 16 insertions, 10 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 6e44ba50..187f227c 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -229,11 +229,11 @@ if not MAC then
keys.cR = { m_run.compile }
-- Snippets
local m_snippets = _m.textadept.snippets
- keys['\t'] = { m_snippets.insert }
- keys['s\t'] = { m_snippets.prev }
- keys.cai = { m_snippets.cancel_current }
- keys.caI = { m_snippets.list }
- keys.ai = { m_snippets.show_style }
+ keys['\t'] = { m_snippets._insert }
+ keys['s\t'] = { m_snippets._prev }
+ keys.cai = { m_snippets._cancel_current }
+ keys.caI = { m_snippets._list }
+ keys.ai = { m_snippets._show_style }
-- Buffers
keys.cb = { gui.switch_buffer }
@@ -391,11 +391,11 @@ else
keys.cR = { m_run.compile }
-- Snippets
local m_snippets = _m.textadept.snippets
- keys['\t'] = { m_snippets.insert }
- keys['s\t'] = { m_snippets.prev }
- keys.cai = { m_snippets.cancel_current }
- keys.caI = { m_snippets.list }
- keys.ci = { m_snippets.show_style }
+ keys['\t'] = { m_snippets._insert }
+ keys['s\t'] = { m_snippets._prev }
+ keys.cai = { m_snippets._cancel_current }
+ keys.caI = { m_snippets._list }
+ keys.ci = { m_snippets._show_style }
-- Buffers
keys.ab = { gui.switch_buffer }
@@ -477,6 +477,12 @@ else
keys.cad = { 'del_word_right', b }
end
+---
+-- Provides access to key commands from _G.
+-- @class table
+-- @name _G.keys
+_G.keys = _M
+
user_dofile('keys.lua') -- load user key commands
-- Do not edit below this line.