mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
feat: add clipboard watcher with --copypaste flag
This commit is contained in:
parent
2a1065efc1
commit
d2d5887936
2 changed files with 11 additions and 0 deletions
|
@ -535,6 +535,12 @@ def get_parser(default_config_files, git_root):
|
|||
default=False,
|
||||
help="Enable/disable watching files for ai coding comments (default: False)",
|
||||
)
|
||||
group.add_argument(
|
||||
"--copypaste",
|
||||
action=argparse.BooleanOptionalAction,
|
||||
default=False,
|
||||
help="Enable/disable watching clipboard for changes (default: False)",
|
||||
)
|
||||
group = parser.add_argument_group("Fixing and committing")
|
||||
group.add_argument(
|
||||
"--lint",
|
||||
|
|
|
@ -825,6 +825,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
file_watcher = FileWatcher(coder, gitignores=ignores, verbose=args.verbose)
|
||||
coder.file_watcher = file_watcher
|
||||
|
||||
if args.copypaste:
|
||||
from aider.copypaste import ClipboardWatcher
|
||||
clipboard_watcher = ClipboardWatcher(coder.io, verbose=args.verbose)
|
||||
clipboard_watcher.start()
|
||||
|
||||
coder.show_announcements()
|
||||
|
||||
if args.show_prompts:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue