feat(app): browser-like tabs with per-tab history and persistence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-26 03:37:39 +01:00
1 parent 39e7e43071
commit 1e32cf0df3
8 files changed
+577 -33

No files matched your search

+6 -2
View File
@@ -317,8 +317,10 @@ class _BlockViewState extends State<BlockView> {
base: blockTextStyle(context),
refs: app.refs,
assetPath: app.backend.assetPath,
onPage: app.openTitle,
onBlockRef: (r) => app.openId(r.pageId),
onPage: (t) => app.navigate(PageTarget(title: t)),
onBlockRef: (r) => app.navigate(PageTarget(id: r.pageId)),
onPageNewTab: app.openTitleInNewTab,
onBlockRefNewTab: (r) => app.openIdInNewTab(r.pageId),
onUrl: openUrl,
onToggleTodo: () => widget.controller.cycleTodo(widget.node),
maxWidth: width,
@@ -708,6 +710,8 @@ class _BlockEditorState extends State<BlockEditor> {
return KeyEventResult.handled;
}
if (key == LogicalKeyboardKey.tab) {
// Ctrl+Tab switches app tabs (handled by the shell shortcuts).
if (ctrl) return KeyEventResult.ignored;
if (shift) {
c.outdent(n, caret: caret);
} else {