aboutsummaryrefslogtreecommitdiff
path: root/doc/manual.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-06-27 22:15:41 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2016-06-27 22:15:41 -0400
commite17b7a2d5608f265eefb2bde080dff2549217353 (patch)
tree61e18567179b5cb33819f5b751eca78fb819ee27 /doc/manual.md
parent556a0fa7dd9fe28898d2922b304fa86e8318aad3 (diff)
downloadtextadept-e17b7a2d5608f265eefb2bde080dff2549217353.tar.gz
textadept-e17b7a2d5608f265eefb2bde080dff2549217353.zip
Document new snippet directory paths preference; doc/manual.md
Diffstat (limited to 'doc/manual.md')
-rw-r--r--doc/manual.md9
1 files changed, 8 insertions, 1 deletions
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