diff options
author | 2011-01-18 22:55:31 -0500 | |
---|---|---|
committer | 2011-01-18 22:55:31 -0500 | |
commit | 7bfa174e1e5b30a22d9e80afaf1734d0dd96e265 (patch) | |
tree | 5caaccdec20765e48deae68bd2a38fbdcc6443cf /modules/cpp/commands.lua | |
parent | 45745c52ff6a8860965dde336385f5221b359b28 (diff) | |
download | textadept-7bfa174e1e5b30a22d9e80afaf1734d0dd96e265.tar.gz textadept-7bfa174e1e5b30a22d9e80afaf1734d0dd96e265.zip |
Change cpp and lua module adeptsense key commands.
Diffstat (limited to 'modules/cpp/commands.lua')
-rw-r--r-- | modules/cpp/commands.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/cpp/commands.lua b/modules/cpp/commands.lua index fef5255f..4385e001 100644 --- a/modules/cpp/commands.lua +++ b/modules/cpp/commands.lua @@ -7,7 +7,11 @@ module('_m.cpp.commands', package.seeall) -- Markdown: -- ## Key Commands -- --- + `Alt+l, m`: Open this module for editing. +-- + `Alt+L, M`: Open this module for editing. +-- + `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. -- + `Shift+Return`: Add ';' to line end and insert newline. local m_editing, m_run = _m.textadept.editing, _m.textadept.run @@ -39,7 +43,7 @@ if type(keys) == 'table' then buffer:add_text(';') buffer:new_line() end }, - [not OSX and 'c\n' or 'esc'] = { cppsense.complete, cppsense }, + [not OSX and 'ci' or '~'] = { cppsense.complete, cppsense }, ['\t'] = { function() if string.char(buffer.char_at[buffer.current_pos - 1]) ~= '(' then return false |