diff options
author | 2014-05-24 12:09:44 -0400 | |
---|---|---|
committer | 2014-05-24 12:09:44 -0400 | |
commit | 68147393527efc2364e821a3979d853aac0e5940 (patch) | |
tree | b480658fc9ed2b9cec09564c6e44457fceff8dc3 /modules/textadept/keys.lua | |
parent | 0e201469a0913267011ce59ff12eb46c3be56a2f (diff) | |
download | textadept-68147393527efc2364e821a3979d853aac0e5940.tar.gz textadept-68147393527efc2364e821a3979d853aac0e5940.zip |
Removed Adeptsense in favor of new framework committed in r1735.
Replaced ANSI C and Lua module Adeptsenses with their equivalent autocompleter
functions.
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 781d8860..c7689605 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -226,6 +226,9 @@ M.utils = { textadept.editing.select_word() buffer:delete_back() end, + autocomplete_symbol = function() + textadept.editing.autocomplete(buffer:get_lexer(true)) + end, enclose_as_xml_tags = function() textadept.editing.enclose('<', '>') local pos = buffer.current_pos @@ -472,11 +475,6 @@ keys[not OSX and (not CURSES and 'cae' or 'mx') or 'cme'] = {textadept.run.goto_error, false, true} keys[not OSX and (not CURSES and 'caE' or 'mX') or 'cmE'] = {textadept.run.goto_error, false, false} --- Adeptsense. -keys[not OSX and ((not CURSES or WIN32) and 'c ' or 'c@') - or 'aesc'] = textadept.adeptsense.complete -keys[not CURSES and 'ch' or 'mh'] = textadept.adeptsense.show_apidoc -if CURSES then keys.mH = keys.mh end -- in case mh is used by GUI terminals -- Snippets. keys[not OSX and (not CURSES and 'ck' or 'mk') or 'a\t'] = textadept.snippets._select @@ -498,6 +496,11 @@ keys[not OSX and 'cu' or 'mu'] = {io.snapopen, _USERHOME} keys[not OSX and (not CURSES and 'caO' or 'mO') or 'cmO'] = utils.snapopen_filedir keys[not OSX and (not CURSES and 'caP' or 'cmp') or 'cmP'] = io.snapopen +-- Other. +keys[not OSX and ((not CURSES or WIN32) and 'c ' or 'c@') + or 'aesc'] = utils.autocomplete_symbol +keys[not CURSES and 'ch' or 'mh'] = textadept.editing.show_documentation +if CURSES then keys.mH = keys.mh end -- in case mh is used by GUI terminals if not CURSES then keys[not OSX and 'ci' or 'mi'] = utils.show_style end -- Buffer. |