From 38ea16b279aa4f5b355a01040415f67ed2888d8c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 10 Nov 2013 15:28:34 -0500 Subject: Store the full Lua pattern match in "%0" for use in replacement text. --- doc/06_AdeptEditing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/06_AdeptEditing.md b/doc/06_AdeptEditing.md index 9356f0e6..d4857e2f 100644 --- a/doc/06_AdeptEditing.md +++ b/doc/06_AdeptEditing.md @@ -150,7 +150,7 @@ renders the entire line eligible for moving. Replace pane. In addition to offering the usual find and replace with "Match Case" and "Whole Word" options and find/replace history, Textadept supports finding with [Lua patterns][] and replacing with Lua captures and even Lua code! -For example: replacing all `(%w+)` with `%(string.upper('%1'))` upper cases all +For example: replacing all `%w+` with `%(string.upper('%0'))` upper cases all words in the buffer. Replacement text only recognizes Lua captures (`%`_`n`_) from a Lua pattern search, but always allows embedded Lua code enclosed in `%()`. -- cgit v1.2.3