diff --git a/aider/args.py b/aider/args.py index 9e816f0ce..27d4f6c6e 100644 --- a/aider/args.py +++ b/aider/args.py @@ -328,7 +328,7 @@ def get_parser(default_config_files, git_root): help="Set the color for user input (default: #00cc00)", ) group.add_argument( - "--user-submitted-input-color", + "--user-input-submitted-color", default=None, help="Set the color for user submitted input (default: #00cc00)", ) diff --git a/aider/io.py b/aider/io.py index 00df9ff3f..3a54c4766 100644 --- a/aider/io.py +++ b/aider/io.py @@ -243,7 +243,7 @@ class InputOutput: input=None, output=None, user_input_color="blue", - user_submitted_input_color=None, + user_input_submitted_color=None, tool_output_color=None, tool_error_color="red", tool_warning_color="#FFA500", @@ -282,8 +282,8 @@ class InputOutput: pretty = False self.user_input_color = ensure_hash_prefix(user_input_color) if pretty else None - self.user_submitted_input_color = ( - ensure_hash_prefix(user_submitted_input_color) if pretty else None + self.user_input_submitted_color = ( + ensure_hash_prefix(user_input_submitted_color) if pretty else None ) self.tool_output_color = ensure_hash_prefix(tool_output_color) if pretty else None self.tool_error_color = ensure_hash_prefix(tool_error_color) if pretty else None @@ -374,7 +374,7 @@ class InputOutput: """Validate configured color strings and reset invalid ones.""" color_attributes = [ "user_input_color", - "user_submitted_input_color", + "user_input_submitted_color", "tool_output_color", "tool_error_color", "tool_warning_color", @@ -759,8 +759,8 @@ class InputOutput: log_file.write(content + "\n") def display_user_input(self, inp): - if self.pretty and self.user_submitted_input_color: - style = dict(style=self.user_submitted_input_color) + if self.pretty and self.user_input_submitted_color: + style = dict(style=self.user_input_submitted_color) else: style = dict() diff --git a/aider/main.py b/aider/main.py index 8a666d37a..6dc70522f 100644 --- a/aider/main.py +++ b/aider/main.py @@ -557,7 +557,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F input=input, output=output, user_input_color=args.user_input_color, - user_submitted_input_color=args.user_submitted_input_color, + user_input_submitted_color=args.user_input_submitted_color, tool_output_color=args.tool_output_color, tool_warning_color=args.tool_warning_color, tool_error_color=args.tool_error_color, diff --git a/aider/website/assets/sample.aider.conf.yml b/aider/website/assets/sample.aider.conf.yml index 737ca9e54..39264a6d8 100644 --- a/aider/website/assets/sample.aider.conf.yml +++ b/aider/website/assets/sample.aider.conf.yml @@ -173,8 +173,8 @@ ## Set the color for user input (default: #00cc00) #user-input-color: "#00cc00" -## Set the color for user submitted input (default: None) -#user-submitted-input-color: "#00cc00" +## Set the color for user submitted input (default: #00cc00) +#user-input-submitted-color: "#00cc00" ## Set the color for tool output (default: None) #tool-output-color: "xxx" diff --git a/aider/website/docs/config/dotenv.md b/aider/website/docs/config/dotenv.md index 0856f40d1..3eee3df8d 100644 --- a/aider/website/docs/config/dotenv.md +++ b/aider/website/docs/config/dotenv.md @@ -202,8 +202,8 @@ cog.outl("```") ## Set the color for user input (default: #00cc00) #AIDER_USER_INPUT_COLOR=#00cc00 -## Set the color for user submitted input (default: None) -#AIDER_USER_SUBMITTED_INPUT_COLOR= +## Set the color for user submitted input (default: #00cc00) +#AIDER_USER_INPUT_SUBMITTED_COLOR= ## Set the color for tool output (default: None) #AIDER_TOOL_OUTPUT_COLOR=