feat(core): save recent open mode of internal links (#11086)

Closes: [BS-2865](https://linear.app/affine-design/issue/BS-2865/internal-links-保存用户最近的打开方式)

Added `openDocMode` in settings.

https://github.com/user-attachments/assets/a452da73-83e4-4ef5-9b57-58291fc22785
This commit is contained in:
fundon
2025-03-24 06:12:47 +00:00
parent 4bacfbd640
commit 63762b75a1
13 changed files with 256 additions and 128 deletions
@@ -26,6 +26,14 @@ const AffineEditorSettingSchema = z.object({
edgelessDefaultTheme: z
.enum(['specified', 'dark', 'light', 'auto'])
.default('specified'),
openDocMode: z
.enum([
'open-in-active-view',
'open-in-new-view',
'open-in-new-tab',
'open-in-center-peek',
])
.default('open-in-active-view'),
});
export const EditorSettingSchema = BSEditorSettingSchema.merge(