diff --git a/CHANGELOG.md b/CHANGELOG.md index e77a20c..95c5226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # Changelog -## v0.4.0 (Upcoming) - -- Breaking: Switch from yaml to toml format for shortcuts -- Add filtering +## v0.4.0 (2024-02-04) + +- Breaking changes in config files: + - Switch from yaml to toml format for shortcuts (you can use + [`yq`](https://mikefarah.gitbook.io/yq/) to convert yaml to toml) + - The key `hints` is renamed to `section` +- Dropping binary builds! Please install via `pipx install keyhint` instead. +- Add filter for shortcuts or section. +- Add possibility to hide whole cheatsheets via `hidden = true` in config files. +- Add fullscreen mode as default (toggle via `F11`) ## v0.3.0 (2023-02-12) diff --git a/README.md b/README.md index d62181a..f604439 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,15 @@ window. (GTK 4.6+ required!)_** ## Prerequisites - Python 3.11+ -- GTK 4.6+ (since Ubuntu 22.04) -- `libcairo2-dev libgirepository1.0-dev` (Package name on Ubuntu/Debian) +- GTK 4.6+ (shipped since Ubuntu 22.04) + dev packages: + ```sh + sudo apt-get install \ + libgirepository1.0-dev \ + libcairo2-dev \ + python3-gi \ + gobject-introspection \ + libgtk-4-dev + ``` ## Installation diff --git a/keyhint/resources/style.css b/keyhint/resources/style.css index f8b1e17..f9f70c5 100644 --- a/keyhint/resources/style.css +++ b/keyhint/resources/style.css @@ -18,11 +18,6 @@ box-shadow: inset 0 -3px @shadow_color; } -.dim-label { - margin-left: -3px; - margin-right: -3px; -} - .bindings-section header label { color: @accent_color; margin-top: 26px; diff --git a/keyhint/resources/vscode.png b/keyhint/resources/vscode.png index d67e403..6d075ca 100644 Binary files a/keyhint/resources/vscode.png and b/keyhint/resources/vscode.png differ diff --git a/keyhint/window.py b/keyhint/window.py index 7f03309..b25999a 100644 --- a/keyhint/window.py +++ b/keyhint/window.py @@ -80,7 +80,7 @@ def __init__(self, cli_args: dict) -> None: if self.cli_args.get("orientation", "vertical") == "horizontal": self.sheet_container_box.set_orientation(1) - if self.cli_args.get("no-fullscreen", False): + if not self.cli_args.get("no-fullscreen", False): self.fullscreen() # Make sure the window is focused @@ -131,6 +131,10 @@ def init_search_entry(self) -> None: evk = Gtk.EventControllerKey() evk.connect("key-pressed", self.on_search_entry_key_pressed) self.search_entry.add_controller(evk) + + # Reusing the same evk leads to critical assertion error + evk = Gtk.EventControllerKey() + evk.connect("key-pressed", self.on_search_entry_key_pressed) self.search_entry_fullscreen.add_controller(evk) @Gtk.Template.Callback()