aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/api.md
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-20 15:29:03 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-20 15:29:03 -0400
commit03c4016d07477781aa3adcc9edf340c0bec9c6c8 (patch)
treed3be089e9020807326a4e56562876ecb7bcf7892 /docs/api.md
parentb682fbd4a6e53185e2556686079532ad0e42be94 (diff)
Code cleanup.
Of note: * io.save_all_files() does not visit each buffer to save anymore. An unintended side-effect was checking for outside modification (but only if the file itself was modified), so outside changes will always be saved over now. * The menu clicked handler uses assert_type(), so the 'Unknown command' localization is no longer needed. * When printing to a new buffer type would split the view, use an existing split view when possible. * Prefer 'goto continue' construct in loops over nested 'if's. * Fixed clearing of ui.find.replace_entry_text on reset in the GUI version. * Fixed lack of statusbar updating when setting options like buffer EOL mode, indentation, and encoding. * Renamed internal new_snippet() to new() and put it in the snippet metatable.
Diffstat (limited to 'docs/api.md')
-rw-r--r--docs/api.md27
1 files changed, 24 insertions, 3 deletions
diff --git a/docs/api.md b/docs/api.md
index 9a7bcdb2..5452dc23 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -610,7 +610,7 @@ helpful error messages.
Parameters:
* *`v`*: Value to assert the type of.
-* *`expected_type`*: String type to assert. It may be a punctuation-delimited
+* *`expected_type`*: String type to assert. It may be a non-letter-delimited
list of type options.
* *`narg`*: The positional argument number *v* is associated with. This is
not required to be a number.
@@ -4465,8 +4465,8 @@ Parameters:
search. The default value is the current project's root directory, if
available.
* *`filter`*: Optional filter for files and directories to include and/or
- exclude. The default value is `lfs.default_filter` unless *paths* is a
- string and a filter for it is defined in `io.quick_open_filters`.
+ exclude. The default value is `lfs.default_filter` unless a filter for
+ *paths* is defined in `io.quick_open_filters`.
* *`opts`*: Optional table of additional options for
`ui.dialogs.filteredlist()`.
@@ -7403,6 +7403,27 @@ See also:
* [`textadept.run.run_commands`](#textadept.run.run_commands)
* [`events`](#events)
+<a id="textadept.run.set_arguments"></a>
+#### `textadept.run.set_arguments`(*filename, run, compile*)
+
+Appends the command line argument strings *run* and *compile* to their
+respective run and compile commands for file *filename* or the current file.
+If either is `nil`, prompts the user for missing the arguments. Each filename
+has its own set of compile and run arguments.
+
+Parameters:
+
+* *`filename`*: Optional path to the file to set run/compile arguments for.
+* *`run`*: Optional string run arguments to set. If `nil`, the user is
+ prompted for them. Pass the empty string for no run arguments.
+* *`compile`*: Optional string compile arguments to set. If `nil`, the user
+ is prompted for them. Pass the empty string for no compile arguments.
+
+See also:
+
+* [`textadept.run.run_commands`](#textadept.run.run_commands)
+* [`textadept.run.compile_commands`](#textadept.run.compile_commands)
+
<a id="textadept.run.stop"></a>
#### `textadept.run.stop`()