Skip to content

Commit e8375de

Browse files
feat(commands): πŸ“‹ Enhance command descriptions & add new cmds
✨ Updated existing command descriptions to be more clear and precise πŸ”„ Added several new commands including: - /context - For showing surrounding code context - /copy-context - For copying chat context as markdown - /edit & /editor - For writing prompts in an editor - /editor-model - For switching the Editor Model - /multiline-mode - For toggling multiline input behavior - /reasoning-effort - For setting reasoning level - /think-tokens - For setting thinking token budget - /voice - For voice input recording and transcription - /weak-model - For switching the Weak Model 🧹 Properly formatted and organized all command entries πŸ“š Improved consistency across all command descriptions
1 parent 753f681 commit e8375de

File tree

2 files changed

+90
-45
lines changed

2 files changed

+90
-45
lines changed

β€Žflake.lock

+18-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlua/nvim_aider/commands.lua

+72-27
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ local COMMAND_PREFIX = "/"
1515
local commands = {
1616
add = {
1717
value = COMMAND_PREFIX .. "add",
18-
description = "Add files to the chat for editing or detailed review",
18+
description = "Add files to the chat so aider can edit them or review them in detail",
1919
category = "input",
2020
},
2121
architect = {
2222
value = COMMAND_PREFIX .. "architect",
23-
description = "Enter architect mode for high-level design discussions",
23+
description = "Enter architect/editor mode using two different models. If no prompt is provided, switches to architect/editor mode",
2424
category = "input",
2525
},
2626
ask = {
2727
value = COMMAND_PREFIX .. "ask",
28-
description = "Ask questions about the codebase without editing files",
28+
description = "Ask questions about the code base without editing any files. If no prompt is provided, switches to ask mode",
2929
category = "input",
3030
},
3131
["chat-mode"] = {
@@ -40,27 +40,52 @@ local commands = {
4040
},
4141
code = {
4242
value = COMMAND_PREFIX .. "code",
43-
description = "Request changes to your code",
43+
description = "Ask for changes to your code. If no prompt is provided, switches to code mode",
4444
category = "input",
4545
},
4646
commit = {
4747
value = COMMAND_PREFIX .. "commit",
48-
description = "Commit edits made outside the chat to the repo",
48+
description = "Commit edits to the repo made outside the chat (commit message optional)",
49+
category = "input",
50+
},
51+
context = {
52+
value = COMMAND_PREFIX .. "context",
53+
description = "Enter context mode to see surrounding code context. If no prompt is provided, switches to context mode",
4954
category = "input",
5055
},
5156
copy = {
5257
value = COMMAND_PREFIX .. "copy",
53-
description = "Copy the last assistant message to clipboard",
58+
description = "Copy the last assistant message to the clipboard",
59+
category = "direct",
60+
},
61+
["copy-context"] = {
62+
value = COMMAND_PREFIX .. "copy-context",
63+
description = "Copy the current chat context as markdown, suitable for pasting into a web UI",
5464
category = "direct",
5565
},
5666
diff = {
5767
value = COMMAND_PREFIX .. "diff",
58-
description = "Display changes diff since the last message",
68+
description = "Display the diff of changes since the last message",
5969
category = "direct",
6070
},
6171
drop = {
6272
value = COMMAND_PREFIX .. "drop",
63-
description = "Remove files from chat session to free context space",
73+
description = "Remove files from the chat session to free up context space",
74+
category = "input",
75+
},
76+
edit = {
77+
value = COMMAND_PREFIX .. "edit",
78+
description = "Alias for /editor: Open an editor to write a prompt",
79+
category = "input",
80+
},
81+
editor = {
82+
value = COMMAND_PREFIX .. "editor",
83+
description = "Open an editor to write a prompt",
84+
category = "input",
85+
},
86+
["editor-model"] = {
87+
value = COMMAND_PREFIX .. "editor-model",
88+
description = "Switch the Editor Model to a new LLM",
6489
category = "input",
6590
},
6691
exit = {
@@ -80,7 +105,7 @@ local commands = {
80105
},
81106
lint = {
82107
value = COMMAND_PREFIX .. "lint",
83-
description = "Lint and fix in-chat files or all dirty files",
108+
description = "Lint and fix in-chat files or all dirty files if none are in chat",
84109
category = "direct",
85110
},
86111
load = {
@@ -90,12 +115,12 @@ local commands = {
90115
},
91116
ls = {
92117
value = COMMAND_PREFIX .. "ls",
93-
description = "List known files and their chat session status",
118+
description = "List all known files and indicate which are included in the chat session",
94119
category = "direct",
95120
},
96121
map = {
97122
value = COMMAND_PREFIX .. "map",
98-
description = "Print the current repository map",
123+
description = "Print out the current repository map",
99124
category = "direct",
100125
},
101126
["map-refresh"] = {
@@ -105,17 +130,22 @@ local commands = {
105130
},
106131
model = {
107132
value = COMMAND_PREFIX .. "model",
108-
description = "Switch to a new LLM",
133+
description = "Switch the Main Model to a new LLM",
109134
category = "input",
110135
},
111136
models = {
112137
value = COMMAND_PREFIX .. "models",
113138
description = "Search the list of available models",
114139
category = "direct",
115140
},
141+
["multiline-mode"] = {
142+
value = COMMAND_PREFIX .. "multiline-mode",
143+
description = "Toggle multiline mode (swap behavior of Enter and Meta+Enter)",
144+
category = "direct",
145+
},
116146
paste = {
117147
value = COMMAND_PREFIX .. "paste",
118-
description = "Paste image/text from clipboard into chat",
148+
description = "Paste image/text from the clipboard into the chat (optionally provide a name for the image)",
119149
category = "direct",
120150
},
121151
quit = {
@@ -125,7 +155,12 @@ local commands = {
125155
},
126156
["read-only"] = {
127157
value = COMMAND_PREFIX .. "read-only",
128-
description = "Add reference files to chat, not for editing",
158+
description = "Add files to the chat for reference only (not for editing) or make added files read-only",
159+
category = "input",
160+
},
161+
["reasoning-effort"] = {
162+
value = COMMAND_PREFIX .. "reasoning-effort",
163+
description = "Set the reasoning effort level (a number or low/medium/high, depending on model)",
129164
category = "input",
130165
},
131166
report = {
@@ -135,47 +170,57 @@ local commands = {
135170
},
136171
reset = {
137172
value = COMMAND_PREFIX .. "reset",
138-
description = "Drop all files and clear chat history",
173+
description = "Drop all files and clear the chat history",
139174
category = "direct",
140175
},
141176
run = {
142177
value = COMMAND_PREFIX .. "run",
143-
description = "Run a shell command, optionally add output to chat",
178+
description = "Run a shell command and optionally add the output to the chat (alias: !)",
144179
category = "input",
145180
},
146181
save = {
147182
value = COMMAND_PREFIX .. "save",
148-
description = "Save commands to reconstruct current chat session",
183+
description = "Save commands to a file that can reconstruct the current chat session",
149184
category = "direct",
150185
},
151186
settings = {
152187
value = COMMAND_PREFIX .. "settings",
153-
description = "Print current settings",
188+
description = "Print out the current settings",
154189
category = "direct",
155190
},
156191
test = {
157192
value = COMMAND_PREFIX .. "test",
158-
description = "Run command, add output to chat on non-zero exit",
193+
description = "Run a shell command and add the output to the chat on non-zero exit code",
159194
category = "direct",
160195
},
196+
["think-tokens"] = {
197+
value = COMMAND_PREFIX .. "think-tokens",
198+
description = "Set the thinking token budget (e.g. 8096, 8k, 10.5k, 0.5M)",
199+
category = "input",
200+
},
161201
tokens = {
162202
value = COMMAND_PREFIX .. "tokens",
163-
description = "Report tokens used by current chat context",
203+
description = "Report on the number of tokens used by the current chat context",
164204
category = "direct",
165205
},
166206
undo = {
167207
value = COMMAND_PREFIX .. "undo",
168-
description = "Undo last git commit if done by aider",
208+
description = "Undo the last git commit if it was done by aider",
209+
category = "direct",
210+
},
211+
voice = {
212+
value = COMMAND_PREFIX .. "voice",
213+
description = "Record and transcribe voice input",
169214
category = "direct",
170215
},
171-
-- voice = {
172-
-- value = COMMAND_PREFIX .. "voice",
173-
-- description = "Record and transcribe voice input",
174-
-- category = "direct",
175-
-- },
216+
["weak-model"] = {
217+
value = COMMAND_PREFIX .. "weak-model",
218+
description = "Switch the Weak Model to a new LLM",
219+
category = "input",
220+
},
176221
web = {
177222
value = COMMAND_PREFIX .. "web",
178-
description = "Scrape webpage, convert to markdown, send in message",
223+
description = "Scrape a webpage, convert it to markdown, and send it in a message",
179224
category = "input",
180225
},
181226
}

0 commit comments

Comments
Β (0)