Shortcuts you invent, rules you write, gestures you own - all still just data
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -45,6 +45,16 @@ grep -q 'write_categories()' "$keybinds" \
|
||||
grep -q 'if file == nil then' "$keybinds" \
|
||||
|| note 'the manifest writer does not tolerate being unable to open the file'
|
||||
|
||||
# The user's own shortcuts are a category too, and they are the one group whose
|
||||
# membership is not written in this file. They are emitted last and outside the
|
||||
# `bind` wrapper -- deliberately, so keybindOverrides (which is keyed by a
|
||||
# SHIPPED chord) can never reach one -- which means they would be invisible to
|
||||
# the manifest unless the loop records the category itself.
|
||||
grep -q 'category("Custom")' "$keybinds" \
|
||||
|| note 'custom shortcuts are emitted without a category, so they land in Other'
|
||||
grep -q 'customBinds' "$keybinds" \
|
||||
|| note 'keybinds.lua never reads customBinds, so shortcuts the user invents are not bound'
|
||||
|
||||
# The shell prefers the authored category and still works without one.
|
||||
grep -q 'categoryManifest' "$service" \
|
||||
|| note 'the shell never reads the category manifest'
|
||||
@@ -100,7 +110,14 @@ if [[ -r "$manifest" ]]; then
|
||||
|
||||
# Every category is one the shell knows how to order. A typo produces a
|
||||
# group that sorts last and looks like a bug in the cheatsheet.
|
||||
known='Windows Workspaces Applications Shell Session Media & hardware Other'
|
||||
#
|
||||
# Custom is the one group the user fills: shortcuts they invented, read
|
||||
# from customBinds at the end of keybinds.lua. It is legitimately empty on
|
||||
# a machine nobody has customized and legitimately full on one somebody
|
||||
# has, so unlike Other it carries no count expectation -- only the
|
||||
# requirement that it be a name the shell orders (Keybinds.qml's groupOrder
|
||||
# puts it first) rather than an unknown that sorts last.
|
||||
known='Windows Workspaces Applications Shell Session Media & hardware Custom Other'
|
||||
while read -r value; do
|
||||
[[ -n "$value" ]] || continue
|
||||
grep -qF "$value" <<<"$known" \
|
||||
|
||||
Reference in New Issue
Block a user