Skip to content

Commit 09508db

Browse files
committed
(docs) add events guide placeholder
1 parent 0db9880 commit 09508db

9 files changed

+39
-15
lines changed

docs/docs/deep-dive/animation.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 6
2+
sidebar_position: 7
33
---
44

5-
# Animation
5+
# Animation
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 7
2+
sidebar_position: 8
33
---
44

5-
# Authentication
5+
# Authentication

docs/docs/deep-dive/automation.mdx

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
2-
sidebar_position: 4
2+
sidebar_position: 5
33
---
44

5-
# Automation
5+
# Automation
6+
7+
## Executing Commands
8+
9+
## Echo Command Without Execution
10+
11+
## Invoking Shortcuts

docs/docs/deep-dive/cmd.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 8
2+
sidebar_position: 9
33
---
44

5-
# Cmd
5+
# Cmd

docs/docs/deep-dive/events.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# Events

docs/docs/deep-dive/formatters.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 3
2+
sidebar_position: 4
33
---
44

55
# Formatters and Syntax Highlighting
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 5
2+
sidebar_position: 6
33
---
44

5-
# History and State
5+
# History and State
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 9
2+
sidebar_position: 10
33
---
44

5-
# Other Extensions
5+
# Other Extensions

docs/docs/deep-dive/terminal.mdx

+15-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
sidebar_position: 1
33
---
44

5+
import CodePen from '@site/src/CodePen';
6+
57
# Terminal Instance
68

79
Terminal instance is the main API that allow you to interact with the jQuery Terminal library. To
@@ -36,11 +38,22 @@ the second are options. More about echo method in [What you can echo?](/docs/dee
3638

3739
### Inserting Text Into the Command
3840

39-
To insert text into the command you can use
41+
To insert text into the command you can use `term.insert('text');`. You need to call this method outside of interpreter.
42+
You can do this outside of terminal, or inside an event, see [Terminal Events](#???).
43+
44+
This function insert the text at current cursor position. You can change the position and then insert.
45+
46+
```javascript
47+
term.set_command('heworld');
48+
term.set_position(2);
49+
term.insert('llo ');
50+
```
51+
52+
<CodePen id="dPbWKZm" title="insert + position" />
4053

4154
### Changing the Command
4255

43-
To change the command you can use
56+
Besides inserting text and current cursor position.
4457

4558
### Getting The Command
4659

0 commit comments

Comments
 (0)