Improve workspace navigation, search, and tab actions
This commit is contained in:
@@ -76,6 +76,10 @@
|
||||
if (mode !== "edit") previewMode = mode === "read" ? "preview" : "split";
|
||||
if (reading !== (mode !== "edit")) onToggleReading?.();
|
||||
}
|
||||
|
||||
export function toggleReadingView() {
|
||||
setDocumentMode(reading ? "edit" : "read");
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if !buffer || buffer.kind === "empty"}
|
||||
|
||||
Reference in New Issue
Block a user