From a1b06d0c6a1a1da1021d9310f67b2d4b9eb13687 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 26 Feb 2011 12:08:51 -0500 Subject: Add Adeptsense menu options 'Complete Symbol' and 'Show Documentation'. --- modules/textadept/menu.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 1196fe90..a341b736 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -132,7 +132,19 @@ menubar = { { L('Select t_o Brace'), { m_editing.match_brace, 'select' } }, { L('Complete _Word'), { m_editing.autocomplete_word, '%w_' } }, { L('De_lete Word'), { m_editing.current_word, 'delete' } }, - { L('_Highlight Word'), { m_editing.highlight_word } }, + { L('Hi_ghlight Word'), { m_editing.highlight_word } }, + { L('Complete S_ymbol'), { + function() + local m = _m[buffer:get_lexer()] + if m and m.adeptsense then m.adeptsense.sense:complete() end + end + } }, + { L('S_how Documentation'), { + function() + local m = _m[buffer:get_lexer()] + if m and m.adeptsense then m.adeptsense.sense:show_apidoc() end + end + } }, { L('Tran_spose Characters'), { m_editing.transpose_chars } }, { L('_Join Lines'), { m_editing.join_lines } }, { L('Convert _Indentation'), { m_editing.convert_indentation } }, -- cgit v1.2.3