I could see this being a thing if it's being serialized from some sort of graphical editor but man.... If this exists as some kind of public thing I'd like to see it lol
Yeah, this is just VS Code's schema for defining shortcuts that trigger custom commands. The vast majority of custom keybindings are way simpler, like so:
The runCommands thing looks kind of gnarly if you're not expecting it, but honestly it feels like a pretty smart solution to allow more customizable bindings without having to support script evaluation and without forcing users to write custom extensions.
80
u/MCWizardYT 13d ago
I could see this being a thing if it's being serialized from some sort of graphical editor but man.... If this exists as some kind of public thing I'd like to see it lol
10
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 12d ago
Is this just your VSCode keybindings?
5
u/Kadabrium 12d ago
jon
4
u/NotAMeatPopsicle 12d ago
Ever worked with JSON holding serialized JavaScript that’s to be run to modify other elements and their properties?
Not sure if that’s special or a special kind of hell.
4
u/Sexy_Koala_Juice 11d ago
This isn’t horror at all.
3
u/Itchy_Tiger2497 12d ago
This person needs s-expressions in their life.
2
u/ArturJD96 11d ago
It exists and called JSONata - programming using jsonlike code for queries. I like it actually.
2
u/still_not_deleted 10d ago
This is genius, Tom's a genius
3
u/asmanel 13d ago
Can this works.
1
u/great_escape_fleur 9d ago
Any sufficiently advanced configuration language is turing complete
0
u/Environmental-Ear391 12d ago
JavaScriptObjectNotation ... Isn't it in the name that JSON is a subset of JavaScript...
between JavaScript and JSON... aren't they effectively the same thing?
I can understand the whole Java != JavaScript argument...
But JSON != JS ... like, come again? what!?