♻️ Refactor keybinding service

This commit is contained in:
2025-12-20 16:43:04 +08:00
parent 401eb3ab39
commit 7b746155f7
60 changed files with 4526 additions and 1816 deletions

View File

@@ -103,6 +103,9 @@ type EditingConfig struct {
TabSize int `json:"tabSize"` // Tab大小
TabType TabType `json:"tabType"` // Tab类型空格或Tab
// 快捷键模式
KeymapMode KeyBindingType `json:"keymapMode"` // 快捷键模式standard 或 emacs
// 保存选项
AutoSaveDelay int `json:"autoSaveDelay"` // 自动保存延迟(毫秒)
}
@@ -203,6 +206,8 @@ func NewDefaultAppConfig() *AppConfig {
EnableTabIndent: true,
TabSize: 4,
TabType: TabTypeTab,
// 快捷键模式
KeymapMode: Standard, // 默认使用标准模式
// 保存选项
AutoSaveDelay: 2000,
},