Paul Gauthier
42aac55b82
use offer_url
2024-11-07 11:29:05 -08:00
Paul Gauthier (aider)
e475f3d752
refactor: move webbrowser import to io.py and remove from base_coder.py
2024-11-07 10:26:54 -08:00
Paul Gauthier (aider)
4d24dbc661
style: fix linting issues in io.py header comment
2024-11-07 10:26:41 -08:00
Paul Gauthier (aider)
0368c3fae9
refactor: extract URL opening functionality into dedicated io.offer_url method
2024-11-07 10:26:33 -08:00
Paul Gauthier
2cf93ccb54
refactor: simplify URL opening confirmation prompt
2024-11-07 10:26:31 -08:00
Paul Gauthier
129f5fae76
cleanup
2024-11-04 09:09:45 -08:00
Paul Gauthier (aider)
96ad107c19
style: add newline before error message in io.py
2024-11-04 09:05:28 -08:00
Paul Gauthier (aider)
ebdc126b00
feat: add traceback printing for file read errors
2024-11-04 09:05:24 -08:00
Paul Gauthier
5e1be966ed
chore: add comment about printing traceback stack in error handling
2024-11-04 09:05:23 -08: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
b57ad6929c
Merge branch 'main' into watch
2024-11-01 11:27:29 -07:00
Paul Gauthier
72c1f25005
refactor: Move StringIO import to top of file
2024-10-31 14:49:16 -07:00
Paul Gauthier (aider)
c13536e641
style: move rich.columns import to top of file
2024-10-31 14:48:12 -07:00
Paul Gauthier (aider)
7a9988c060
style: fix linting issues in io.py
2024-10-31 14:45:35 -07:00
Paul Gauthier (aider)
b9939d4bd9
refactor: improve file list display with section headers
2024-10-31 14:45:31 -07:00
Paul Gauthier (aider)
b71a3148cf
style: fix import order in io.py
2024-10-31 14:43:29 -07:00
Paul Gauthier (aider)
42abdb0a41
feat: add compact file listing using rich Columns when pretty=True
2024-10-31 14:43:25 -07:00
Paul Gauthier
5a974483b9
Merge branch 'main' into watch
2024-10-31 14:19:37 -07:00
Paul Gauthier
854d908fe0
refactor: improve chat history file error handling and messaging
2024-10-30 06:37:59 -07:00
Paul Gauthier (aider)
d1cf3d4600
refactor: conditionally set cursor shape only in vi mode
2024-10-29 13:50:40 -07:00
Paul Gauthier
5188872791
style: add comment about vi mode cursor config
2024-10-29 13:50:38 -07:00
Paul Gauthier
5c4b75909e
refac
2024-10-26 07:31:28 -07:00
Paul Gauthier (aider)
ed2a2d7dc3
style: fix linting issues and format code
2024-10-25 16:10:56 -07:00
Paul Gauthier (aider)
0890b32425
refactor: move file change processing logic from io.py to watch.py
2024-10-25 16:10:49 -07:00
Paul Gauthier
2e5981ecb3
fix: extract AI comment content without prefix in file watcher
2024-10-25 16:10:48 -07:00
Paul Gauthier (aider)
ec00bb988c
style: format nested list comprehension for better readability
2024-10-25 16:09:17 -07:00
Paul Gauthier (aider)
14a62586cc
feat: add special handling for comments containing exclamation marks
2024-10-25 16:09:13 -07:00
Paul Gauthier
a8fe84acc7
fix: update changed_files handling to use dict keys instead of direct list
2024-10-25 16:09:12 -07:00
Paul Gauthier
88bdfd6548
cleanup
2024-10-25 15:11:02 -07:00
Paul Gauthier (aider)
70edb62a6b
feat: pass encoding parameter to watch_source_files function
2024-10-25 13:24:06 -07:00
Paul Gauthier
6c2e0ccce5
refactor: remove interrupted_partial_input parameter from InputOutput class
2024-10-25 13:24:05 -07:00
Paul Gauthier (aider)
ff8f3eb8c2
style: fix linting issues in io.py
2024-10-25 13:17:58 -07:00
Paul Gauthier (aider)
88c54c918c
feat: store partial input when interrupting prompt
2024-10-25 13:17:54 -07:00
Paul Gauthier
1261a335f4
refactor: improve file change handling in input loop
2024-10-25 13:17:53 -07:00
Paul Gauthier (aider)
7587d76fd1
refactor: simplify file watcher thread cleanup by removing timeout
2024-10-25 12:59:09 -07:00
Paul Gauthier
8e81300f37
fix: improve error handling in input interruption flow
2024-10-25 12:59:07 -07:00
Paul Gauthier (aider)
a999020038
style: fix line length in watch_files function
2024-10-25 12:56:25 -07:00
Paul Gauthier (aider)
bc4664d62c
feat: pass gitignore path to watch_source_files function
2024-10-25 12:56:20 -07:00
Paul Gauthier
6a1754aa6a
feat: add file change monitoring with gitignore support
2024-10-25 12:56:19 -07:00
Paul Gauthier (aider)
da7bb312c2
style: remove extra blank lines in io.py
2024-10-25 12:52:45 -07:00
Paul Gauthier (aider)
5b7f813f81
feat: add watch_source_files import to io.py
2024-10-25 12:52:41 -07:00
Paul Gauthier
923d9a0df2
fix: move file watcher cleanup to correct finally block
2024-10-25 12:52:39 -07:00
Paul Gauthier
c16224b37a
wip
2024-10-25 12:49:52 -07:00
Paul Gauthier (aider)
01b5bdc829
style: fix indentation in get_input method
2024-10-25 12:48:54 -07:00
Paul Gauthier
5a0d66141f
fix: change /edit to /add command for file changes
2024-10-25 12:48:53 -07:00
Paul Gauthier (aider)
8e873e7450
feat: return edit command when input interrupted by file change
2024-10-25 12:47:06 -07:00
Paul Gauthier (aider)
b985a8d47a
feat: add clean shutdown for file watcher thread
2024-10-25 12:43:31 -07:00
Paul Gauthier (aider)
3db3150a7e
feat: add input interruption from background threads
2024-10-25 12:33:07 -07:00
Paul Gauthier
a080581329
refactor: improve file path handling with glob and rglob
2024-10-25 07:49:19 -07:00
Paul Gauthier
9edf9b4186
refactor: extract get_rel_fname function for path resolution
2024-10-25 07:36:29 -07:00