feat(editor): add file editor word wrap preference (#8423)

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
This commit is contained in:
gatsby74
2026-07-12 15:17:06 -07:00
committed by GitHub
co-authored by Neil
parent 2306f82113
commit 9dc1f253ad
16 changed files with 242 additions and 15 deletions
+4
View File
@@ -52,6 +52,10 @@ describe('getDefaultSettings', () => {
expect(getDefaultSettings('/tmp').confirmClosePinnedTab).toBe(true)
})
it('keeps file-editor word wrapping enabled by default', () => {
expect(getDefaultSettings('/tmp').editorWordWrap).toBe(true)
})
it('keeps rich Markdown spellcheck enabled by default', () => {
expect(getDefaultSettings('/tmp').richMarkdownSpellcheckEnabled).toBe(true)
})
+1
View File
@@ -208,6 +208,7 @@ export function getDefaultSettings(homedir: string): GlobalSettings {
editorAutoSave: false,
editorAutoSaveDelayMs: DEFAULT_EDITOR_AUTO_SAVE_DELAY_MS,
editorMinimapEnabled: false,
editorWordWrap: true,
richMarkdownSpellcheckEnabled: true,
markdownReviewToolsEnabled: true,
primarySelectionMiddleClickPaste: getDefaultPrimarySelectionMiddleClickPaste(),
+2
View File
@@ -2512,6 +2512,8 @@ export type GlobalSettings = {
editorAutoSave: boolean
editorAutoSaveDelayMs: number
editorMinimapEnabled: boolean
/** Defaults on for profiles saved before file-editor wrapping became configurable. */
editorWordWrap?: boolean
/** Persisted opt-out for browser spellcheck noise in rich Markdown editing surfaces. */
richMarkdownSpellcheckEnabled?: boolean
/** Whether local markdown review note controls and the review panel are shown. */