mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 15:26:17 +00:00
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:
1 parent
39e7e43071
commit
1e32cf0df3
8 files changed
+577
-33
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user