aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/keys.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-02-22 19:54:25 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2020-02-22 19:54:25 -0500
commit132d331c8612421a8f95a8b73572b49e27ee38b9 (patch)
tree81b25b7b012e665bd68e2ebe94f8553243f355a6 /modules/textadept/keys.lua
parent5b2511834db13d21724314c20be06aa71afdee2b (diff)
downloadtextadept-132d331c8612421a8f95a8b73572b49e27ee38b9.tar.gz
textadept-132d331c8612421a8f95a8b73572b49e27ee38b9.zip
Separated `_G.snippets` from `textadept.snippets`.
Removed leading '_' from snippet methods, but kept compatibility for now.
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r--modules/textadept/keys.lua14
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 01669279..7eb2bde9 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -320,8 +320,7 @@ keys[not OSX and (GUI and 'c|' or 'c\\')
-- Select.
local m_sel = m_edit[_L['Select']]
keys[GUI and 'cM' or 'mM'] = m_sel[_L['Select between Matching Delimiters']][2]
-keys[not OSX and GUI and 'c<'
- or 'm<'] = m_sel[_L['Select between XML Tags']][2]
+keys[not OSX and GUI and 'c<' or 'm<'] = m_sel[_L['Select between XML Tags']][2]
if GUI then
keys[not OSX and 'c>' or 'm>'] = m_sel[_L['Select in XML Tag']][2]
end
@@ -369,8 +368,7 @@ end
-- Find in Files is ai when find pane is focused in GUI.
if GUI then
keys[not OSX and 'cag' or 'cmg'] = m_search[_L['Goto Next File Found']][2]
- keys[not OSX and 'caG'
- or 'cmG'] = m_search[_L['Goto Previous File Found']][2]
+ keys[not OSX and 'caG' or 'cmG'] = m_search[_L['Goto Previous File Found']][2]
end
keys[not OSX and 'cj' or 'mj'] = textadept.editing.goto_line
@@ -410,10 +408,10 @@ keys[not OSX and (GUI and 'caO' or 'mO')
keys[not OSX and (GUI and 'caP' or 'cmp') or 'cmP'] = io.quick_open
-- Snippets.
local m_snippets = m_tools[_L['Snippets']]
-keys[not OSX and (GUI and 'cK' or 'mK') or 'sa\t'] = textadept.snippets._select
-keys['\t'] = textadept.snippets._insert
-keys['s\t'] = textadept.snippets._previous
-keys.esc = textadept.snippets._cancel_current
+keys[not OSX and (GUI and 'cK' or 'mK') or 'sa\t'] = textadept.snippets.select
+keys['\t'] = textadept.snippets.insert
+keys['s\t'] = textadept.snippets.previous
+keys.esc = textadept.snippets.cancel_current
keys[not OSX and (GUI and 'ck' or 'mk')
or 'a\t'] = m_snippets[_L['Complete Trigger Word']][2]
-- Other.