mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
Don't paginate cmd_web/diff except as / commands
This commit is contained in:
parent
c3e08a80eb
commit
11820ba6c1
2 changed files with 3 additions and 3 deletions
|
@ -726,7 +726,7 @@ class Coder:
|
||||||
if url not in self.rejected_urls:
|
if url not in self.rejected_urls:
|
||||||
if self.io.confirm_ask(f"Add {url} to the chat?"):
|
if self.io.confirm_ask(f"Add {url} to the chat?"):
|
||||||
inp += "\n\n"
|
inp += "\n\n"
|
||||||
inp += self.commands.cmd_web(url)
|
inp += self.commands.cmd_web(url, paginate=False)
|
||||||
added_urls.append(url)
|
added_urls.append(url)
|
||||||
else:
|
else:
|
||||||
self.rejected_urls.add(url)
|
self.rejected_urls.add(url)
|
||||||
|
@ -1643,7 +1643,7 @@ class Coder:
|
||||||
self.aider_commit_hashes.add(commit_hash)
|
self.aider_commit_hashes.add(commit_hash)
|
||||||
self.last_aider_commit_message = commit_message
|
self.last_aider_commit_message = commit_message
|
||||||
if self.show_diffs:
|
if self.show_diffs:
|
||||||
self.commands.cmd_diff()
|
self.commands.cmd_diff(paginate=False)
|
||||||
|
|
||||||
self.io.tool_output(f"You can use /undo to revert and discard commit {commit_hash}.")
|
self.io.tool_output(f"You can use /undo to revert and discard commit {commit_hash}.")
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class TestScrape(unittest.TestCase):
|
||||||
self.commands.io.tool_error = mock_print_error
|
self.commands.io.tool_error = mock_print_error
|
||||||
|
|
||||||
# Run the cmd_web command
|
# Run the cmd_web command
|
||||||
result = self.commands.cmd_web("https://example.com")
|
result = self.commands.cmd_web("https://example.com", paginate=False)
|
||||||
|
|
||||||
# Assert that the result contains some content
|
# Assert that the result contains some content
|
||||||
self.assertIsNotNone(result)
|
self.assertIsNotNone(result)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue