mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
aider: Updated the style
dictionary in get_input
method to apply underline style and self.user_input_color
to ticked words.
# Context: USER: underlined and self.user_input_color ASSISTANT: To underline ticked words and apply the `self.user_input_color`, we need to modify the `aider/io.py` file. Update the `style` dictionary in the `get_input` method: ```python aider/io.py <<<<<<< ORIGINAL if self.user_input_color: style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": "underline"}) ======= if self.user_input_color: style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": f"underline {self.user_input_color}"}) >>>>>>> UPDATED ``` This change will apply the underline style and the `self.user_input_color` to ticked words in the `PromptSession`.
This commit is contained in:
parent
507442da3f
commit
8f40f08636
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class InputOutput:
|
||||||
multiline_input = False
|
multiline_input = False
|
||||||
|
|
||||||
if self.user_input_color:
|
if self.user_input_color:
|
||||||
style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": "underline"})
|
style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": f"underline {self.user_input_color}"})
|
||||||
else:
|
else:
|
||||||
style = None
|
style = None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue