Repository navigation
keybind-cheatsheet: modifier labels, numbered-run merging, named mouse buttons, string-safe comments - #903
Merged
ItsLemmy merged 1 commit intoOct 6, 2026
Conversation
Contributor
|
CC @cheerfulScumbag: this pull request was automatically moved to draft until you have had a chance to look at it. It will be marked ready for review automatically once you reply here. |
…e buttons, string-safe comments
Four generic improvements to the Hyprland experience, 0.2.8 -> 0.3.0:
- `modifier_labels` (string_map setting): display names for modifiers by
the compositor's name, e.g. { MOD3 = "Hyper" } for a Caps-as-Hyper setup.
Unset modifiers keep the current "Super" / capitalised form.
- `merge_sequential` (bool, default on): a run of sibling binds that differ
only by a number — same modifiers and category, descriptions equal once
digits are normalised, keys all digits or all F-keys — renders as one row
("Focus workspace N" on 1-0, "Focus display N" on F1-F3; the number row
orders 1..9,0). Off in edit mode and for binds with a custom description.
- Pointer buttons by name: Hyprland reports evdev codes, so LMB/RMB/MMB and
the side/back/forward buttons replace "Mouse 272".
- Lua scanning: a `--` inside a string literal is not a comment. Any bind
whose command carries a flag (`exec_cmd("tool --flag")`) used to lose its
description before it was read and fall under "Other"; a small walker
now skips `--` inside quotes. New Lua fixture + expected category cover it.
drshade
force-pushed
the
keybind-cheatsheet/labels-merge-mouse
branch
from
October 2, 2026 19:44
6a1985d to
c114a1d
Compare
|
Wouldn't using HYPR make more sense? |
Contributor
Author
Yes! This change introduces configuration with “Hyper” being the default for MOD3 (to match “Super”). But if you wanted “HYPR” and “SUPR” thats two lines of configuration to achieve. |
cheerfulScumbag
approved these changes
Oct 4, 2026
cheerfulScumbag
approved these changes
Oct 5, 2026
ItsLemmy
marked this pull request as ready for review
October 6, 2026 00:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Plugin
kenn/keybind-cheatsheetplugin.toml)What it does
A few features which I relied on in the legacy-v4 cheatsheet:
modifier_labels(string_map setting): display names for modifiers by the compositor's name, e.g. { MOD3 = "Hyper" } for a Caps-as-Hyper setup. Unset modifiers keep the current "Super" / capitalised form.merge_sequential(bool, default on): a run of sibling binds that differ only by a number — same modifiers and category, descriptions equal once digits are normalised, keys all digits or all F-keys — renders as one row ("Focus workspace N" on 1-0, "Focus display N" on F1-F3; the number row orders 1..9,0). Off in edit mode and for binds with a custom description.--inside a string literal is not a comment. Any bind whose command carries a flag (exec_cmd("tool --flag")) used to lose its description before it was read and fall under "Other"; a small walker now skips--inside quotes. New Lua fixture + expected category cover it.External dependencies
None
Testing
Screenshots / Videos
Checklist
Ready-for-review requirement: Every box in this section must be checked. If any statement is not true, keep the
pull request as Draft. An explanation does not replace a required check.
idafter the/inplugin.tomlexactly.plugin.toml,README.md,thumbnail.webp, andtranslations/en.json.README.mdfollows theREADME template, documents
every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.
thumbnail.webpis present and relevant; for a new plugin I created it with the thumbnail generator, and for an update I regenerated it with the generator if the visual identity or user-facing appearance changed.versionfollows semver and is bumped in this PR;plugin_apiis the oldest API level this plugin requires.understand that language well enough to review and maintain it (no unreviewed machine/LLM translations).
catalog.toml; CI generates it.Code review attestation
Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:
Ready-for-review requirement: Every attestation below must be checked.
licensedeclared inplugin.toml.