From 210e761ac6721de0922e830deaaadfc36a74aa02 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 31 Jan 2013 11:16:21 -0500 Subject: Added ability to type over characters like closing braces and quotes. --- doc/06_AdeptEditing.md | 5 +++-- doc/08_Preferences.md | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/06_AdeptEditing.md b/doc/06_AdeptEditing.md index e28daf7c..3704e208 100644 --- a/doc/06_AdeptEditing.md +++ b/doc/06_AdeptEditing.md @@ -14,8 +14,9 @@ below. Usually, quote (''', '"') and brace ('(', '[', '{') characters go together in pairs. By default, Textadept automatically inserts the complement character when the first is typed. Similarly, the complement is deleted when you -press `Bksp` (`⌫` on Mac OSX | `Bksp` in ncurses) over the first. See the -[preferences][] page if you would like to disable this. +press `Bksp` (`⌫` on Mac OSX | `Bksp` in ncurses) over the first. Typing over +complement characters is also supported. See the [preferences][] page if you +would like to disable these features. [preferences]: 08_Preferences.html#Generic diff --git a/doc/08_Preferences.md b/doc/08_Preferences.md index a8b4c15d..ad089fb5 100644 --- a/doc/08_Preferences.md +++ b/doc/08_Preferences.md @@ -35,12 +35,14 @@ below. Many of Textadept's generic modules have settings you can change from *~/.textadept/init.lua* after the module is loaded. These settings are viewed -from module's [LuaDoc][]. For example, to disable character autopairing and -stripping whitespace on save, your *~/.textadept/init.lua* might look like: +from module's [LuaDoc][]. For example, to disable character autopairing with +typeover and stripping whitespace on save, your *~/.textadept/init.lua* might +look like: _M.textadept = require 'textadept' _M.textadept.editing.AUTOPAIR = false + _M.textadept.editing.TYPEOVER_CHARS = false _M.textadept.editing.STRIP_WHITESPACE_ON_SAVE = false Now suppose you wanted to load all of Textadept's default modules except for the -- cgit v1.2.3