diff options
Diffstat (limited to 'modules/cpp/commands.lua')
-rw-r--r-- | modules/cpp/commands.lua | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/modules/cpp/commands.lua b/modules/cpp/commands.lua deleted file mode 100644 index a74d83a5..00000000 --- a/modules/cpp/commands.lua +++ /dev/null @@ -1,57 +0,0 @@ --- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. - ---- --- Commands for the cpp module. -module('_m.cpp.commands', package.seeall) - --- Markdown: --- ## Key Commands --- --- + `Alt+L, M`: 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. --- + `~`: (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. - -local m_editing, m_run = _m.textadept.editing, _m.textadept.run --- Comment string tables use lexer names. -m_editing.comment_string.cpp = '//' --- Compile and Run command tables use file extensions. -m_run.compile_command.c = - 'gcc -pedantic -Os -o "%(filename_noext)" %(filename)' -m_run.compile_command.cpp = - 'g++ -pedantic -Os -o "%(filename_noext)" %(filename)' -m_run.run_command.c = '%(filedir)%(filename_noext)' -m_run.run_command.cpp = '%(filedir)%(filename_noext)' -m_run.error_detail.c = { - pattern = '^(.-):(%d+): (.+)$', - filename = 1, line = 2, message = 3 -} - --- C++-specific key commands. -local cppsense = _m.cpp.adeptsense.sense -local keys = _G.keys -if type(keys) == 'table' then - keys.cpp = { - al = { - m = { io.open_file, - (_HOME..'/modules/cpp/init.lua'):iconv('UTF-8', _CHARSET) }, - }, - ['s\n'] = { function() - buffer:line_end() - buffer:add_text(';') - buffer:new_line() - end }, - [not OSX and 'ci' or '~'] = { cppsense.complete, cppsense }, - ch = { cppsense.show_apidoc, cppsense }, - } -end - ---- --- This module contains no functions. -function no_functions() end no_functions = nil |