mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user