chore: swap super+a and super+shift+a bindings for ai command and context in keys.c and docs
This commit is contained in:
+13
-10
@@ -204,15 +204,15 @@ static const TutorialStep tutorial_steps[] = {
|
||||
MOD_SUPER, XK_i
|
||||
},
|
||||
{
|
||||
"17/20: AI Context",
|
||||
"Show AI analysis of your current task.\n\n"
|
||||
"17/20: AI Command",
|
||||
"Ask AI to run commands for you.\n\n"
|
||||
"Press: Super + A",
|
||||
"Requires OPENROUTER_API_KEY",
|
||||
MOD_SUPER, XK_a
|
||||
},
|
||||
{
|
||||
"18/20: AI Command",
|
||||
"Ask AI to run commands for you.\n\n"
|
||||
"18/20: AI Context",
|
||||
"Show AI analysis of your current task.\n\n"
|
||||
"Press: Super + Shift + A",
|
||||
"Requires OPENROUTER_API_KEY",
|
||||
MOD_SUPER | MOD_SHIFT, XK_a
|
||||
@@ -520,8 +520,8 @@ void keys_setup_defaults(void)
|
||||
keys_bind(MOD_SUPER, XK_Left, key_snap_left, "Snap window left");
|
||||
keys_bind(MOD_SUPER, XK_Right, key_snap_right, "Snap window right");
|
||||
|
||||
keys_bind(MOD_SUPER, XK_a, key_toggle_ai, "Toggle AI context");
|
||||
keys_bind(MOD_SUPER | MOD_SHIFT, XK_a, key_ai_command, "AI command");
|
||||
keys_bind(MOD_SUPER, XK_a, key_ai_command, "AI command");
|
||||
keys_bind(MOD_SUPER | MOD_SHIFT, XK_a, key_toggle_ai, "Toggle AI context");
|
||||
|
||||
keys_bind(MOD_SUPER | MOD_SHIFT, XK_e, key_exa_search, "Exa web search");
|
||||
|
||||
@@ -745,10 +745,10 @@ void key_toggle_ai(void)
|
||||
"Current task: %s\nFocused: %s\n%s",
|
||||
task ? task : "Unknown",
|
||||
ws->focused->title[0] ? ws->focused->title : "(unnamed)",
|
||||
suggestion ? suggestion : "Press Alt+A to ask AI for help");
|
||||
suggestion ? suggestion : "Press Super+A to ask AI for help");
|
||||
} else {
|
||||
snprintf(body, sizeof(body),
|
||||
"No window focused.\nPress Alt+A to ask AI for help");
|
||||
"No window focused.\nPress Super+A to ask AI for help");
|
||||
}
|
||||
|
||||
notification_show("DWN AI", "Context Analysis", body, NULL, 4000);
|
||||
@@ -811,10 +811,13 @@ void key_show_shortcuts(void)
|
||||
"Super+Down Bottom 50% (2x=full height)\n"
|
||||
"\n"
|
||||
"=== AI Features ===\n"
|
||||
"Super+A Show AI context\n"
|
||||
"Super+Shift+A AI command palette\n"
|
||||
"Super+A AI command palette\n"
|
||||
"Super+Shift+A Show AI context\n"
|
||||
"Super+Shift+E Exa semantic search\n"
|
||||
"\n"
|
||||
"=== News ===\n"
|
||||
"Super+Return Open news article\n"
|
||||
"\n"
|
||||
"=== Help & System ===\n"
|
||||
"Super+S Show shortcuts (this)\n"
|
||||
"Super+T Interactive tutorial\n"
|
||||
|
||||
Reference in New Issue
Block a user