Open joshgoebel opened 2 years ago
My latest example ended up in the emoji thread:
CONVENIENCE = {
"`": "grave",
"[": "left_brace",
"]": "right_brace",
}
MAC = {
"Cmd": "RC",
"Ctrl": "Super",
# "Alt": "Alt"
}
L = K # L for Linux
SYS_MAP = MAC | CONVENIENCE
def Mac(str):
rewritten = [SYS_MAP.get(key, key) for key in str.split("-")]
return K("-".join(rewritten))
# keymapping
Mac("Cmd-Ctrl-Shift-F"): L("Shift-F11"),
Is your feature request related to a problem? Please describe.
It's a bit difficult to customize/understand kinto.sh as it's currently shipped.
Describe the solution you'd like
Consider using variables instead of commented out lines that are changed in mass:
Or perhaps just:
And then you'd build the maps themselves from separate dicts:
The point being that then all the utility script would need to do is change a single line in the file, set
DE
, etc... and let the python code do the work of build the proper keymaps.Describe alternatives you've considered
None.
Additional context
Just trying to make working with mappings easier for someone who intends to make custom changes and add more to this file with time... being able to pull-down and integrate future changes Kinto adds would also be nice though.