Feature: File Editor (#789)

* feat: Add file management feature

* feat: Add auto-save functionality to file editor

* fix: Replace HardDriveDownload icon with Save icon for consistency

* fix: Prevent recursive copy/move and improve shell injection prevention

* refactor: Extract editor settings form into separate component
This commit is contained in:
gsxdsm
2026-02-20 16:06:44 -08:00
committed by GitHub
parent 0a5540c9a2
commit 0e020f7e4a
36 changed files with 5513 additions and 11 deletions

View File

@@ -343,6 +343,10 @@ const initialState: AppState = {
skipSandboxWarning: false,
mcpServers: [],
defaultEditorCommand: null,
editorFontSize: 13,
editorFontFamily: 'default',
editorAutoSave: false,
editorAutoSaveDelay: 1000,
defaultTerminalId: null,
enableSkills: true,
skillsSources: ['user', 'project'] as Array<'user' | 'project'>,
@@ -1389,6 +1393,12 @@ export const useAppStore = create<AppState & AppActions>()((set, get) => ({
// Editor Configuration actions
setDefaultEditorCommand: (command) => set({ defaultEditorCommand: command }),
// File Editor Settings actions
setEditorFontSize: (size) => set({ editorFontSize: size }),
setEditorFontFamily: (fontFamily) => set({ editorFontFamily: fontFamily }),
setEditorAutoSave: (enabled) => set({ editorAutoSave: enabled }),
setEditorAutoSaveDelay: (delay) => set({ editorAutoSaveDelay: delay }),
// Terminal Configuration actions
setDefaultTerminalId: (terminalId) => set({ defaultTerminalId: terminalId }),