mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
feat: centralize pygments.literal.string style configuration in _get_style method and simplify calling code
This commit is contained in:
parent
fd9dc9e8d2
commit
725b5f7063
1 changed files with 2 additions and 4 deletions
|
@ -258,6 +258,7 @@ class InputOutput:
|
||||||
style_dict.setdefault("", self.user_input_color)
|
style_dict.setdefault("", self.user_input_color)
|
||||||
style_dict.update(
|
style_dict.update(
|
||||||
{
|
{
|
||||||
|
"pygments.literal.string": f"bold italic {self.user_input_color}",
|
||||||
"completion-menu": (
|
"completion-menu": (
|
||||||
f"bg:{self.completion_menu_bg_color} {self.completion_menu_color}"
|
f"bg:{self.completion_menu_bg_color} {self.completion_menu_color}"
|
||||||
),
|
),
|
||||||
|
@ -347,10 +348,7 @@ class InputOutput:
|
||||||
inp = ""
|
inp = ""
|
||||||
multiline_input = False
|
multiline_input = False
|
||||||
|
|
||||||
style_dict = {
|
style = self._get_style()
|
||||||
"pygments.literal.string": f"bold italic {self.user_input_color}",
|
|
||||||
}
|
|
||||||
style = self._get_style(style_dict)
|
|
||||||
|
|
||||||
completer_instance = ThreadedCompleter(
|
completer_instance = ThreadedCompleter(
|
||||||
AutoCompleter(
|
AutoCompleter(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue