Skip to content

menu: add BOOT_KEYBIND for direct entry booting - #651

Open
viewerofall wants to merge 1 commit into
Limine-Bootloader:trunkfrom
TheHolyVeil:pr-boot-keybinds
Open

viewerofall wants to merge 1 commit into
Limine-Bootloader:trunkfrom
TheHolyVeil:pr-boot-keybinds

Conversation

@viewerofall

Copy link
Copy Markdown

Adds a global BOOT_KEYBIND: <key> <index> config option that binds a
single key to boot into the given entry based on its place in a flat list, not expanded meaning directories are just counted as another one so everything under them is just another one.

Behaviour

  • Case-insensitive on both sides (config value and keypress), so H and
    h are equivalent.
  • Respects keyboard_layout remapping — the bound key is matched against
    the post-remap character, same as every other menu keystroke.
  • Cannot target a sub-menu/directory entry, only a bootable entry.
  • Keys that are hardcoded or already bound such as (1-9, e, s, u, b) will make the keybind be skipped, giving the hardcoded ones priority
  • If the same key is bound more than once, the one listed first wins.
  • Any malformed line is skipped silently allowing you to have a successful go with your config, just a dysfunctional line.
  • Index follows a flat list, not a tree one you do not have to expand directories in order to boot your entry.

Testing

  • Built and booted under QEMU (BIOS and UEFI) against a minimal limine protocol setup over 3 entries
  • Verified on real hardware (UEFI boot).
  • Confirmed keybinds fire during the timeout countdown as well as after
    it's aborted (single keypress does both).

Docs

CONFIG.md updated with the new BOOT_KEYBIND option under the
Miscellaneous global options list.


Assisted-by: Claude:claude-sonnet-5

@viewerofall
viewerofall marked this pull request as draft September 7, 2026 22:19
@viewerofall

This comment was marked as resolved.

@viewerofall
viewerofall marked this pull request as ready for review September 8, 2026 00:06
@viewerofall
viewerofall force-pushed the pr-boot-keybinds branch 2 times, most recently from 62bb8dd to afea90b Compare September 15, 2026 00:13
@viewerofall

Copy link
Copy Markdown
Author

@Mintsuki when you are done with everything and such, can you review or comment then merge this. Its been a week and I dont want any code editing this making it not work. Thank you.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: viewerofall <joemomanugget@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant