Skip to content

Commit

Permalink
Update README notes on typeChunksWithFile feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbeattie committed Mar 24, 2024
1 parent 971e5db commit 07e25da
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,21 @@ Example:

Type text at the current cursor position of the currently open file. Text is read from the file indicated by the path, relative to the `.presentation-buddy` folder. The input file will be split into chunks based on the supplied settings.

By default, the input will be split on newlines (`\n`). Windows-style `\r\n` line endings will be converted to `\n` before the file is processed. To disable this, set `waitAfterNewLines` to `false`.
By default, the input will be split on newlines (`\n`). To disable this, set `waitAfterNewLines` to `false`.

Windows-style `\r\n` line endings will be converted to `\n` before the file is processed.

Presentation Buddy will:

* `wait` after typing any string matching a supplied `waitAfter` argument
* `wait` **instead of** typing any string matching a supplied `waitInsteadOf` argument
* Skip any line containing any string matching a supplied `skipLinesContaining` argument
* Skip any line containing any string matching a supplied `skipLinesContaining` argument.

Example:
#### Example:

This will type the contents of `chunks-exampe.js` into the current window, one line at a time.

Any line containing the comment `//skip` will be skipped. Presentation Buddy will pause after typing an opening curly bracket `{`, a dot `'`, a lambda function symbol ` => `, or an assignment ` = `. If the input contains the string `/*WAIT*/`, this will pause Presentation Buddy but the `/*WAIT*/` won't be copied to the output.

```json
{
Expand Down Expand Up @@ -151,7 +157,7 @@ Example:
### Command
Executes one of the standard Visual Studio Code commands. The command should be one of the standard Visual Studio Code command names. See the Keyboard shortcuts for the known commands. When the command requires additional parameters an **args** array or primitive types can be passed along. Add an optional `repeat` settings if a command needs to be execured multiple times.
Executes one of the standard Visual Studio Code commands. The command should be one of the standard Visual Studio Code command names. See the Keyboard shortcuts for the known commands. When the command requires additional parameters an **args** array or primitive types can be passed along. Add an optional `repeat` settings if a command needs to be executed multiple times.
Note: Not all commands might work as expected so your mileage may vary.
Expand Down Expand Up @@ -276,9 +282,3 @@ See `.presentation-buddy\instructions.json`
## Known Issues
This is still in the experimental preview stage. Use at your own risk.
## Release Notes
### 1.0.0
- ToDo

0 comments on commit 07e25da

Please sign in to comment.