diff options
-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 } }, |