mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-01 06:16:46 -06:00
Tools that act on a document, and the control methods engine.execute, document.inspect, node.get and ui.render, take an optional `document` (an open file's id from doc.list / document.inspect, or its path). The call acts on that file and the tab in front stays in front, so an attached agent keeps editing its own file when the user switches tabs.
15 lines
542 B
Rust
15 lines
542 B
Rust
use super::derived::normalize;
|
|
use super::doc_state::{DocState, ENDS_PREVIEW, HistoryEntry, Interaction, PREVIEW_READ_ONLY};
|
|
use super::error::{EngineError, Result, bad};
|
|
use super::prefs::{Clipboard, Prefs, UiRequest};
|
|
use super::{
|
|
Arc, BatchScope, BatchStep, CommandSpec, Document, Node, NodeId, Session, Value, background, board, branches, cmd, components, events,
|
|
figcraft_collab, find_command, guard, json, library, live, params, plugins, textpreview, tools,
|
|
};
|
|
|
|
mod access;
|
|
pub use access::Forward;
|
|
mod exec;
|
|
mod new;
|
|
mod undo;
|