Moved bold and italics to plug, new file: plug protocol

This commit is contained in:
Zef Hemel
2022-06-23 17:08:42 +02:00
parent 94d0e31b30
commit b22775fcc4
10 changed files with 162 additions and 17 deletions
@@ -17,6 +17,14 @@ export function getCursor(): Promise<number> {
return syscall("editor.getCursor");
}
export function getSelection(): Promise<{ from: number; to: number }> {
return syscall("editor.getSelection");
}
export function setSelection(from: number, to: number): Promise<void> {
return syscall("editor.setSelection", from, to);
}
export function save(): Promise<void> {
return syscall("editor.save");
}