View: make it possible to do things on load

Also refactor reader, and add left/right shortcuts
This commit is contained in:
John Factotum
2022-10-22 12:42:35 +00:00
committed by GitHub
parent 4def05e741
commit 5103dc9b90
2 changed files with 134 additions and 117 deletions
+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 ''