From a3743f22e890f3f3c12ba96a71c27d408f259f09 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 16 Jul 2011 11:15:25 -0400 Subject: Moved Adeptsense commands into Tools menu. --- modules/textadept/menu.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'modules/textadept/menu.lua') diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 71eef1fc..e25e4e6a 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -146,14 +146,6 @@ menubar = { menuitem('Complete Word', { m_editing.autocomplete_word, '%w_' }), menuitem('Delete Word', { m_editing.current_word, 'delete' }), menuitem('Highlight Word', m_editing.highlight_word), - menuitem('Complete Symbol', function() - local m = _m[buffer:get_lexer()] - if m and m.sense then m.sense:complete() end - end), - menuitem('Show Documentation', function() - local m = _m[buffer:get_lexer()] - if m and m.sense then m.sense:show_apidoc() end - end), menuitem('Toggle Block Comment', m_editing.block_comment), menuitem('Transpose Characters', m_editing.transpose_chars), menuitem('Join Lines', m_editing.join_lines), @@ -226,6 +218,16 @@ menubar = { menuitem('Compile', m_textadept.run.compile), menuitem('Filter Through', _m.textadept.filter_through.filter_through), SEPARATOR, + { title = L('Adeptsense'), + menuitem('Complete Symbol', function() + local m = _m[buffer:get_lexer()] + if m and m.sense then m.sense:complete() end + end), + menuitem('Show Documentation', function() + local m = _m[buffer:get_lexer()] + if m and m.sense then m.sense:show_apidoc() end + end), + }, { title = L('Snippets'), menuitem('Insert Snippet...', m_textadept.snippets._select), menuitem('Expand Snippet/Next Placeholder', m_textadept.snippets._insert), -- cgit v1.2.3