feat: new note title format w/ prefs (#1629)

This commit is contained in:
Aman Harwara
2022-09-24 16:04:31 +05:30
committed by GitHub
parent bf286f4854
commit d3621d70b1
4 changed files with 66 additions and 2 deletions

View File

@@ -32,6 +32,13 @@ export enum PrefKey {
MobileDoNotShowAgainUnsupportedEditors = 'mobileDoNotShowAgainUnsupportedEditors',
MobileSelectedTagUuid = 'mobileSelectedTagUuid',
MobileNotesHideEditorIcon = 'mobileHideEditorIcon',
NewNoteTitleFormat = 'newNoteTitleFormat',
}
export enum NewNoteTitleFormat {
CurrentDateAndTime = 'CurrentDateAndTime',
CurrentNoteCount = 'CurrentNoteCount',
Empty = 'Empty',
}
export type PrefValue = {
@@ -65,4 +72,5 @@ export type PrefValue = {
[PrefKey.MobileDoNotShowAgainUnsupportedEditors]: boolean
[PrefKey.MobileSelectedTagUuid]: string | undefined
[PrefKey.MobileNotesHideEditorIcon]: boolean
[PrefKey.NewNoteTitleFormat]: NewNoteTitleFormat
}