mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
refactor: remove pagination from web command
This commit is contained in:
parent
ffa30983c7
commit
6f6b016d0f
3 changed files with 2 additions and 7 deletions
|
@ -782,7 +782,7 @@ class Coder:
|
||||||
if url not in self.rejected_urls:
|
if url not in self.rejected_urls:
|
||||||
if self.io.confirm_ask("Add URL to the chat?", subject=url, group=group):
|
if self.io.confirm_ask("Add URL to the chat?", subject=url, group=group):
|
||||||
inp += "\n\n"
|
inp += "\n\n"
|
||||||
inp += self.commands.cmd_web(url, paginate=False)
|
inp += self.commands.cmd_web(url)
|
||||||
added_urls.append(url)
|
added_urls.append(url)
|
||||||
else:
|
else:
|
||||||
self.rejected_urls.add(url)
|
self.rejected_urls.add(url)
|
||||||
|
|
|
@ -120,7 +120,7 @@ class Commands:
|
||||||
else:
|
else:
|
||||||
self.io.tool_output("Please provide a partial model name to search for.")
|
self.io.tool_output("Please provide a partial model name to search for.")
|
||||||
|
|
||||||
def cmd_web(self, args, paginate=True):
|
def cmd_web(self, args):
|
||||||
"Scrape a webpage, convert to markdown and send in a message"
|
"Scrape a webpage, convert to markdown and send in a message"
|
||||||
|
|
||||||
url = args.strip()
|
url = args.strip()
|
||||||
|
@ -143,10 +143,6 @@ class Commands:
|
||||||
|
|
||||||
self.io.tool_output("... done.")
|
self.io.tool_output("... done.")
|
||||||
|
|
||||||
if paginate:
|
|
||||||
with self.io.console.pager():
|
|
||||||
self.io.console.print(Text(content))
|
|
||||||
|
|
||||||
return content
|
return content
|
||||||
|
|
||||||
def is_command(self, inp):
|
def is_command(self, inp):
|
||||||
|
|
|
@ -23,7 +23,6 @@ litellm
|
||||||
flake8
|
flake8
|
||||||
importlib_resources
|
importlib_resources
|
||||||
pyperclip
|
pyperclip
|
||||||
pypager
|
|
||||||
pexpect
|
pexpect
|
||||||
|
|
||||||
# The proper depdendency is networkx[default], but this brings
|
# The proper depdendency is networkx[default], but this brings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue