From 8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 13 Jul 2011 20:51:17 -0400 Subject: 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. --- modules/cpp/init.lua | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'modules/cpp') 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. -- cgit v1.2.3