diff options
author | 2010-03-23 06:12:30 -0400 | |
---|---|---|
committer | 2010-03-23 06:12:30 -0400 | |
commit | 2e042c305207e52831c1d5eb0706e2ebbf94ab1b (patch) | |
tree | ea0aadbac77f25bfb3eb6847992336785380d745 /core/.textadept.lua | |
parent | 16a3aaf2125c05234355f8f322e22680a0b79f0b (diff) | |
download | textadept-2e042c305207e52831c1d5eb0706e2ebbf94ab1b.tar.gz textadept-2e042c305207e52831c1d5eb0706e2ebbf94ab1b.zip |
Added textadept.user_dofile to load user files like key commands and snippets.
Diffstat (limited to 'core/.textadept.lua')
-rw-r--r-- | core/.textadept.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/.textadept.lua b/core/.textadept.lua index 0ce0d19a..ec6d9622 100644 --- a/core/.textadept.lua +++ b/core/.textadept.lua @@ -127,3 +127,9 @@ function switch_buffer() end -- Each argument is like a string in Lua's 'arg' table. -- @return string CocoaDialog result. function dialog(kind, ...) end + +--- +-- Calls 'dofile' on the given filename in the user's Textadept directory. +-- This is typically used for loading user files like key commands or snippets. +-- @param filename The name of the file (not path). +function user_dofile(filename) end |