aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/lua/api8
-rw-r--r--modules/lua/tags13
2 files changed, 13 insertions, 8 deletions
diff --git a/modules/lua/api b/modules/lua/api
index a555b366..b39e4d9b 100644
--- a/modules/lua/api
+++ b/modules/lua/api
@@ -53,6 +53,7 @@ FILE_AFTER_SAVE events.FILE_AFTER_SAVE\nCalled right after a file is saved to di
FILE_BEFORE_SAVE events.FILE_BEFORE_SAVE\nCalled right before a file is saved to disk. Arguments:\n * `filename`: The filename encoded in UTF-8.\n\n
FILE_OPENED events.FILE_OPENED\nCalled when a file is opened in a new buffer. Arguments:\n * `filename`: The filename encoded in UTF-8.\n\n
FILE_SAVED_AS events.FILE_SAVED_AS\nCalled when a file is saved under a different filename. Arguments:\n * `filename`: The filename encoded in UTF-8.\n\n
+FILTER _M.textadept.snapopen.FILTER [table]\nDefault file and directory filters.\n
FIND events.FIND\nCalled when finding text via the Find dialog box.\n * `text`: The text to search for.\n * `next`: Search forward.\n\n
FUNCTION lexer.FUNCTION\n\n
FUNCTIONS _M.textadept.adeptsense.FUNCTIONS [string]\nXPM image for Adeptsense functions.\n
@@ -717,9 +718,10 @@ _EMBEDDEDRULES lexer._EMBEDDEDRULES [table]\nSet of rules for an embedded lexer.
_G _G._G [module]\nLua _G module.\n
_G _G._G\nA global variable (not a function) that holds the global environment (see\n§2.2). Lua itself does not use this variable; changing its value does not\naffect any environment, nor vice-versa.\n
_HOME _G._HOME [string]\nPath to the directory containing Textadept.\n
-_L _G._L [table]\nContains all messages used by Textadept for localization.\n
+_L _G._L [module]\nTable of all messages used by Textadept for localization.\n
_LEXERPATH _G._LEXERPATH [string]\nPaths to lexers, formatted like `package.path`.\n
_M _G._M [module]\nA table of loaded modules.\n
+_NIL _L._NIL [string]\nString returned when no localization for a given message exists.\n
_RELEASE _G._RELEASE [string]\nThe Textadept release version.\n
_RULES lexer._RULES [table]\nList of rule names with associated LPeg patterns for a specific lexer. It\nis accessible to other lexers for embedded lexer applications.\n
_SCINTILLA _G._SCINTILLA [module]\nScintilla constants, functions, and properties. Do not modify anything in\nthis module. Doing so will result in instability.\n
@@ -962,7 +964,7 @@ eol_mode buffer.eol_mode [number]\nThe current end of line mode.\n * `_SCINTI
error _G.error(message [, level])\nTerminates the last protected function called and returns `message` as\nthe error message. Function `error` never returns. Usually, `error` adds\nsome information about the error position at the beginning of the message,\nif the message is a string. The `level` argument specifies how to get the\nerror position. With level 1 (the default), the error position is where the\n`error` function was called. Level 2 points the error to where the function\nthat called `error` was called; and so on. Passing a level 0 avoids the\naddition of error position information to the message.\n
error_detail _M.textadept.run.error_detail [table]\nA table of error string details. Each entry is a table with the following\nfields: + `pattern`: The Lua pattern that matches a specific error string. +\n`filename`: The index of the Lua capture that contains the filename the\nerror occured in. + `line`: The index of the Lua capture that contains the\nline number the error occured on. + `message`: [Optional] The index of the\nLua capture that contains the error's message. A call tip will be displayed\nif a message was captured. When an error message is double-clicked, the\nuser is taken to the point of error. This table is usually populated by\nlanguage-specific modules.\n
events _G.events [module]\nTextadept's core event structure and handlers.\n
-execute _M.textadept.run.execute(command)\nExecutes the command line parameter and prints the output to Textadept.\n@param command The command line string. It can have the following macros: +\n`%(filepath)`: The full path of the current file. + `%(filedir)`: The current\nfile's directory path. + `%(filename)`: The name of the file including\nextension. + `%(filename_noext)`: The name of the file excluding extension.\n
+execute _M.textadept.run.execute(command, lexer)\nExecutes the command line parameter and prints the output to Textadept.\n@param command The command line string. It can have the following macros: +\n`%(filepath)`: The full path of the current file. + `%(filedir)`: The current\nfile's directory path. + `%(filename)`: The name of the file including\nextension. + `%(filename_noext)`: The name of the file excluding extension.\n
execute os.execute([command])\nThis function is equivalent to the C function `system`. It passes `command`\nto be executed by an operating system shell. Its first result is `true` if\nthe command terminated successfully, or `nil` otherwise. After this first\nresult the function returns a string and a number, as follows: "exit": the\ncommand terminated normally; the following number is the exit status of the\ncommand. "signal": the command was terminated by a signal; the following\nnumber is the signal that terminated the command. When called without a\n`command`, `os.execute` returns a boolean that is true if a shell is available.\n
exit os.exit([code [, close]])\nCalls the C function `exit` to terminate the host program. If `code` is\n`true`, the returned status is `EXIT_SUCCESS`; if `code` is `false`, the\nreturned status is `EXIT_FAILURE`; if `code` is a number, the returned status\nis this number. The default value for `code` is `true`. If the optional\nsecond argument `close` is true, closes the Lua state before exiting.\n
exp math.exp(x)\nReturns the value *e^x*.\n
@@ -1249,7 +1251,7 @@ next_user_list_type _SCINTILLA.next_user_list_type()\nReturns a unique user list
nonnewline lexer.nonnewline\nMatches any non-newline character.\n
nonnewline_esc lexer.nonnewline_esc\nMatches any non-newline character excluding newlines escaped with `\\`.\n
oct_num lexer.oct_num\nMatches an octal number.\n
-open _M.textadept.snapopen.open(utf8_paths, filter, exclusive, depth)\nQuickly open a file in set of directories.\n@param utf8_paths A UTF-8 string directory path or table of UTF-8 directory\npaths to search.\n@param filter A filter for files and folders to exclude. The filter may be\na string or table. Each filter is a Lua pattern. Any files matching a filter\nare excluded. Prefix a pattern with `!` to exclude any files that do not match\nthe filter. Directories can be excluded by adding filters to a table assigned\nto a `folders` key in the filter table. All strings should be UTF-8 encoded.\n@param exclusive Flag indicating whether or not to exclude `PATHS` in the\nsearch. Defaults to `false`.\n@param depth Number of directories to recurse into for finding files. Defaults\nto `DEFAULT_DEPTH`.\n@usage _M.textadept.snapopen.open()\n@usage _M.textadept.snapopen.open(buffer.filename:match('^.+/'), nil, true)\n@usage _M.textadept.snapopen.open(nil, '!%.lua$')\n@usage _M.textadept.snapopen.open(nil, { folders = { '%.hg' } })\n
+open _M.textadept.snapopen.open(utf8_paths, filter, exclude_PATHS, exclude_FILTER,\ndepth)\nQuickly open a file in set of directories.\n@param utf8_paths A UTF-8 string directory path or table of UTF-8 directory\npaths to search.\n@param filter A filter for files and folders to exclude. The filter may\nbe a string or table. Each filter is a Lua pattern. Any files matching a\nfilter are excluded. Prefix a pattern with `!` to exclude any files that\ndo not match the filter. File extensions can be more efficiently excluded\nby adding the extension text to a table assigned to an `extensions` key in\nthe filter table instead of using individual filters. Directories can be\nexcluded by adding filters to a table assigned to a `folders` key in the\nfilter table. All strings should be UTF-8 encoded.\n@param exclude_PATHS Flag indicating whether or not to exclude `PATHS`\nin the search. Defaults to `false`.\n@param exclude_FILTER Flag indicating whether or not to exclude `FILTER` from\n`filter` in the search. If false, adds `FILTER` to the given `filter`. Defaults\nto `false`.\n@param depth Number of directories to recurse into for finding files. Defaults\nto `DEFAULT_DEPTH`.\n@usage _M.textadept.snapopen.open()\n@usage _M.textadept.snapopen.open(buffer.filename:match('^.+/'), nil, true)\n@usage _M.textadept.snapopen.open(nil, '!%.lua$')\n@usage _M.textadept.snapopen.open(nil, { folders = { '%.hg' } })\n
open io.open(filename [, mode])\nThis function opens a file, in the mode specified in the string `mode`. It\nreturns a new file handle, or, in case of errors, nil plus an error message.\nThe `mode` string can be any of the following: "r": read mode (the default);\n"w": write mode; "a": append mode; "r+": update mode, all previous data is\npreserved; "w+": update mode, all previous data is erased; "a+": append update\nmode, previous data is preserved, writing is only allowed at the end of file.\nThe `mode` string can also have a '`b`' at the end, which is needed in some\nsystems to open the file in binary mode.\n
open_file io.open_file(utf8_filenames)\nOpens a list of files.\n@param utf8_filenames A `\\n` separated list of UTF-8-encoded filenames to\nopen. If `nil`, the user is prompted with a fileselect dialog.\n@usage io.open_file(utf8_encoded_filename)\n
open_recent_file io.open_recent_file()\nPrompts the user to open a recently opened file.\n
diff --git a/modules/lua/tags b/modules/lua/tags
index 96884fe3..ceab65bd 100644
--- a/modules/lua/tags
+++ b/modules/lua/tags
@@ -53,6 +53,7 @@ FILE_AFTER_SAVE _ 0;" F class:events
FILE_BEFORE_SAVE _ 0;" F class:events
FILE_OPENED _ 0;" F class:events
FILE_SAVED_AS _ 0;" F class:events
+FILTER _ 0;" t class:_M.textadept.snapopen
FIND _ 0;" F class:events
FUNCTION _ 0;" F class:lexer
FUNCTIONS _ 0;" F class:_M.textadept.adeptsense
@@ -103,7 +104,7 @@ NUMBER _ 0;" F class:lexer
OPERATOR _ 0;" F class:lexer
OSX _ 0;" F
P _ 0;" f class:lpeg
-PATHS _ 0;" F class:_M.textadept.snapopen
+PATHS _ 0;" t class:_M.textadept.snapopen
PREPROCESSOR _ 0;" F class:lexer
QUIT _ 0;" F class:events
R _ 0;" f class:lpeg
@@ -717,7 +718,8 @@ _EMBEDDEDRULES _ 0;" t class:lexer
_G _ 0;" F
_G _ 0;" m
_HOME _ 0;" F
-_L _ 0;" F
+_L _ 0;" m
+_L _ 0;" t
_LEXERPATH _ 0;" F
_M _ 0;" m
_M _ 0;" t
@@ -742,6 +744,7 @@ _M.textadept.run _ 0;" m
_M.textadept.session _ 0;" m
_M.textadept.snapopen _ 0;" m
_M.textadept.snippets _ 0;" m
+_NIL _ 0;" F class:_L
_RELEASE _ 0;" F
_RULES _ 0;" t class:lexer
_SCINTILLA _ 0;" m
@@ -831,9 +834,9 @@ brace_highlight_indicator _ 0;" f class:buffer
brace_match _ 0;" f class:buffer
braces _ 0;" t class:_M.textadept.editing
btest _ 0;" f class:bit32
-buffer _ 0;" F class:view
buffer _ 0;" m
buffer _ 0;" t
+buffer _ 0;" t class:view
buffered_draw _ 0;" F class:buffer
byte _ 0;" f class:string
call_tip_active _ 0;" f class:buffer
@@ -1261,8 +1264,8 @@ math _ 0;" t
max _ 0;" f class:math
max_line_state _ 0;" F class:buffer
menu _ 0;" t class:_M.textadept
-menubar _ 0;" F class:gui
menubar _ 0;" t class:_M.textadept.menu
+menubar _ 0;" t class:gui
mime_types _ 0;" t class:_M.textadept
min _ 0;" f class:math
mkdir _ 0;" f class:lfs
@@ -1506,8 +1509,8 @@ show_lines _ 0;" f class:buffer
sin _ 0;" f class:math
singular _ 0;" F class:_M.rails
sinh _ 0;" f class:math
-size _ 0;" F class:gui
size _ 0;" F class:view
+size _ 0;" t class:gui
snapopen _ 0;" t class:_M.textadept
snippets _ 0;" t class:
snippets _ 0;" t class:_M.textadept