From e17b7a2d5608f265eefb2bde080dff2549217353 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 27 Jun 2016 22:15:41 -0400 Subject: Document new snippet directory paths preference; doc/manual.md --- doc/manual.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc/manual.md') diff --git a/doc/manual.md b/doc/manual.md index 666aca6c..ce558dd2 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -1159,7 +1159,14 @@ via a global `snippets` table: end end) -Learn more about snippets and snippet syntax in the [snippets documentation][]. +You may also have a directory of snippet files where each file is its own +snippet: filenames emulate the keys in the `snippets` table and file contents +are the snippet text. Adding such snippet directories looks like this: + + textadept.snippets._paths[#textadept.snippets._paths + 1] = '/path/to/dir' + +Learn more about snippets, snippet syntax, and snippet files in the +[snippets documentation][]. [snippets documentation]: api.html#textadept.snippets -- cgit v1.2.3