🎨 Refactoring the extension service and the keybinding service

This commit is contained in:
2025-07-07 13:19:59 +08:00
parent 7c2318a13f
commit 7fcfc5e992
14 changed files with 680 additions and 506 deletions

View File

@@ -107,14 +107,7 @@ func NewDefaultExtensions() []Extension {
Enabled: true,
IsDefault: true,
Config: ExtensionConfig{
"defaultSourceLang": "auto",
"defaultTargetLang": "zh",
"defaultTranslator": "bing",
"showTranslateButton": true,
"showButtonOnSelect": true,
"buttonDisplayDelay": 300,
"tooltipTimeout": 0,
"maxTooltipWidth": 300,
"minSelectionLength": 2,
"maxTranslationLength": 5000,
},