We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fab198 commit 3a3ee3eCopy full SHA for 3a3ee3e
‎scripts/wtf.py
@@ -78,7 +78,7 @@ def main():
78
pyperclip.copy(clipboard)
79
80
# Trim history
81
- history = "Terminal: " + history[-10000:].strip()
+ history = history[-9000:].strip()
82
83
# Remove any trailing spinner commands
84
spinner_commands = [
@@ -139,6 +139,9 @@ def get_lines_from_file(filename, line_number):
139
lines = get_lines_from_file(filename, line_number)
140
result.append({"filename": filename, "text": "\n".join(lines)})
141
142
+ if result != []:
143
+ history = "Terminal: " + history
144
+
145
# Add context
146
for entry in result:
147
history = f"""File: {entry["filename"]}\n{entry["text"]}\n\n""" + history
0 commit comments