diff --git a/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp b/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp index 3ccfececd..37901862b 100644 --- a/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp +++ b/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp @@ -21,9 +21,10 @@ static std::initializer_list AIAssistantUnlockedCommandList = { static std::initializer_list AIAssistantCommandList = { - "ai-prompt", "ai-add-chat", "ai-chat-history", "ai-attach-file", - "ai-clone-chat", "ai-settings", "ai-toggle-private-chat", "ai-save-chat", - "ai-rename-chat", "ai-show-menu", "ai-chat-toggle-role", "ai-refresh-local-models", + "ai-prompt", "ai-chat-history", "ai-attach-file", "ai-link-file", + "ai-clone-chat", "ai-settings", "ai-toggle-private-chat", "ai-save-chat", + "ai-rename-chat", "ai-show-menu", "ai-chat-toggle-role", "ai-refresh-local-models", + "ai-add-chat", "ai-select-model", "ai-toggle-agent-mode", "ai-agent-config", "new-ai-assistant" }; @@ -406,7 +407,6 @@ void AIAssistantPlugin::loadAIAssistantConfig( const std::string& path, bool upd if ( mKeyBindings.empty() ) { mKeyBindings["new-ai-assistant"] = "mod+shift+m"; mKeyBindings["ai-prompt"] = "mod+return"; - mKeyBindings["ai-add-chat"] = "mod+shift+return"; mKeyBindings["ai-chat-history"] = "mod+h"; mKeyBindings["ai-clone-chat"] = "mod+shift+c"; mKeyBindings["ai-settings"] = "mod+shift+s"; @@ -417,8 +417,11 @@ void AIAssistantPlugin::loadAIAssistantConfig( const std::string& path, bool upd mKeyBindings["ai-chat-toggle-role"] = "mod+shift+r"; mKeyBindings["ai-refresh-local-models"] = "mod+shift+l"; mKeyBindings["ai-attach-file"] = "mod+shift+a"; + mKeyBindings["ai-link-file"] = "mod+shift+z"; + mKeyBindings["ai-select-model"] = "mod+shift+x"; mKeyBindings["ai-toggle-agent-mode"] = "mod+shift+d"; mKeyBindings["ai-agent-config"] = "shift+alt+c"; + mKeyBindings["ai-add-chat"] = "mod+shift+return"; } auto& kb = j["keybindings"]; diff --git a/src/tools/ecode/plugins/aiassistant/chatui.cpp b/src/tools/ecode/plugins/aiassistant/chatui.cpp index 9c2d9ce12..49b1569a1 100644 --- a/src/tools/ecode/plugins/aiassistant/chatui.cpp +++ b/src/tools/ecode/plugins/aiassistant/chatui.cpp @@ -1195,7 +1195,6 @@ void LLMChatUI::bindCmds( UICodeEditor* editor, bool bindToChatUI ) { addKb( editor, "mod+shift+a", "ai-attach-file", bindToChatUI ); addKb( editor, "mod+shift+z", "ai-link-file", bindToChatUI ); addKb( editor, "mod+shift+x", "ai-select-model", bindToChatUI ); - addKb( editor, "mod+shift+x", "ai-select-agent", bindToChatUI ); addKb( editor, "mod+shift+d", "ai-toggle-agent-mode", bindToChatUI ); addKb( editor, "shift+alt+c", "ai-agent-config", bindToChatUI );