aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-07-13 20:51:17 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-07-13 20:51:17 -0400
commit8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29 (patch)
treeffe7a2317ddb80c558f28039a3120c8a3876afaa /modules/cpp
parent57101e2742f9385602c367fc054363c1e52e33a2 (diff)
downloadtextadept-8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29.tar.gz
textadept-8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29.zip
Refactored key commands and added menu accelerators.
Key commands are now in keys.conf and keys.osx.conf which are loaded by the _m.textadept.menu module.
Diffstat (limited to 'modules/cpp')
-rw-r--r--modules/cpp/init.lua16
1 files changed, 5 insertions, 11 deletions
diff --git a/modules/cpp/init.lua b/modules/cpp/init.lua
index a610528e..edad0d9a 100644
--- a/modules/cpp/init.lua
+++ b/modules/cpp/init.lua
@@ -10,16 +10,12 @@ module('_m.cpp', package.seeall)
-- Markdown:
-- ## Key Commands
--
--- + `Alt+L, M`: Open this module for editing.
+-- + `Ctrl+L, M` (`⌘L, M` on Mac OSX): Open this module for editing.
-- + `.`: 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
-- fields and functions.
--- + `Ctrl+I`: (Windows and Linux) Autocomplete symbol.
--- + `Ctrl+Esc`: (Mac OSX) Autocomplete symbol.
--- + `Ctrl+H`: Show documentation for the selected symbol or the symbol under
--- the caret.
--- + `Shift+Return`: Add ';' to line end and insert newline.
+-- + `Shift+Return` (`⇧↩`): Add ';' to line end and insert newline.
--
-- ## Fields
--
@@ -82,17 +78,15 @@ end
-- @class table
-- @name _G.keys.cpp
keys.cpp = {
- al = {
+ [keys.LANGUAGE_MODULE_PREFIX] = {
m = { io.open_file,
(_HOME..'/modules/cpp/init.lua'):iconv('UTF-8', _CHARSET) },
},
- ['s\n'] = { function()
+ ['s\n'] = function()
buffer:line_end()
buffer:add_text(';')
buffer:new_line()
- end },
- [not OSX and 'ci' or 'cesc'] = { sense.complete, sense },
- ch = { sense.show_apidoc, sense },
+ end,
}
-- Snippets.