diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ab865c57..f21e1c26 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,17 @@ Changelog Notable changes to this project will be documented in this file. +******************* +v2.4.2 (2023-06-07) +******************* + +Fixed +===== + +- Fix "Wrong color format" error when suggesting dictionary key completions + +---- + ******************* v2.4.2 (2023-06-05) ******************* diff --git a/euporie/core/__init__.py b/euporie/core/__init__.py index 054d6770..37b45aa0 100644 --- a/euporie/core/__init__.py +++ b/euporie/core/__init__.py @@ -1,7 +1,7 @@ """This package defines the euporie application and its components.""" __app_name__ = "euporie" -__version__ = "2.4.2" +__version__ = "2.4.3" __logo__ = "⚈" __strapline__ = "Jupyter in the terminal" __author__ = "Josiah Outram Halstead" diff --git a/euporie/core/completion.py b/euporie/core/completion.py index 393d3461..5aeb947c 100644 --- a/euporie/core/completion.py +++ b/euporie/core/completion.py @@ -41,5 +41,6 @@ async def get_completions_async( cursor_pos=document.cursor_position, ): if completion_type := kwargs.get("display_meta"): + completion_type = completion_type.replace(" ", "-") kwargs["style"] = f"class:completion-{completion_type}" yield Completion(**kwargs) diff --git a/euporie/core/style.py b/euporie/core/style.py index 361c37c0..8d083459 100644 --- a/euporie/core/style.py +++ b/euporie/core/style.py @@ -461,6 +461,7 @@ def build_style( "menu completion-module": "fg:#d70000", "menu completion-magic": "fg:#888888", "menu completion-path": "fg:#aa8800", + "menu completion-dict-key": "fg:#ddbb00", "menu selection completion-keyword": f"fg:{ColorPaletteColor('#d700af').lighter(0.75)}", "menu selection completion-function": f"fg:{ColorPaletteColor('#005faf').lighter(0.75)}", "menu selection completion-class": f"fg:{ColorPaletteColor('#008700').lighter(0.75)}",