aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-02-18 15:58:16 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2020-02-18 15:58:16 -0500
commit2a9d3e73daa332ffe652c9b33c160b784e51ed0e (patch)
treee7d0f0dc75319c674711771bfc41213a5dac8370 /modules/textadept/menu.lua
parentd5ba0b9a714cfc265f69d3d03974cfbfa0281176 (diff)
downloadtextadept-2a9d3e73daa332ffe652c9b33c160b784e51ed0e.tar.gz
textadept-2a9d3e73daa332ffe652c9b33c160b784e51ed0e.zip
Added snippet trigger word completion.
Also refactored snippet lookup, added options to Lua and C modules to include snippet triggers in autocompletion lists, swapped snippet keybindings, and fixed a bug recognizing lexer-specific snippet files as global.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 3806e14b..5edc1683 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -239,6 +239,10 @@ local default_menubar = {
{_L['_Expand Snippet/Next Placeholder'], textadept.snippets._insert},
{_L['_Previous Snippet Placeholder'], textadept.snippets._previous},
{_L['_Cancel Snippet'], textadept.snippets._cancel_current},
+ SEPARATOR,
+ {_L['Complete Trigger _Word'], function()
+ textadept.editing.autocomplete('snippets')
+ end}
},
SEPARATOR,
{_L['_Complete Symbol'], function()