Skip to content

Commit

Permalink
Fix dict-key completions; Release v2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joouha committed Jun 7, 2023
1 parent 24961c4 commit 49c8722
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*******************
Expand Down
2 changes: 1 addition & 1 deletion euporie/core/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions euporie/core/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 1 addition & 0 deletions euporie/core/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}",
Expand Down

0 comments on commit 49c8722

Please sign in to comment.