diff options
author | 2011-02-26 12:08:51 -0500 | |
---|---|---|
committer | 2011-02-26 12:08:51 -0500 | |
commit | a1b06d0c6a1a1da1021d9310f67b2d4b9eb13687 (patch) | |
tree | 3c03cac2e672b67c4c4670855ddb58988fcb02d3 | |
parent | 89f7d7c37c97d316305e380f944f2e77019578ce (diff) | |
download | textadept-a1b06d0c6a1a1da1021d9310f67b2d4b9eb13687.tar.gz textadept-a1b06d0c6a1a1da1021d9310f67b2d4b9eb13687.zip |
Add Adeptsense menu options 'Complete Symbol' and 'Show Documentation'.
-rw-r--r-- | core/locale.conf | 4 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/core/locale.conf b/core/locale.conf index 5fa2a681..362ff66c 100644 --- a/core/locale.conf +++ b/core/locale.conf @@ -86,7 +86,9 @@ Match _Brace = Match _Brace Select t_o Brace = Select t_o Brace Complete _Word = Complete _Word De_lete Word = De_lete Word -_Highlight Word = _Highlight Word +Hi_ghlight Word = Hi_ghlight Word +Complete S_ymbol = Complete S_ymbol +S_how Documentation = S_how Documentation Tran_spose Characters = Tran_spose Characters _Join Lines = _Join Lines Convert _Indentation = Convert _Indentation 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 } }, |