aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/commands.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-01-18 22:55:31 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-01-18 22:55:31 -0500
commit7bfa174e1e5b30a22d9e80afaf1734d0dd96e265 (patch)
tree5caaccdec20765e48deae68bd2a38fbdcc6443cf /modules/lua/commands.lua
parent45745c52ff6a8860965dde336385f5221b359b28 (diff)
downloadtextadept-7bfa174e1e5b30a22d9e80afaf1734d0dd96e265.tar.gz
textadept-7bfa174e1e5b30a22d9e80afaf1734d0dd96e265.zip
Change cpp and lua module adeptsense key commands.
Diffstat (limited to 'modules/lua/commands.lua')
-rw-r--r--modules/lua/commands.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua
index a1eccac6..b2423a51 100644
--- a/modules/lua/commands.lua
+++ b/modules/lua/commands.lua
@@ -7,14 +7,16 @@ module('_m.lua.commands', package.seeall)
-- Markdown:
-- ## Key Commands
--
--- + `Alt+l, m`: Open this module for editing.
--- + `Alt+l, g`: Goto file being 'require'd on the current line.
+-- + `Alt+L, M`: Open this module for editing.
+-- + `Alt+L, G`: Goto file being 'require'd on the current line.
-- + `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
--- of functions.
+-- + `.`: When to the right of a known symbol, show an autocompletion list of
+-- fields and functions.
+-- + `:`: When to the right of a known symbol, show an autocompletion list of
+-- functions only.
+-- + `Ctrl+I`: (Windows and Linux) Autocomplete symbol.
+-- + `~`: (Mac OSX) Autocomplete symbol.
-- + `Tab`: When the caret is to the right of a `(` in a known function call,
-- show a calltip with documentation for the function.
@@ -118,7 +120,7 @@ if type(keys) == 'table' then
g = { goto_required },
},
['s\n'] = { try_to_autocomplete_end },
- [not OSX and 'c\n' or 'esc'] = { function()
+ [not OSX and 'ci' or '~'] = { function()
local line, pos = buffer:get_cur_line()
local symbol = line:sub(1, pos):match(luasense.syntax.symbol_chars..'*$')
return luasense:complete(false, symbol:find(':'))