From 8f40f08636b0916b4403fc2e997d2d1a7b08d70b Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 29 May 2023 11:48:22 -0700 Subject: [PATCH] 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`. --- aider/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index b07db0014..3b20810e1 100644 --- a/aider/io.py +++ b/aider/io.py @@ -131,7 +131,7 @@ class InputOutput: multiline_input = False 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: style = None