aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-02-26 12:07:49 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-02-26 12:07:49 -0500
commit89f7d7c37c97d316305e380f944f2e77019578ce (patch)
tree9fdf01f8637421fc25f1f36df9efec8d42bdf2f9 /modules/cpp
parent04d5d496565d97b2860d318a68c200fb097c30b7 (diff)
downloadtextadept-89f7d7c37c97d316305e380f944f2e77019578ce.tar.gz
textadept-89f7d7c37c97d316305e380f944f2e77019578ce.zip
Use Ctrl+H for showing apidoc in cpp and lua modules.
Diffstat (limited to 'modules/cpp')
-rw-r--r--modules/cpp/commands.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/cpp/commands.lua b/modules/cpp/commands.lua
index fa876ef7..a74d83a5 100644
--- a/modules/cpp/commands.lua
+++ b/modules/cpp/commands.lua
@@ -14,8 +14,8 @@ module('_m.cpp.commands', package.seeall)
-- fields and functions.
-- + `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.
+-- + `Ctrl+H`: Show documentation for the selected symbol or the symbol under
+-- the caret.
-- + `Shift+Return`: Add ';' to line end and insert newline.
local m_editing, m_run = _m.textadept.editing, _m.textadept.run
@@ -48,12 +48,7 @@ if type(keys) == 'table' then
buffer:new_line()
end },
[not OSX and 'ci' or '~'] = { cppsense.complete, cppsense },
- ['\t'] = { function()
- if string.char(buffer.char_at[buffer.current_pos - 1]) ~= '(' then
- return false
- end
- return cppsense:show_apidoc()
- end },
+ ch = { cppsense.show_apidoc, cppsense },
}
end