Paul Gauthier
ddeb43783c
refactor: Update model switching to preserve weak model configuration
2025-02-06 13:43:58 -08:00
xqyz
31e738a5a3
Merge branch 'Aider-AI:main' into addingDirectoriesAutoCreation
2025-01-29 18:12:57 +00:00
Paul Gauthier
b06e765e68
copy
2025-01-13 08:58:26 -08:00
xqyz
d5469a64d2
Handle new path creation
...
To handle cases where a path, a file, or both need to be created, you can enhance the `fname.touch()` code as follows:
```python
try:
# Create parent directories if they don't exist
fname.parent.mkdir(parents=True, exist_ok=True)
# Create the file
fname.touch()
all_matched_files.add(str(fname))
self.io.tool_output(f"Created file: {fname}")
except OSError as e:
self.io.tool_error(f"Error creating file {fname}: {e}")
```
This code ensures that any necessary parent directories are created before attempting to create the file itself.
2025-01-12 07:29:45 +00:00
Paul Gauthier
f9c5cb73a2
copy
2025-01-10 15:08:15 -08:00
Paul Gauthier (aider)
d8e6dbf788
docs: clarify dual purpose of /ask, /code, and /architect commands
2025-01-10 14:51:25 -08:00
Paul Gauthier
c1ba7db8a1
refactor: Update placeholder text in cmd_run for better clarity
2025-01-10 14:23:42 -08:00
Paul Gauthier (aider)
1a84c109fc
feat: allow /ask, /code, /architect without args to switch modes
2025-01-10 14:07:24 -08:00
Paul Gauthier (aider)
d67eda24d2
style: Remove trailing whitespace and format confirm_ask prompt
2025-01-04 12:09:53 -08:00
Paul Gauthier (aider)
bba0cc8dc5
feat: show token count in command output confirmation prompt
2025-01-04 12:09:48 -08:00
Paul Gauthier
884b52b710
refactor: Add comment for tokenizing command output in Commands class
2025-01-04 12:09:45 -08:00
Paul Gauthier (aider)
2e4c2422b1
feat: Add voice format and input device initialization in Commands
2025-01-04 06:21:19 -08:00
Paul Gauthier (aider)
61f9123147
style: Run linter
2024-12-30 14:21:39 -04:00
Paul Gauthier (aider)
60708a7fd7
fix: Remove unused imports in commands.py
2024-12-30 14:21:35 -04:00
Paul Gauthier
761fb93aba
refactor: Move test_cmd_load_with_switch_coder to test file
2024-12-30 14:21:28 -04:00
Paul Gauthier (aider)
20bc718bdc
style: Format voice init for readability
2024-12-30 14:19:21 -04:00
Paul Gauthier (aider)
07337d2f41
feat: Handle voice-format command line argument
2024-12-30 14:19:14 -04:00
Paul Gauthier (aider)
3d2de00f49
style: Apply linter fixes
2024-12-30 14:17:25 -04:00
Paul Gauthier (aider)
a7242ca846
refactor: Pass voice settings to Commands as params
2024-12-30 14:17:16 -04:00
Paul Gauthier (aider)
be6811b29a
fix: Correct import path for Coder in commands.py
2024-12-26 09:59:05 -05:00
Paul Gauthier (aider)
f160b8df04
fix: Move Coder import to avoid circular dependency
2024-12-26 09:58:45 -05:00
Paul Gauthier (aider)
158471b218
style: Reorder imports in aider/commands.py
2024-12-26 09:58:15 -05:00
Paul Gauthier (aider)
a383cece53
fix: Import missing modules for test
2024-12-26 09:58:11 -05:00
Paul Gauthier (aider)
0901e6ab77
fix: Correctly format long error message string
2024-12-26 09:57:56 -05:00
Paul Gauthier (aider)
e1485971d8
test: Add test for cmd_load with SwitchCoder
2024-12-26 09:57:51 -05:00
Paul Gauthier (aider)
91c9b1bfe7
fix: Handle SwitchCoder exception in cmd_load
2024-12-26 09:57:09 -05:00
Paul Gauthier
befe6be86c
fix: Catch switchcoder exception in run_commands
2024-12-26 09:57:07 -05:00
Paul Gauthier
e10ef8b9e0
feat: Add instructions to /copy-context command
2024-12-12 12:08:29 -08:00
Paul Gauthier
f6b956dc8e
refactor: simplify voice command and improve installation docs
2024-12-11 13:52:33 -08:00
Paul Gauthier (aider)
730e5bd831
fix: add error handling for clipboard operations in copy_context command
2024-12-11 12:10:12 -08:00
Mir Adnan ALI
aaf7e3f943
Implement multiline-mode, swaps Enter & Meta-Enter
2024-12-11 09:09:58 -05:00
Paul Gauthier
f4e5515c82
docs: clarify read-only command description and behavior
2024-12-09 15:37:48 -08:00
Paul Gauthier (aider)
e2385b4922
feat: add bulk conversion to read-only mode when no files specified
2024-12-09 15:34:59 -08:00
Paul Gauthier
9974fb50f7
feat: add auto-conversion of /added files to read-only mode
2024-12-09 15:34:57 -08:00
Paul Gauthier
c5d51d62c4
feat: add architect command and improve coder class documentation
2024-12-09 15:30:01 -08:00
Paul Gauthier
9639395937
feat: improve AI comment handling and documentation
2024-12-06 08:46:52 -08:00
Paul Gauthier
623770e24b
refactor: move clipboard context functionality to commands.py
2024-12-05 20:41:40 -08:00
Paul Gauthier (aider)
80f83da9b8
chore: remove debug dump() calls
2024-12-05 09:28:18 -08:00
Paul Gauthier
6b8e235f88
feat: add file watcher support to coder cloning
2024-12-05 09:28:16 -08:00
Paul Gauthier
a8a026d509
copy
2024-12-04 15:10:21 -08:00
Paul Gauthier
e1fd506269
feat: add direct git diff output for pretty mode
2024-12-04 15:09:14 -08:00
Paul Gauthier
51c02da206
feat: add placeholder prompt when command fails with add flag
2024-12-03 08:43:54 -08:00
Paul Gauthier
59af7ed3bb
refactor: improve file path handling and remove debug code
2024-12-01 08:27:15 -08:00
Paul Gauthier (aider)
4631008f8c
style: fix whitespace in commands.py
2024-11-30 13:12:37 -08:00
Paul Gauthier (aider)
e2ebde75be
fix: improve /drop handling of relative paths with samefile check
2024-11-30 13:12:31 -08:00
Paul Gauthier
0dbaec553f
refactor: Improve version handling and cleanup version-related files
2024-11-30 10:10:03 -08:00
Paul Gauthier
295040c94c
feat: add exit event tracking for Control-C and /exit commands
2024-11-30 09:53:44 -08:00
Philippe de Reynal
e11faadf39
feat: ability to select audio input device
2024-11-30 11:24:34 +01:00
Paul Gauthier (aider)
bc1e3a7059
style: format list comprehension to single line
2024-11-27 17:35:11 -08:00
Paul Gauthier (aider)
ba17dceb4d
feat: make /drop use substring matching for non-glob patterns
2024-11-27 17:35:05 -08:00