From 96c85498c019e381d0aeed2e33e626563563ea8c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 7 Mar 2012 09:28:43 -0500 Subject: Documentation overhaul with Discount (Markdown implementation). The standard LuaDoc template is no longer used. Instead, the new `scripts/markdowndoc.lua` has the template for LuaDoc and `scripts/update_doc` has the template for the Manual. Also added README, CHANGELOG, and THANKS files. --- core/keys.lua | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'core/keys.lua') diff --git a/core/keys.lua b/core/keys.lua index 90d677ab..6418b612 100644 --- a/core/keys.lua +++ b/core/keys.lua @@ -34,17 +34,20 @@ module('keys')]] -- ADD = '+' -- -- pressing control, alt, shift, and 'a' yields: 'Ctrl+Alt+Shift+A' -- --- For key values less than 255, Lua's [`string.char()`][string_char] is used to --- determine the key's string representation. Otherwise, the --- [`KEYSYMS`](../modules/_M.textadept.keys.html#KEYSYMS) lookup table is used. +-- For key values less than 255, Lua's [`string.char()`][] is used to determine +-- the key's string representation. Otherwise, the [`KEYSYMS`](#KEYSYMS) lookup +-- table is used. -- --- [string_char]: http://www.lua.org/manual/5.1/manual.html#pdf-string.char +-- [`string.char()`]: http://www.lua.org/manual/5.2/manual.html#pdf-string.char -- -- Normally, Lua functions are assigned to key commands, but those functions are -- called without any arguments. In order to pass arguments to a function, -- assign a table to the key command. This table contains the function followed --- by its arguments in order. Any [buffer](../modules/buffer.html) or --- [view](../modules/view.html) references are handled correctly at runtime. +-- by its arguments in order. Any [buffer][] or [view][] references are handled +-- correctly at runtime. +-- +-- [buffer]: buffer.html +-- [view]: view.html -- -- Key commands can be chained like in Emacs using keychain sequences. By -- default, the `Esc` key (`Apple+Esc` on Mac OSX) cancels the current keychain, @@ -77,12 +80,12 @@ module('keys')]] -- modules. -- The default value is Ctrl/Cmd+L. -- --- ## Key Command Precedence +-- ## Precedence -- -- When searching for a key command to execute in the `keys` table, key commands -- in the current lexer have priority, followed by the ones in the global table. -- --- #### Propagation +-- ### Propagation -- -- Normally when the same key command is assigned to two separate functions of -- different precedence, the higher priority key command is run and the lower -- cgit v1.2.3