diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2018-09-28 11:19:51 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2018-09-28 11:19:51 -0400 |
commit | 842efdd67e5dd3811c37fce411725dd5d13000e1 (patch) | |
tree | 5ceec120fabdc96f1035c41aa9d27623e3be572e /modules | |
parent | e663fe60d3273d9dee0d12b92b2db9cde19cdb53 (diff) |
Updated Lua autocompletion and documentation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lua/api | 8 | ||||
-rw-r--r-- | modules/lua/tags | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/lua/api b/modules/lua/api index d9cfa47c..18b12779 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -225,8 +225,8 @@ R lpeg.R({range})\nReturns a pattern that matches any single character belonging REGEX lexer.REGEX (string)\nThe token name for regex tokens. REPLACE events.REPLACE (string)\nEmitted to replace selected (found) text.\nArguments:\n\n* _`text`_: The replacement text. REPLACE_ALL events.REPLACE_ALL (string)\nEmitted to replace all occurrences of found text.\nArguments:\n\n* _`find_text`_: The text to search for.\n* _`repl_text`_: The replacement text. -RESET_AFTER events.RESET_AFTER (string)\nEmitted after resetting the Lua state.\nEmitted by `reset()`. -RESET_BEFORE events.RESET_BEFORE (string)\nEmitted before resetting the Lua state.\nEmitted by `reset()`. +RESET_AFTER events.RESET_AFTER (string)\nEmitted after resetting the Lua state.\nEmitted by `reset()`.\nArguments:\n\n* _`persist`_: Table of data persisted by `events.RESET_BEFORE`. All\n handlers will have access to this same table. +RESET_BEFORE events.RESET_BEFORE (string)\nEmitted before resetting the Lua state.\nEmitted by `reset()`.\nArguments:\n\n* _`persist`_: Table to store persistent data in for use by\n `events.RESET_AFTER`. All handlers will have access to this same table. RESUME events.RESUME (string)\nEmitted when resuming Textadept from a suspended state.\nThis event is only emitted by the terminal version. RUN_OUTPUT events.RUN_OUTPUT (string)\nEmitted when executing a language's run shell command.\nBy default, output is printed to the message buffer. In order to override\nthis behavior, connect to the event with an index of `1` and return `true`.\nArguments:\n\n* `output`: A line of string output from the command.\n* `ext_or_lexer`: The file extension or lexer name associated with the\n executed run command. S lpeg.S(string)\nReturns a pattern that matches any single character that appears in the given\nstring. (The S stands for Set.)\n\nAs an example, the pattern `lpeg.S("+-*/")` matches any arithmetic operator.\n\nNote that, if `s` is a character (that is, a string of length 1), then\n`lpeg.P(s)` is equivalent to `lpeg.S(s)` which is equivalent to\n`lpeg.R(s..s)`. Note also that both `lpeg.S("")` and `lpeg.R()` are patterns\nthat always fail. @@ -587,8 +587,8 @@ find string.find(s, pattern [, init [, plain]])\nLooks for the first match of `p find ui.find (module)\nTextadept's Find & Replace pane. find_column buffer.find_column(buffer, line, column)\nReturns the position of column number *column* on line number *line* (taking\ntab and multi-byte characters into account), or the position at the end of\nline *line*.\n@param buffer A buffer.\n@param line The line number in *buffer* to use.\n@param column The column number to use. find_entry_text ui.find.find_entry_text (string)\nThe text in the "Find" entry. -find_in_files ui.find.find_in_files(dir, filter)\nSearches directory *dir* or the user-specified directory for files that match\nsearch text and search options (subject to optional filter *filter*), and\nprints the results to a buffer titled "Files Found", highlighting found text.\nUse the `find_text`, `match_case`, `whole_word`, and `regex` fields to set\nthe search text and option flags, respectively.\n@param dir Optional directory path to search. If `nil`, the user is prompted\n for one.\n@param filter Optional filter for files and directories to exclude. The\n default value is `ui.find.find_in_files_filter`.\n@see find_in_files_filter -find_in_files_filter ui.find.find_in_files_filter (table)\nThe table of Lua patterns matching files and directories to exclude when\nfinding in files.\nThe filter table contains:\n\n + Lua patterns that match filenames to exclude.\n + Optional `folders` sub-table that contains patterns matching directories\n to exclude.\n + Optional `extensions` sub-table that contains raw file extensions to\n exclude.\n + Optional `symlink` flag that when `true`, excludes symlinked files (but\n not symlinked directories).\n + Optional `folders.symlink` flag that when `true`, excludes symlinked\n directories.\n\nAny patterns starting with '!' exclude files and directories that do not\nmatch the pattern that follows.\nThe default value is `lfs.default_filter`, a filter for common binary file\nextensions and version control directories.\n@see find_in_files\n@see lfs.default_filter +find_in_files ui.find.find_in_files(dir, filter)\nSearches directory *dir* or the user-specified directory for files that match\nsearch text and search options (subject to optional filter *filter*), and\nprints the results to a buffer titled "Files Found", highlighting found text.\nUse the `find_text`, `match_case`, `whole_word`, and `regex` fields to set\nthe search text and option flags, respectively.\nA filter is a table that contains:\n\n + Lua patterns that match filenames to exclude.\n + Optional `folders` sub-table that contains patterns matching directories\n to exclude.\n + Optional `extensions` sub-table that contains raw file extensions to\n exclude.\n + Optional `symlink` flag that when `true`, excludes symlinked files (but\n not symlinked directories).\n + Optional `folders.symlink` flag that when `true`, excludes symlinked\n directories.\n\nAny filter patterns starting with '!' exclude files and directories that do\nnot match the pattern that follows.\nIf *filter* is `nil`, the filter from the `ui.find.find_in_files_filters`\ntable is used. If that filter does not exist, `lfs.default_filter` is used.\n@param dir Optional directory path to search. If `nil`, the user is prompted\n for one.\n@param filter Optional filter for files and directories to exclude. The\n default value is `lfs.default_filter` unless a filter for *dir* is defined\n in `ui.find.find_in_files_filters`.\n@see find_in_files_filters +find_in_files_filters ui.find.find_in_files_filters (table)\nMap of file paths to filters used in `ui.find.find_in_files()`.\n@see find_in_files find_in_files_timeout ui.find.find_in_files_timeout (number)\nThe approximate interval in seconds between prompts for continuing an\n"In files" search.\nThe default value is 10 seconds. find_incremental ui.find.find_incremental(text, next, anchor)\nBegins an incremental search using the command entry if *text* is `nil`.\nOtherwise, continues an incremental search by searching for the next or\nprevious instance of string *text*, depending on boolean *next*.\n*anchor* indicates whether or not to search for *text* starting from the\ncaret position instead of the position where the incremental search began.\nOnly the `match_case` find option is recognized. Normal command entry\nfunctionality is unavailable until the search is finished or by pressing\n`Esc` (`⎋` on Mac OSX | `Esc` in curses).\n@param text The text to incrementally search for, or `nil` to begin an\n incremental search.\n@param next Flag indicating whether or not the search direction is forward.\n@param anchor Optional flag indicating whether or not to start searching from\n the caret position. The default value is `false`. find_label_text ui.find.find_label_text (string, Write-only)\nThe text of the "Find" label.\nThis is primarily used for localization. diff --git a/modules/lua/tags b/modules/lua/tags index b4ffb16d..4929c495 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -596,7 +596,7 @@ find _ 0;" m class:ui find_column _ 0;" f class:buffer find_entry_text _ 0;" F class:ui.find find_in_files _ 0;" f class:ui.find -find_in_files_filter _ 0;" t class:ui.find +find_in_files_filters _ 0;" t class:ui.find find_in_files_timeout _ 0;" F class:ui.find find_incremental _ 0;" f class:ui.find find_label_text _ 0;" F class:ui.find |