View: make it possible to do things on load

Also refactor reader, and add left/right shortcuts
This commit is contained in:
John Factotum authored and GitHub committed 2022-10-22 12:42:35 +00:00
1 parent 4def05e741
commit 5103dc9b90
2 files changed
+134 -117

No files matched your search

+2
View File
@@ -172,6 +172,8 @@ export class View {
return
} else this.goTo(uri)
})
this.emit?.({ type: 'loaded', doc })
}
getCFI(index, range) {
if (!range) return ''