From 03c4016d07477781aa3adcc9edf340c0bec9c6c8 Mon Sep 17 00:00:00 2001
From: mitchell <70453897+orbitalquark@users.noreply.github.com>
Date: Tue, 20 Oct 2020 15:29:03 -0400
Subject: 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.
---
docs/api.md | 27 ++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
(limited to 'docs/api.md')
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)
+
+#### `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)
+
#### `textadept.run.stop`()
--
cgit v1.2.3