mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
refactor: simplify URL opening confirmation prompt
This commit is contained in:
parent
c84f2996ec
commit
2cf93ccb54
2 changed files with 3 additions and 1 deletions
|
@ -829,7 +829,8 @@ class Coder:
|
||||||
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
||||||
for url in urls:
|
for url in urls:
|
||||||
url = url.rstrip(".',\"")
|
url = url.rstrip(".',\"")
|
||||||
if self.io.confirm_ask("Open URL for more info about this error?", subject=url):
|
#ai refactor this into a io.offer_url() function!
|
||||||
|
if self.io.confirm_ask("Open URL for more info?", subject=url):
|
||||||
webbrowser.open(url)
|
webbrowser.open(url)
|
||||||
return urls
|
return urls
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#ai
|
||||||
import base64
|
import base64
|
||||||
import os
|
import os
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue