Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/js/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ require(["../dep/architect", "./lib/options", "./fs_picker", "text!../manual/int

setupBuiltinDoc("zed::start", introText);
setupBuiltinDoc("zed::log", "Zed Log\n===========\n");

setupScratchBuffer();

} else {
app.getService("eventbus").on("urlchanged", function() {
Expand Down Expand Up @@ -172,6 +174,16 @@ require(["../dep/architect", "./lib/options", "./fs_picker", "text!../manual/int

session_manager.specialDocs[path] = session;
}

function setupScratchBuffer() {
var path = "zed::notes";
var editor = app.getService("editor");
var session_manager = app.getService("session_manager");

var session = editor.createSession(path, "");

session_manager.specialDocs[path] = session;
}
});

app.on("service", function(name) {
Expand Down