Skip to content

Commit

Permalink
fix: fixing typo in tp.system
Browse files Browse the repository at this point in the history
Now using tp.system.clipboard

fix #144
  • Loading branch information
SilentVoid13 committed Apr 22, 2021
1 parent 234d7c7 commit efd8711
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Function documentation is using a specific syntax. More informations [here](../.

| Internal Variable / Function | Arguments | Description | Example Output |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------ |
| `tp.file.clipboard()` | None | Retrieves the clipboard's content | `This is my copied text` |
| `tp.system.clipboard()` | None | Retrieves the clipboard's content | `This is my copied text` |
| `tp.system.prompt(prompt_text?: string, default_value?: string, throw_on_cancel: boolean = false)` | - `prompt_text`: Text placed above the input field<br />- `default_value`: A default value for the input filed<br />- `throw_on_cancel`: Throws an error if the prompt is canceled, instead of returning a `null` value. | Spawns a prompt modal and returns the user's input. | `A value I entered` |
| `tp.system.suggester(text_items: string[] ⎮ ((item: T) => string), items: T[], throw_on_cancel: boolean = false)` | - `text_items`: Array of strings representing the text that will be displayed for each item in the suggester prompt. This can also be a function that maps an item to its text representation.<br />- `items`: Array containing the values of each item in the correct order.<br />- `throw_on_cancel`: Throws an error if the suggester prompt is canceled, instead of returning a `null` value. | Spawns a suggester prompt and returns the user's chosen item. | `A value I chose` |

Expand Down

0 comments on commit efd8711

Please sign in to comment.