diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-16 23:46:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 5dc2c61f1df30d2dd84fbba6d0e8895a62c3b2b5 (patch) | |
| tree | ca8907b582fb2c1fda197aa1011e5ea5f2725a46 /src/host/Host.zig | |
| parent | ca602943e3fc9faad24e51497eeafb0ae7856800 (diff) | |
| download | sketchbook-5dc2c61f1df30d2dd84fbba6d0e8895a62c3b2b5.tar.gz sketchbook-5dc2c61f1df30d2dd84fbba6d0e8895a62c3b2b5.zip | |
Export a session to a file of its own, and import one
export-session [S] FILE writes session S (this run's by default, committed
first), with the marks and clips that point into it, as session 0 of a new
database: written beside FILE, synced, renamed over it. import FILE appends
each session of such a file to this database, from "import <file name>",
its marks and clips renamed NAME@<file name> (cut to 32 bytes). The copy is
value by value, the same few lines for both, over whatever a session holds;
sessions lists where one came from.
test-import records test/past.script's session, exports it, imports it into
another database and replays it there: the mark it carries is the State
half a second in exactly, and two seconds in is frame 120's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/host/Host.zig')
| -rw-r--r-- | src/host/Host.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/Host.zig b/src/host/Host.zig index d31f4b7..1a75b2a 100644 --- a/src/host/Host.zig +++ b/src/host/Host.zig @@ -715,7 +715,7 @@ pub fn runLine(self: *Host, line: []const u8, now: u64) !void { fn movesState(line: []const u8) bool { var words = std.mem.tokenizeAny(u8, line, " \t"); const verb = words.next() orelse return false; - const still = [_][]const u8{ "help", "overlay", "timing", "get", "snapshot", "recording", "diff", "stop", "pause", "save", "quit", "exit", "sessions", "marks", "clips" }; + const still = [_][]const u8{ "help", "overlay", "timing", "get", "snapshot", "recording", "diff", "stop", "pause", "save", "quit", "exit", "sessions", "marks", "clips", "export-session", "import" }; for (still) |w| if (std.mem.eql(u8, verb, w)) return false; return true; } |
