Skip to content

Commit ddb623b

Browse files
authored
Merge pull request #51 from MijinkoSD/main
add insertIcon()
2 parents 9d26a5d + 8c8ee71 commit ddb623b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

browser/dom/edit.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ export function redo(count = 1) {
1717
}
1818
}
1919

20+
export function insertIcon(count = 1) {
21+
for (const _ of range(0, count)) {
22+
press("i", { ctrlKey: true });
23+
}
24+
}
25+
2026
export function insertTimestamp(index = 1) {
2127
for (const _ of range(0, index)) {
2228
press("t", { altKey: true });

0 commit comments

Comments
 (0)