diff options
author | 2010-10-15 17:10:47 -0400 | |
---|---|---|
committer | 2010-10-15 17:10:47 -0400 | |
commit | 903e94af9204eddeec3f50cd6d5b5c62e1d651ad (patch) | |
tree | 890891e85fb1e29f033fce08c7de590a6696b6c2 /modules/textadept/menu.lua | |
parent | bf67422f39cf93f8ad77bc0574bf2b1b379c2e23 (diff) | |
download | textadept-903e94af9204eddeec3f50cd6d5b5c62e1d651ad.tar.gz textadept-903e94af9204eddeec3f50cd6d5b5c62e1d651ad.zip |
Can highlight all occurances of a word; adapted from Brian Schott.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r-- | modules/textadept/menu.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 658b72b4..daf3f6df 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -38,6 +38,7 @@ local ID = { SELECT_TO_BRACE = 209, COMPLETE_WORD = 210, DELETE_WORD = 211, + HIGHLIGHT_WORD = 213, TRANSPOSE_CHARACTERS = 212, JOIN_LINES = 245, CONVERT_INDENTATION = 216, @@ -162,6 +163,7 @@ local menubar = { { L('Select t_o Brace'), ID.SELECT_TO_BRACE }, { L('Complete _Word'), ID.COMPLETE_WORD }, { L('De_lete Word'), ID.DELETE_WORD }, + { L('_Highlight Word'), ID.HIGHLIGHT_WORD }, { L('Tran_spose Characters'), ID.TRANSPOSE_CHARACTERS }, { L('_Join Lines'), ID.JOIN_LINES }, { L('Convert _Indentation'), ID.CONVERT_INDENTATION }, @@ -384,6 +386,7 @@ local actions = { [ID.SELECT_TO_BRACE] = { m_editing.match_brace, 'select' }, [ID.COMPLETE_WORD] = { m_editing.autocomplete_word, '%w_' }, [ID.DELETE_WORD] = { m_editing.current_word, 'delete' }, + [ID.HIGHLIGHT_WORD] = { m_editing.highlight_word }, [ID.TRANSPOSE_CHARACTERS] = { m_editing.transpose_chars }, [ID.JOIN_LINES] = { m_editing.join_lines }, [ID.CONVERT_INDENTATION] = { m_editing.convert_indentation }, |