From 4ddbf4efd0e085f83117590db7d86dbbc07fc3de Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 1 Dec 2010 07:48:54 -0500 Subject: Change back to Shift+Return for autocomplete end; modules/lua/commands.lua --- modules/lua/commands.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/lua/commands.lua') diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua index e8889a5b..88b3bf3a 100644 --- a/modules/lua/commands.lua +++ b/modules/lua/commands.lua @@ -9,7 +9,8 @@ module('_m.lua.commands', package.seeall) -- -- + `Alt+l, m`: Open this module for editing. -- + `Alt+l, g`: Goto file being 'require'd on the current line. --- + `Return`: Try to autocomplete an `if`, `for`, etc. statement with `end`. +-- + `Shift+Return`: Try to autocomplete an `if`, `for`, etc. statement with +-- `end`. -- + `.`: When to the right of a known identifier, show an autocompletion list -- of fields. -- + `:`: When to the right of a known identifier, show an autocompletion list @@ -267,7 +268,7 @@ if type(keys) == 'table' then (_HOME..'/modules/lua/init.lua'):iconv('UTF-8', _CHARSET) }, g = { goto_required }, }, - ['\n'] = { try_to_autocomplete_end }, + ['s\n'] = { try_to_autocomplete_end }, [not OSX and 'c\n' or 'esc'] = { function() -- complete API local buffer = buffer local part = prev_word('[%w_]', buffer.current_pos) -- cgit v1.2.3