mirror of
https://github.com/stablyai/orca.git
synced 2026-10-01 00:02:10 +00:00
feat(editor): add file editor word wrap preference (#8423)
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user