diff options
author | 2011-02-26 12:08:51 -0500 | |
---|---|---|
committer | 2011-02-26 12:08:51 -0500 | |
commit | a1b06d0c6a1a1da1021d9310f67b2d4b9eb13687 (patch) | |
tree | 3c03cac2e672b67c4c4670855ddb58988fcb02d3 /modules/textadept | |
parent | 89f7d7c37c97d316305e380f944f2e77019578ce (diff) | |
download | textadept-a1b06d0c6a1a1da1021d9310f67b2d4b9eb13687.tar.gz textadept-a1b06d0c6a1a1da1021d9310f67b2d4b9eb13687.zip |
Add Adeptsense menu options 'Complete Symbol' and 'Show Documentation'.
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/menu.lua | 14 |
1 files changed, 13 insertions, 1 deletions
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 } }, |