demotape 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d52409cc191aed4c00084f2de0fcccd3ddb80d121bdeffda786ac680d7c3632
4
- data.tar.gz: 5a69e7d5bf40278b1466a00e18f9e3fdf7020aa1f769dc75229b16140193e866
3
+ metadata.gz: 0a4c67efaf040420dc543039549015bb4a7bdf56a7ffe7a9083c4d706260c561
4
+ data.tar.gz: 3a7005597cba7f68adfed6b8273d2ff42d150c4179cb4daedc8e5dd046e11b5e
5
5
  SHA512:
6
- metadata.gz: 11e842eedd0656db535abf4572408cb0c2ebfc576f5fa3fa809f3699efc272e540244fce66a8dd62098164c9daea0be3f6e958ff57e49a21a8a60e7a656765c3
7
- data.tar.gz: 25a9b6cfb6daf5f84831980e1ede66ed5b5fabd617a71682c7790cc973a1a8adc884b60bdb5c65eef38c2c633cabc7179672b0e9c35fde2f7d4fbcaf3f873427
6
+ metadata.gz: b084505658402b05e585a8d03c10086afbe89e0fa73c5d0a112550cc3120e16d624b69d288de7b88ab936ad9db40002defbb0b79b84dad14d8729683582621dd
7
+ data.tar.gz: 690905dcae32c4b1b2454dba06186eb43b139aca7af13a0fe2ae3ee72bdbd65039ccdae1d0e555c7890052bd301b9d6833cd243f5e0ec8e0943253b2eb85ee1e
data/.gitignore CHANGED
@@ -14,9 +14,9 @@ examples/themes/*.mp4
14
14
  /themes.json
15
15
  *.sw*
16
16
  *.vsix
17
+ node_modules
17
18
 
18
19
  # Tree-sitter
19
- editors/zed/tree-sitter/node_modules/
20
20
  editors/zed/tree-sitter/build/
21
21
  editors/zed/tree-sitter/*.node
22
22
  editors/zed/grammars/demotape
data/CHANGELOG.md CHANGED
@@ -11,6 +11,12 @@ Prefix your message with one of the following:
11
11
  - [Security] in case of vulnerabilities.
12
12
  -->
13
13
 
14
+ ## v0.0.9
15
+
16
+ - [Fixed] Handle `SIGINT` and `SIGQUIT` signals to gracefully stop recording.
17
+ - [Added] Add `--timeout` and `Set timeout duration` to specify a maximum time
18
+ to wait for the demo tape execution.
19
+
14
20
  ## v0.0.8
15
21
 
16
22
  - [Added] Add `WaitUntilDone`, which is just a shortcut for
@@ -5,7 +5,10 @@
5
5
  { "trigger": "Type", "contents": "Type \"${1:text}\"" },
6
6
  { "trigger": "Type@", "contents": "Type@${1:50ms} \"${2:text}\"" },
7
7
  { "trigger": "TypeFile", "contents": "TypeFile \"${1:path/to/file}\"" },
8
- { "trigger": "TypeFile@", "contents": "TypeFile@${1:50ms} \"${2:path/to/file}\"" },
8
+ {
9
+ "trigger": "TypeFile@",
10
+ "contents": "TypeFile@${1:50ms} \"${2:path/to/file}\"",
11
+ },
9
12
  { "trigger": "Run", "contents": "Run \"${1:command}\"" },
10
13
  { "trigger": "Run@", "contents": "Run@${1:1s} \"${2:command}\"" },
11
14
  { "trigger": "Copy", "contents": "Copy \"${1:text}\"" },
@@ -54,36 +57,106 @@
54
57
  },
55
58
  { "trigger": "Set padding", "contents": "Set padding ${1:20}" },
56
59
  { "trigger": "Set margin", "contents": "Set margin ${1:60}" },
57
- { "trigger": "Set margin_fill", "contents": "Set margin_fill \"${1:#6b50ff}\"" },
60
+ {
61
+ "trigger": "Set margin_fill",
62
+ "contents": "Set margin_fill \"${1:#6b50ff}\"",
63
+ },
58
64
  { "trigger": "Set border_radius", "contents": "Set border_radius ${1:10}" },
59
65
  { "trigger": "Set typing_speed", "contents": "Set typing_speed ${1:50ms}" },
60
- { "trigger": "Set variable_typing", "contents": "Set variable_typing ${1:true}" },
66
+ {
67
+ "trigger": "Set variable_typing",
68
+ "contents": "Set variable_typing ${1:true}",
69
+ },
61
70
  { "trigger": "Set loop", "contents": "Set loop ${1:true}" },
62
71
  { "trigger": "Set loop_delay", "contents": "Set loop_delay ${1:2s}" },
63
- { "trigger": "Set run_enter_delay", "contents": "Set run_enter_delay ${1:300ms}" },
72
+ { "trigger": "Set timeout", "contents": "Set timeout ${1:1m}" },
73
+ {
74
+ "trigger": "Set run_enter_delay",
75
+ "contents": "Set run_enter_delay ${1:300ms}",
76
+ },
64
77
  { "trigger": "Set run_sleep", "contents": "Set run_sleep ${1:1s}" },
65
78
 
66
79
  // Theme color overrides
67
- { "trigger": "Set theme.background", "contents": "Set theme.background \"${1:#222222}\"" },
68
- { "trigger": "Set theme.foreground", "contents": "Set theme.foreground \"${1:#ffffff}\"" },
69
- { "trigger": "Set theme.cursor", "contents": "Set theme.cursor \"${1:#00ff00}\"" },
70
- { "trigger": "Set theme.selection_background", "contents": "Set theme.selection_background \"${1:#444444}\"" },
71
- { "trigger": "Set theme.black", "contents": "Set theme.black \"${1:#000000}\"" },
72
- { "trigger": "Set theme.red", "contents": "Set theme.red \"${1:#ff0000}\"" },
73
- { "trigger": "Set theme.green", "contents": "Set theme.green \"${1:#00ff00}\"" },
74
- { "trigger": "Set theme.yellow", "contents": "Set theme.yellow \"${1:#ffff00}\"" },
75
- { "trigger": "Set theme.blue", "contents": "Set theme.blue \"${1:#0000ff}\"" },
76
- { "trigger": "Set theme.magenta", "contents": "Set theme.magenta \"${1:#ff00ff}\"" },
77
- { "trigger": "Set theme.cyan", "contents": "Set theme.cyan \"${1:#00ffff}\"" },
78
- { "trigger": "Set theme.white", "contents": "Set theme.white \"${1:#ffffff}\"" },
79
- { "trigger": "Set theme.bright_black", "contents": "Set theme.bright_black \"${1:#555555}\"" },
80
- { "trigger": "Set theme.bright_red", "contents": "Set theme.bright_red \"${1:#ff5555}\"" },
81
- { "trigger": "Set theme.bright_green", "contents": "Set theme.bright_green \"${1:#55ff55}\"" },
82
- { "trigger": "Set theme.bright_yellow", "contents": "Set theme.bright_yellow \"${1:#ffff55}\"" },
83
- { "trigger": "Set theme.bright_blue", "contents": "Set theme.bright_blue \"${1:#5555ff}\"" },
84
- { "trigger": "Set theme.bright_magenta", "contents": "Set theme.bright_magenta \"${1:#ff55ff}\"" },
85
- { "trigger": "Set theme.bright_cyan", "contents": "Set theme.bright_cyan \"${1:#55ffff}\"" },
86
- { "trigger": "Set theme.bright_white", "contents": "Set theme.bright_white \"${1:#ffffff}\"" },
80
+ {
81
+ "trigger": "Set theme.background",
82
+ "contents": "Set theme.background \"${1:#222222}\"",
83
+ },
84
+ {
85
+ "trigger": "Set theme.foreground",
86
+ "contents": "Set theme.foreground \"${1:#ffffff}\"",
87
+ },
88
+ {
89
+ "trigger": "Set theme.cursor",
90
+ "contents": "Set theme.cursor \"${1:#00ff00}\"",
91
+ },
92
+ {
93
+ "trigger": "Set theme.selection_background",
94
+ "contents": "Set theme.selection_background \"${1:#444444}\"",
95
+ },
96
+ {
97
+ "trigger": "Set theme.black",
98
+ "contents": "Set theme.black \"${1:#000000}\"",
99
+ },
100
+ {
101
+ "trigger": "Set theme.red",
102
+ "contents": "Set theme.red \"${1:#ff0000}\"",
103
+ },
104
+ {
105
+ "trigger": "Set theme.green",
106
+ "contents": "Set theme.green \"${1:#00ff00}\"",
107
+ },
108
+ {
109
+ "trigger": "Set theme.yellow",
110
+ "contents": "Set theme.yellow \"${1:#ffff00}\"",
111
+ },
112
+ {
113
+ "trigger": "Set theme.blue",
114
+ "contents": "Set theme.blue \"${1:#0000ff}\"",
115
+ },
116
+ {
117
+ "trigger": "Set theme.magenta",
118
+ "contents": "Set theme.magenta \"${1:#ff00ff}\"",
119
+ },
120
+ {
121
+ "trigger": "Set theme.cyan",
122
+ "contents": "Set theme.cyan \"${1:#00ffff}\"",
123
+ },
124
+ {
125
+ "trigger": "Set theme.white",
126
+ "contents": "Set theme.white \"${1:#ffffff}\"",
127
+ },
128
+ {
129
+ "trigger": "Set theme.bright_black",
130
+ "contents": "Set theme.bright_black \"${1:#555555}\"",
131
+ },
132
+ {
133
+ "trigger": "Set theme.bright_red",
134
+ "contents": "Set theme.bright_red \"${1:#ff5555}\"",
135
+ },
136
+ {
137
+ "trigger": "Set theme.bright_green",
138
+ "contents": "Set theme.bright_green \"${1:#55ff55}\"",
139
+ },
140
+ {
141
+ "trigger": "Set theme.bright_yellow",
142
+ "contents": "Set theme.bright_yellow \"${1:#ffff55}\"",
143
+ },
144
+ {
145
+ "trigger": "Set theme.bright_blue",
146
+ "contents": "Set theme.bright_blue \"${1:#5555ff}\"",
147
+ },
148
+ {
149
+ "trigger": "Set theme.bright_magenta",
150
+ "contents": "Set theme.bright_magenta \"${1:#ff55ff}\"",
151
+ },
152
+ {
153
+ "trigger": "Set theme.bright_cyan",
154
+ "contents": "Set theme.bright_cyan \"${1:#55ffff}\"",
155
+ },
156
+ {
157
+ "trigger": "Set theme.bright_white",
158
+ "contents": "Set theme.bright_white \"${1:#ffffff}\"",
159
+ },
87
160
 
88
161
  // Special keys
89
162
  "Enter",
@@ -154,7 +154,7 @@ contexts:
154
154
  pop: true
155
155
 
156
156
  set_command:
157
- - match: '\b(border_radius|shell|theme|width|height|font_size|font_family|line_height|cursor_blink|cursor_width|cursor_style|letter_spacing|padding|margin|margin_fill|fps|typing_speed|loop|loop_delay|variable_typing|run_enter_delay|run_sleep)(\.[a-z_]+)?\b'
157
+ - match: '\b(border_radius|shell|theme|width|height|font_size|font_family|line_height|cursor_blink|cursor_width|cursor_style|letter_spacing|padding|margin|margin_fill|fps|typing_speed|loop|loop_delay|timeout|variable_typing|run_enter_delay|run_sleep)(\.[a-z_]+)?\b'
158
158
  captures:
159
159
  1: variable.parameter.demotape
160
160
  2: variable.other.member.demotape
@@ -41,9 +41,9 @@ syn match demotapeOperator "@"
41
41
  " Set options
42
42
  syn keyword demotapeOption border_radius shell theme width height font_size font_family
43
43
  syn keyword demotapeOption line_height cursor_blink cursor_width cursor_style letter_spacing
44
- syn keyword demotapeOption padding margin margin_fill fps typing_speed loop loop_delay variable_typing
44
+ syn keyword demotapeOption padding margin margin_fill fps typing_speed loop loop_delay timeout variable_typing
45
45
  syn keyword demotapeOption run_enter_delay run_sleep
46
- syn match demotapeOption "\<\(border_radius\|shell\|theme\|width\|height\|font_size\|font_family\|line_height\|cursor_blink\|cursor_width\|cursor_style\|letter_spacing\|padding\|margin\|margin_fill\|fps\|typing_speed\|loop_delay\|loop\|variable_typing\|run_enter_delay\|run_sleep\)\.\w\+\>"
46
+ syn match demotapeOption "\<\(border_radius\|shell\|theme\|width\|height\|font_size\|font_family\|line_height\|cursor_blink\|cursor_width\|cursor_style\|letter_spacing\|padding\|margin\|margin_fill\|fps\|typing_speed\|loop_delay\|timeout\|loop\|variable_typing\|run_enter_delay\|run_sleep\)\.\w\+\>"
47
47
 
48
48
  " Strings
49
49
  syn region demotapeString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=demotapeEscape
@@ -112,7 +112,7 @@
112
112
  },
113
113
  {
114
114
  "comment": "Set command options",
115
- "match": "\\b(border_radius|shell|theme|width|height|font_size|font_family|line_height|cursor_blink|cursor_width|cursor_style|letter_spacing|padding|margin|margin_fill|fps|typing_speed|loop|loop_delay|variable_typing|run_enter_delay|run_sleep)(\\.[a-z_]+)?\\b",
115
+ "match": "\\b(border_radius|shell|theme|width|height|font_size|font_family|line_height|cursor_blink|cursor_width|cursor_style|letter_spacing|padding|margin|margin_fill|fps|typing_speed|loop|loop_delay|timeout|variable_typing|run_enter_delay|run_sleep)(\\.[a-z_]+)?\\b",
116
116
  "captures": {
117
117
  "1": { "name": "variable.parameter.demotape" },
118
118
  "2": { "name": "variable.other.member.demotape" }