Paul Gauthier (aider)
1a745e4fa9
fix: set cwd to repo root for shell commands in cmd_run
2024-11-26 19:53:09 -08:00
Paul Gauthier
fbadfcfa7c
refactor: Remove unnecessary input logging and history tracking in pipe_editor command
2024-11-21 18:37:51 -08:00
Paul Gauthier
2c12234604
refactor: Update input handling to set and use placeholder text
2024-11-21 18:34:24 -08:00
Paul Gauthier (aider)
2a387707ef
feat: Add --editor switch to specify editor for /editor command
2024-11-21 09:52:14 -08:00
Paul Gauthier
b78f8abeb4
copy
2024-11-21 06:34:08 -08:00
Paul Gauthier (aider)
7aa4e44317
fix: Correct line/lines pluralization in command output messages
2024-11-21 06:30:52 -08:00
Paul Gauthier
2619b92131
fix: Add period to output message for consistency
2024-11-21 06:30:50 -08:00
Paul Gauthier (aider)
28be59582f
refactor: Simplify cmd_run to use confirm_ask and add output to cur_messages
2024-11-21 06:28:41 -08:00
Paul Gauthier
a06a9ed7d8
show the /editor message
2024-11-20 15:31:32 -08:00
Paul Gauthier
16a4f823bd
refactor: Move pipe_editor import and return user input in cmd_editor method
2024-11-19 12:30:41 -08:00
paul-gauthier
f1306d3301
Merge pull request #2234 from thehunmonkgroup/main
...
add /editor command
2024-11-19 12:22:37 -08:00
Paul Gauthier
bc82baa968
refactor: Reorder git ignored file check to handle non-git repos
2024-11-13 13:18:09 -08:00
Paul Gauthier
218623be28
feat: Add git_ignored_file method to check files against gitignore
2024-11-13 13:12:25 -08:00
Paul Gauthier
52c49fc8fd
feat: Add option to return web scrape content instead of printing
2024-11-08 14:27:59 -08:00
Paul Gauthier
77cb64958e
refactor: Modify URL scraping and message handling in commands
2024-11-08 14:23:55 -08:00
Paul Gauthier (aider)
b3d13e44b2
refactor: Modify cmd_web to add scraped content to cur_messages as assistant reply
2024-11-08 14:21:59 -08:00
Chad Phillips
8801fda972
formatting fixes
2024-11-04 10:10:37 -06:00
Chad Phillips
d8e9da35d6
add /editor command
...
Opens an editor for constructing a user prompt, using the currently defined chat mode.
The editor is determined as follows:
Look for the following environment variables, in order:
1. AIDER_EDITOR
2. VISUAL
3. EDITOR
If none of these are defined, use the following defaults:
Windows: notepad
OS X: vim
*nix: vi
If an editor is not found, a RuntimeError is raised.
Any arguments passed after the /editor command are inserted as content.
The temporary file used for editing has an .md extension, which can be leveraged for syntax highlighting.
NOTE: The editor used MUST block the process until the editor is closed -- the default editors all do this.
2024-11-03 20:18:57 -05:00
Paul Gauthier
66ad186edd
start /save commands with /drop
2024-11-01 09:04:55 -07:00
Paul Gauthier (aider)
624f9122ab
style: fix whitespace in commands.py
2024-10-31 14:58:29 -07:00
Paul Gauthier (aider)
704350286c
feat: allow /read command to work with images for vision models
2024-10-31 14:58:23 -07:00
Paul Gauthier (aider)
ec40ff5987
feat: prevent adding image files with /read command
2024-10-31 14:57:44 -07:00
Paul Gauthier
068fb38a5d
Merge branch 'main' into mixpanel
2024-10-30 09:40:01 -07:00
Paul Gauthier
c5dc44a73f
style: simplify command execution output message
2024-10-29 13:59:04 -07:00
Paul Gauthier (aider)
358cbc9388
feat: add filename autocompletion to /load and /save commands
2024-10-29 13:58:25 -07:00
Paul Gauthier
2e5fa9dea4
style: align /add commands in history file for better readability
2024-10-29 13:58:23 -07:00
Paul Gauthier (aider)
6dc0b8d853
fix: use absolute paths for read-only files outside repo root
2024-10-29 13:14:37 -07:00
Paul Gauthier (aider)
0c37f002c9
style: remove extra newlines and fix trailing comma
2024-10-29 12:48:21 -07:00
Paul Gauthier (aider)
18c41b6128
refactor: move test_cmd_save_and_load to test_commands.py
2024-10-29 12:48:11 -07:00
Paul Gauthier
5876af4e94
test: add test for cmd_save and cmd_load functionality
2024-10-29 12:48:08 -07:00
Paul Gauthier (aider)
f5ca162576
style: fix whitespace and comment formatting
2024-10-29 12:43:56 -07:00
Paul Gauthier (aider)
dbefa6b010
feat: add /save command to store chat session file list
2024-10-29 12:43:51 -07:00
Paul Gauthier
79cdff6163
feat: add /save command to persist added files for /load
2024-10-29 12:43:49 -07:00
Paul Gauthier (aider)
b111fc357c
fix: use IO encoding and handle decode errors in cmd_load
2024-10-29 12:42:33 -07:00
Paul Gauthier
2af48e159c
feat: add encoding hint for file loading in commands
2024-10-29 12:42:31 -07:00
Paul Gauthier (aider)
6cec44e402
style: fix string quotes and whitespace in commands.py
2024-10-29 12:41:10 -07:00
Paul Gauthier (aider)
fc6c01a9a5
feat: add command to load and execute commands from file
2024-10-29 12:41:01 -07:00
Paul Gauthier
01439875af
feat: add comment for future cmd_load implementation
2024-10-29 12:40:57 -07:00
Paul Gauthier
ddb876d2fe
only glob, not rglob for /read
2024-10-25 09:22:50 -07:00
Paul Gauthier
a080581329
refactor: improve file path handling with glob and rglob
2024-10-25 07:49:19 -07:00
Paul Gauthier (aider)
f70a82791b
fix: handle absolute paths and globs in cmd_read_only
2024-10-25 07:43:31 -07:00
Paul Gauthier
5d3a60228c
fix: use Path.rglob instead of glob.glob for recursive file matching
2024-10-25 07:43:29 -07:00
Konstantin L
ba9fdaa755
fix: Impossible to /read-only from another working directory
2024-10-25 10:59:23 +02:00
Paul Gauthier (aider)
9507f3c008
refactor: use main_model.info["supports_vision"] instead of accepts_images
2024-10-24 14:05:17 -07:00
Paul Gauthier
901e4397cb
copy
2024-10-24 13:49:27 -07:00
Paul Gauthier (aider)
e18b8b0a29
style: fix indentation in commands.py
2024-10-24 13:46:32 -07:00
Paul Gauthier (aider)
62ff822ee8
refactor: collect and sort expanded filenames before processing
2024-10-24 13:46:27 -07:00
Paul Gauthier
c9993dccc8
fix: remove stray comment and add sorting note in cmd_read
2024-10-24 13:46:25 -07:00
Paul Gauthier (aider)
6181fe5efa
feat: sort filenames in cmd_read_only for consistent behavior
2024-10-24 13:44:52 -07:00
Paul Gauthier
dd6124fa64
refactor: sort filenames in cmd_read to match cmd_add behavior
2024-10-24 13:44:51 -07:00